/*
Theme Name: GTU Federation Theme
Theme URI: http://localhost/gtu/
Description: Bespoke theme designed for the Greek Therapist Union (ΠΑΣΕΜΕΘ - Greek Therapist Union).
Version: 1.0.0
Author: Antigravity
Author URI: https://github.com/google-deepmind
Text Domain: gtu-federation
*/

/* ==========================================================================
   0. CSS CUSTOM PROPERTIES & TOKENS
   ========================================================================== */
:root {
    /* Color Palette */
    --color-primary: #0a1128;      /* Deep Slate Blue */
    --color-primary-light: #1c2541;/* Slate Accent */
    --color-gold: #d4af37;         /* Metallic Gold */
    --color-gold-dark: #b8901c;    /* Deep Gold Accent */
    --color-gold-cream: #faf7f0;   /* Light Cream Backplate */
    --color-text-dark: #1e293b;    /* Dark Charcoal Text */
    --color-text-light: #ffffff;   /* Pure White Text */
    --color-muted: #64748b;        /* Cool Gray Muted Text */
    --color-border: #e2e8f0;       /* Neutral Border */
    --color-bg-light: #f8fafc;     /* Soft Light Slate Background */
    --color-bg-white: #ffffff;     /* Pure White Background */

    /* Typography */
    --font-heading: 'Outfit', 'Segoe UI', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Shadow Systems */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-premium: 0 20px 25px -5px rgba(10, 17, 40, 0.05), 0 8px 10px -6px rgba(10, 17, 40, 0.05);
    --shadow-glass: 0 8px 32px 0 rgba(10, 17, 40, 0.1);

    /* Transition Systems */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   1. RESET & GENERAL LAYOUTS
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-primary);
}

a {
    color: var(--color-gold-dark);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-gold);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-light);
    border: 2px solid var(--color-text-light);
}

.btn-secondary:hover {
    background-color: var(--color-text-light);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   2. STICKY GLASSMORPHIC HEADER
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 17, 40, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 16px 0;
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo a {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--color-text-light);
    letter-spacing: 0.5px;
}

.site-logo span {
    color: var(--color-gold);
    margin-left: 4px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 15px;
    padding: 6px 0;
    position: relative;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
    color: var(--color-gold);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: var(--transition-smooth);
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item a::after {
    width: 100%;
}

/* ==========================================================================
   3. HERO SECTION (FEDERATION BANNER)
   ========================================================================== */
.hero {
    position: relative;
    padding: 180px 0 120px 0;
    background: linear-gradient(rgba(6, 11, 25, 0.90), rgba(6, 11, 25, 0.90)), url('images/pasemeth-hero.jpeg') no-repeat center center;
    background-size: contain;
    color: var(--color-text-light);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    display: block;
    text-align: center;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 44px;
    line-height: 1.25;
    max-width: 900px;
    margin: 0 auto 24px auto;
    color: var(--color-text-light);
}

.hero-tagline {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.75);
    max-width: 700px;
    margin: 0 auto 36px auto;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.hero-btn-secondary {
    background-color: transparent;
    color: var(--color-text-light);
    border: 2px solid var(--color-text-light);
}

.hero-btn-secondary:hover {
    background-color: var(--color-text-light);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   4. STATS BAR & CORE PILLARS
   ========================================================================== */
.stats-bar {
    background-color: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
    padding: 32px 0;
    margin-top: -30px;
    position: relative;
    z-index: 10;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 24px;
}

.stat-item h3 {
    font-size: 36px;
    color: var(--color-gold-dark);
    margin-bottom: 4px;
}

.stat-item p {
    font-size: 14px;
    color: var(--color-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 48px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-gold);
    margin: 12px auto 0 auto;
    border-radius: 2px;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.pillar-card {
    background-color: var(--color-bg-white);
    padding: 36px 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(212, 175, 55, 0.3);
}

.pillar-icon {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--color-gold);
}

.pillar-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.pillar-card p {
    font-size: 14px;
    color: var(--color-muted);
}

/* ==========================================================================
   5. INTERACTIVE DIRECTORY & SEARCH BAR
   ========================================================================== */
.directory-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    padding: 140px 0 60px 0;
    color: var(--color-text-light);
    text-align: center;
}

.directory-header h1 {
    color: var(--color-text-light);
    font-size: 36px;
}

.search-filter-panel {
    background-color: var(--color-bg-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-top: -40px;
    margin-bottom: 48px;
    border: 1px solid var(--color-border);
}

.search-form {
    display: grid;
    grid-template-columns: 2fr 1fr 120px;
    gap: 16px;
    align-items: center;
}

.search-input-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition-smooth);
}

.search-input:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.filter-select {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font-body);
    outline: none;
    background-color: var(--color-bg-white);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-select:focus {
    border-color: var(--color-gold);
}

/* ==========================================================================
   6. MEMBER DIRECTORY GRID & CARDS
   ========================================================================== */
.members-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 48px;
}

.member-card {
    background-color: var(--color-bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.member-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(212, 175, 55, 0.3);
}

.member-photo-wrapper {
    width: 100%;
    height: 240px;
    background-color: #f1f5f9;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
}

.member-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.member-card:hover .member-photo-wrapper img {
    transform: scale(1.05);
}

.member-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: var(--color-primary);
    color: var(--color-gold);
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.member-details {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.member-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--color-primary);
}

.member-city {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-gold-dark);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.member-city::before {
    content: '📍';
    font-size: 12px;
}

.member-specialty {
    font-size: 14px;
    color: var(--color-muted);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.member-action {
    margin-top: auto;
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.member-more-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.member-more-link:hover {
    color: var(--color-gold-dark);
}

.member-more-link::after {
    content: '→';
    transition: var(--transition-smooth);
}

.member-more-link:hover::after {
    transform: translateX(3px);
}

/* ==========================================================================
   7. PAGINATION & NO RESULTS
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-white);
    color: var(--color-text-dark);
    font-family: var(--font-heading);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background-color: var(--color-primary);
    color: var(--color-gold);
    border-color: var(--color-primary);
}

.no-results {
    text-align: center;
    padding: 60px 24px;
    background-color: var(--color-bg-white);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    grid-column: span 3;
}

.no-results h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.no-results p {
    color: var(--color-muted);
}

/* ==========================================================================
   8. CORPORATE FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--color-primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-about h3 {
    color: var(--color-text-light);
    font-size: 20px;
    margin-bottom: 16px;
}

.footer-about p {
    margin-bottom: 24px;
    line-height: 1.6;
}

.footer-links h3 {
    color: var(--color-text-light);
    font-size: 16px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

.footer-links a:hover {
    color: var(--color-gold);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
}

.footer-legal-links {
    display: flex;
    gap: 24px;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal-links a:hover {
    color: var(--color-text-light);
}

/* Contact Form Layout Classes */
.contact-card-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    background-color: var(--color-bg-white);
    padding: 48px;
    border-radius: 16px;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--color-border);
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Mobile menu toggle styling (Desktop: hidden) */
.mobile-menu-toggle {
    display: none;
}

/* ==========================================================================
   9. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .no-results {
        grid-column: span 2;
    }
}

@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
        padding: 8px;
        cursor: pointer;
        z-index: 1100;
    }
    .hamburger-bar {
        display: block;
        width: 26px;
        height: 3px;
        background-color: var(--color-text-light);
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    /* Hamburger Active Animation */
    .mobile-menu-toggle.active .hamburger-bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .mobile-menu-toggle.active .hamburger-bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active .hamburger-bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .site-navigation {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        background: rgba(10, 17, 40, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid rgba(212, 175, 55, 0.2);
        padding: 120px 32px 40px 32px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1050;
    }
    .site-navigation.active {
        right: 0;
    }
    .nav-menu {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }
    .nav-menu a {
        font-size: 18px;
        width: 100%;
        display: block;
        padding: 8px 0;
    }
    body.menu-open {
        overflow: hidden;
    }
    .contact-card-wrapper {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
    }
    .site-logo a {
        font-size: 16px;
    }
    .hero {
        padding: 200px 0 80px 0;
    }
    .hero h1 {
        font-size: 32px;
    }
    .hero-tagline {
        font-size: 16px;
    }
    .hero-actions {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .search-form {
        grid-template-columns: 1fr;
    }
    .members-grid {
        grid-template-columns: 1fr;
    }
    .no-results {
        grid-column: span 1;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .contact-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
