/* Local CSS for Public Club Directory Page (club_pub.css) */

:root {
    --beans-dark: #3e2723;
    --beans-brown: #4e342e;
    --gold: #ffd700;
    --fresh-green: #2e7d32;
    --bg-light: #fcf9f2;
}

body { 
    background: linear-gradient(135deg, #fcf9f2 0%, #e6e2d6 100%);
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.club-header {
    background-color: var(--beans-dark);
    color: var(--gold);
    padding: 40px 20px;
    text-align: center;
    border-bottom: 5px solid var(--fresh-green);
}

.club-header h1 { 
    font-size: 2.5rem; 
    margin: 0 0 10px 0; 
}

.club-header p {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin: 0;
}

/* Creates a feathered ellipsoid background behind the transparent logo */
.club-header img {
    background-color: var(--bg-light); 
    padding: 15px 30px; 
    border-radius: 50%; 
    max-width: 150px;
    margin-bottom: 20px;
    /* The CSS "Feather" effect */
    box-shadow: 0 0 25px 15px var(--bg-light); 
}

/* Grid Layout */
.club-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: -30px auto 50px auto;
    padding: 0 20px;
}

/* Base Card Style (Background Images) */
.club-card-bg {
    position: relative;
    background-color: #fff;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    padding: 40px 20px 30px 20px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 280px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.club-card-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(15, 15, 15, 0.95) 0%, rgba(20, 20, 20, 0.6) 50%, rgba(40, 30, 25, 0.1) 100%);
    z-index: 1;
    transition: background 0.3s ease;
}

.club-card-bg:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.club-card-bg:hover::before {
    background: linear-gradient(to top, rgba(15, 15, 15, 0.98) 0%, rgba(20, 20, 20, 0.8) 60%, rgba(40, 30, 25, 0.3) 100%);
}

.club-card-bg h2 {
    color: var(--gold);
    font-size: 1.6rem;
    margin: 0 0 10px 0;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.club-card-bg p {
    color: #f8f8f8;
    font-size: 1.05rem;
    line-height: 1.5;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* ========================================= */
/* MODAL STYLES (Marketing Gateway)          */
/* ========================================= */

.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(20, 20, 20, 0.85); /* Dark cinematic overlay */
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #fdfbf7;
    max-width: 550px;
    width: 100%;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    border-top: 5px solid var(--gold);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 15px;
    left: 20px;
    background: none;
    border: none;
    font-size: 2.2rem;
    cursor: pointer;
    color: #888;
    transition: color 0.3s;
    line-height: 1;
}

.modal-close:hover {
    color: #d32f2f;
}

.modal-title {
    color: var(--beans-dark);
    margin-top: 10px;
    margin-bottom: 25px;
    font-size: 1.8rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.modal-body p {
    font-size: 1.15rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 18px;
}

.btn-store {
    display: inline-block;
    background-color: var(--fresh-green);
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 4px;
    font-size: 1.2rem;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    margin-top: 25px;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.2);
}

.btn-store:hover {
    background-color: #1b5e20;
    transform: translateY(-2px);
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .club-header { padding: 30px 15px 60px 15px; }
    .club-header h1 { font-size: 2rem; }
    .modal-content { padding: 30px 20px; }
    .modal-title { font-size: 1.5rem; }
}