/**
 * GKI Club Directory Styles
 * Matching the GKI website design specification
 */

/* ===========================================
   Club Directory Listing Page
   =========================================== */

.club-directory {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.club-directory h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 700;
    color: #1e3a8a !important;
    text-align: center;
}

.directory-intro {
    text-align: center;
    margin-bottom: 60px;
}

.directory-intro p {
    font-size: 1.2em;
    line-height: 1.7;
    color: #666666 !important;
    max-width: 900px;
    margin: 0 auto;
}

/* Country Sections */
.country-section {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 2px solid #e0e0e0;
}

.country-section:last-of-type {
    border-bottom: none;
}

.country-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.country-flag-large {
    font-size: 4em;
}

.country-header h3 {
    font-size: 2.2em;
    color: #1e3a8a !important;
    font-weight: 700;
    margin: 0;
}

/* Clubs Grid */
.clubs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.club-card {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
}

.club-card:hover:not(.placeholder) {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    border-color: #1e3a8a;
}

.club-card.placeholder {
    background: #f8f9fa;
    border-style: dashed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 200px;
}

.placeholder-content p {
    font-size: 1.1em;
    color: #666666 !important;
    margin-bottom: 10px;
}

.placeholder-note {
    font-size: 0.95em !important;
    font-style: italic;
}

.club-card .club-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.club-card .club-header h4 {
    font-size: 1.5em;
    color: #1e3a8a !important;
    font-weight: 700;
    margin-bottom: 8px;
}

.club-location {
    font-size: 1.05em;
    color: #666666 !important;
    font-weight: 500;
    display: block;
}

.club-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.club-info p {
    font-size: 1em;
    color: #333333 !important;
    margin: 0;
    line-height: 1.6;
}

.club-actions {
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
}

.club-details-link {
    display: inline-block;
    color: #1e3a8a !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05em;
    transition: all 0.3s ease;
}

.club-details-link:hover {
    color: #2c5aa0 !important;
    transform: translateX(5px);
}

/* Bottom Note */
.directory-note {
    background: #e8f4f8;
    padding: 35px;
    border-radius: 15px;
    border-left: 5px solid #1e3a8a;
    margin-bottom: 30px;
    text-align: center;
}

.directory-note h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #1e3a8a !important;
    font-weight: 700;
}

.directory-note p {
    font-size: 1.15em;
    line-height: 1.8;
    color: #333333 !important;
    margin: 0;
}

.directory-note a {
    color: #1e3a8a !important;
    text-decoration: none;
    font-weight: 700;
}

.directory-note a:hover {
    text-decoration: underline;
}

/* No clubs / Error messages */
.gki-no-clubs,
.gki-error {
    padding: 40px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 10px;
    color: #666666;
    font-size: 1.1em;
}

.gki-error {
    background: #fee;
    color: #c00;
}

/* ===========================================
   Club Detail Page
   =========================================== */

.club-detail-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 30px;
}

.breadcrumb a {
    color: #1e3a8a !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Club Header */
.club-detail-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
    padding: 40px;
    background: linear-gradient(135deg, #1e3a8a 0%, #2c5aa0 100%);
    border-radius: 15px;
    color: #ffffff !important;
}

.club-title-section h1 {
    font-size: 3em;
    margin-bottom: 10px;
    color: #ffffff !important;
    font-weight: 700;
}

.club-tagline {
    font-size: 1.3em;
    color: #ffffff !important;
    margin: 0;
    opacity: 0.95;
}

.club-logo img {
    max-width: 150px;
    height: auto;
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
}

/* Quick Info Bar */
.quick-info-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.quick-info-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    display: flex;
    gap: 15px;
    align-items: start;
    border-top: 4px solid #1e3a8a;
}

.info-icon {
    font-size: 2em;
}

.quick-info-item strong {
    display: block;
    color: #1e3a8a !important;
    font-size: 0.95em;
    margin-bottom: 5px;
}

.quick-info-item p {
    font-size: 1.05em;
    color: #333333 !important;
    margin: 0;
}

.quick-info-item a {
    color: #1e3a8a !important;
    text-decoration: none;
    font-weight: 600;
}

.quick-info-item a:hover {
    text-decoration: underline;
}

/* Main Content Grid */
.club-content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-bottom: 50px;
}

/* Content Sections */
.content-section {
    background: #ffffff;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.content-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #1e3a8a !important;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.content-section p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #333333 !important;
    margin-bottom: 15px;
}

/* Schedule Grid */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.schedule-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #1e3a8a;
}

.schedule-item h3 {
    font-size: 1.3em;
    color: #1e3a8a !important;
    margin-bottom: 10px;
    font-weight: 700;
}

.time {
    font-size: 1.15em;
    color: #333333 !important;
    font-weight: 600;
    margin-bottom: 5px;
}

.class-type {
    font-size: 1em;
    color: #666666 !important;
    margin: 0;
}

/* Facilities List */
.facilities-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.facilities-list li {
    font-size: 1.1em;
    color: #333333 !important;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Location Info */
.location-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.map-placeholder,
.map-embed {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.map-placeholder {
    padding: 60px 20px;
    border: 2px dashed #d0d0d0;
}

.map-placeholder p {
    font-size: 1.2em;
    color: #666666 !important;
    margin: 0;
}

/* Sidebar Cards */
.sidebar-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.sidebar-card h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #1e3a8a !important;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.contact-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #1e3a8a;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-icon {
    font-size: 1.5em;
}

.contact-item a {
    color: #1e3a8a !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
}

.contact-item a:hover {
    text-decoration: underline;
}

.cta-button {
    display: block;
    width: 100%;
    padding: 15px;
    background: #1e3a8a;
    color: #ffffff !important;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #2c5aa0;
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* Membership Info */
.membership-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.mem-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.mem-item strong {
    display: block;
    color: #1e3a8a !important;
    margin-bottom: 5px;
    font-size: 1.05em;
}

.mem-item p {
    font-size: 1.05em;
    color: #333333 !important;
    margin: 0;
}

.mem-note {
    font-size: 0.95em;
    color: #666666 !important;
    font-style: italic;
    padding: 15px;
    background: #fff3cd;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

/* Instructor List */
.instructor-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.instructor-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #1e3a8a;
}

.instructor-item strong {
    display: block;
    color: #333333 !important;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.instructor-item p {
    font-size: 1em;
    color: #666666 !important;
    margin: 0;
}

/* ===========================================
   Responsive
   =========================================== */

@media (max-width: 992px) {
    .clubs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-info-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .club-content-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
    }
    
    .facilities-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .club-directory h2 {
        font-size: 2em;
    }
    
    .country-header h3 {
        font-size: 1.8em;
    }
    
    .club-detail-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .club-logo {
        margin: 0 auto;
    }
    
    .club-title-section h1 {
        font-size: 2.2em;
    }
    
    .quick-info-bar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .clubs-grid {
        grid-template-columns: 1fr;
    }
    
    .country-header {
        flex-direction: column;
        text-align: center;
    }
}

/* ===========================================
   Responsive
   =========================================== */

@media (max-width: 992px) {
    .quick-info-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .club-content-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
    }
    
    .facilities-list {
        grid-template-columns: 1fr;
    }
    
    .gki-clubs-grid.gki-cols-3,
    .gki-clubs-grid.gki-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .club-detail-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .club-logo {
        margin: 0 auto;
    }
    
    .club-title-section h1 {
        font-size: 2.2em;
    }
    
    .quick-info-bar {
        grid-template-columns: 1fr;
    }
    
    .gki-clubs-grid.gki-cols-2,
    .gki-clubs-grid.gki-cols-3,
    .gki-clubs-grid.gki-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .gki-country-header {
        flex-direction: column;
        text-align: center;
    }
    
    .gki-country-header h3 {
        font-size: 1.8em;
    }
}
