@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #193a70;
    --primary-light: #254b8c;
    --primary-rgb: 25, 58, 112;
    --accent-yellow: #fbc02d;
    --accent-red: #c8041a;
    --accent-red-hover: #a00314;
    --accent-green: #16a34a;
    --bg-light: #ffffff;
    --bg-darker: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --glass-bg: #ffffff;
    --glass-border: #e2e8f0;
    --card-glow: rgba(25, 58, 112, 0.06);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(25, 58, 112, 0.08);
    --shadow-lg: 0 16px 36px rgba(25, 58, 112, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
}

body {
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 8px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--primary);
}

.text-gradient {
    background: linear-gradient(135deg, #193a70 0%, #3b5998 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header & Navigation */
header {
    background: #193a70;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.4rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    height: 78px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.06);
}

header nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.92rem;
    transition: var(--transition);
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    width: max-content;
    max-width: 320px;
    background: #ffffff;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 0.5rem !important;
    margin: 0 !important;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 1100;
    border: 1px solid var(--glass-border);
    animation: fadeIn 0.2s ease-in-out;
    list-style: none !important;
    list-style-type: none !important;
}

.dropdown-menu li,
ul.dropdown-menu li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown.active .dropdown-menu {
    display: flex;
}

.dropdown-link {
    color: var(--text-main);
    text-decoration: none;
    padding: 0.65rem 0.9rem;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 6px;
    transition: var(--transition);
    white-space: nowrap;
    display: block;
}

.dropdown-link:hover {
    background: rgba(25, 58, 112, 0.06);
    color: var(--primary);
}

/* Auth Navigation Right Header */
.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-auth-btn {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.5rem 1.1rem;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-auth-btn:hover {
    color: #ffffff;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

/* User Menu & Role Badges */
.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.4rem 0.85rem;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
}

.user-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.role-badge.yonetim {
    background: #ef4444;
    color: white;
}

.role-badge.moderator {
    background: #f59e0b;
    color: white;
}

.role-badge.uye {
    background: #3b82f6;
    color: white;
}

/* Dues Status Badges */
.dues-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.dues-badge.paid {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.dues-badge.unpaid {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Gallery Section Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.gallery-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.gallery-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-img-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--bg-darker);
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-card:hover .gallery-img-wrapper img {
    transform: scale(1.08);
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    animation: fadeIn 0.25s ease-out;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 88vh;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: white;
    font-size: 2.2rem;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.15);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: var(--accent-red);
    transform: scale(1.1);
}

/* Content Preview Modal */
.preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 39, 76, 0.75);
    backdrop-filter: blur(6px);
    z-index: 2100;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    animation: fadeIn 0.2s ease-out;
}

.preview-modal.active {
    display: flex;
}

.preview-card {
    background: #ffffff;
    width: 100%;
    max-width: 650px;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    padding: 2rem;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.preview-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.preview-modal-close:hover {
    color: var(--accent-red);
}

/* Mobile Hamburger Toggle */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Action CTA Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-hover) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(200, 4, 26, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 4, 26, 0.45);
    color: white;
}

.btn-secondary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-sm {
    padding: 0.45rem 0.95rem;
    font-size: 0.85rem;
}

/* Glass Card */
.glass-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
    transition: var(--transition);
}

.glass-card:hover {
    box-shadow: var(--shadow-lg);
}

/* Layout Main Content */
main {
    flex: 1;
    padding-bottom: 4rem;
}

/* Page Header / Hero Section */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, #0f274c 100%);
    color: white;
    padding: 3.5rem 0;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto;
}

/* Home Hero Section */
.hero {
    padding: 4rem 0 2rem;
    text-align: center;
    position: relative;
}

/* Hero Background Graduation Cap Watermarks (Subtle, non-intersecting, elegant) */
.hero-caps-watermark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-cap {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
    user-select: none;
}

/* Placed strictly along outer margins to NEVER intersect with central text */
.cap-left-top { top: 2%; left: 1%; font-size: 5rem; transform: rotate(-18deg); color: #193a70; }
.cap-left-mid { top: 38%; left: 2%; font-size: 3.8rem; transform: rotate(15deg); color: #c8041a; }
.cap-left-bot { bottom: 15%; left: 1.5%; font-size: 4.8rem; transform: rotate(-25deg); color: #193a70; }

.cap-right-top { top: 3%; right: 1%; font-size: 5.5rem; transform: rotate(22deg); color: #c8041a; }
.cap-right-mid { top: 40%; right: 2%; font-size: 4rem; transform: rotate(-15deg); color: #193a70; }
.cap-right-bot { bottom: 12%; right: 1.5%; font-size: 5rem; transform: rotate(18deg); color: #8b5cf6; }

@media (max-width: 992px) {
    .bg-cap { opacity: 0.05; }
    .cap-left-top, .cap-right-top { font-size: 3.2rem !important; }
    .cap-left-mid, .cap-right-mid { font-size: 2.5rem !important; }
    .cap-left-bot, .cap-right-bot { font-size: 2.8rem !important; }
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-tagline {
    display: inline-block;
    color: var(--accent-red);
    background: rgba(200, 4, 26, 0.08);
    border: 1px solid rgba(200, 4, 26, 0.2);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.4rem 1.1rem;
    border-radius: 30px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero h1 {
    font-size: 3.25rem;
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 780px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

/* Stats Section Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    background: #ffffff;
    border: 1px solid rgba(25, 58, 112, 0.12);
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.stat-item p {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
}

/* Content Grid Layouts */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--text-main);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(25, 58, 112, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Table Styling */
.custom-table-container {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    text-align: left;
}

.custom-table th {
    background: #f1f5f9;
    color: var(--primary);
    font-weight: 700;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--glass-border);
}

.custom-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.92rem;
    color: var(--text-main);
}

.custom-table tr:last-child td {
    border-bottom: none;
}

.custom-table tr:hover td {
    background: #f8fafc;
}

/* Footer */
footer {
    background: #0f274c;
    color: white;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 400px;
}

.footer-links h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-yellow);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #193a70;
        flex-direction: column;
        padding: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hamburger {
        display: block;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        background: rgba(255, 255, 255, 0.05);
        box-shadow: none;
        border: none;
    }
    
    .dropdown-link {
        color: rgba(255, 255, 255, 0.85);
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ==========================================================================
   Language Switcher Component (Dil Seçici)
   ========================================================================== */
.lang-switcher-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: 0.75rem;
}

.lang-switcher-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 0.35rem 0.65rem;
    border-radius: 20px;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.lang-switcher-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: none;
    flex-direction: column;
    min-width: 60px;
    padding: 0.3rem;
    z-index: 1000;
}

.lang-dropdown-menu.active {
    display: flex;
}

.lang-option-btn {
    background: transparent;
    border: none;
    color: #1e293b;
    padding: 0.5rem 0.75rem;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: left;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.15s ease;
}

.lang-option-btn:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.lang-option-btn.active {
    background: rgba(14, 43, 92, 0.08);
    color: var(--primary);
}

/* Hide default Google Translate banner, top frame, and body top shift */
iframe.goog-te-banner-frame,
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe[id^=":1"],
iframe[id^=":0"],
.VIpgJd-Z44adf-aSuper,
.VIpgJd-Z44adf-wA26ac,
.VIpgJd-Z44adf-Xwf-aSuper {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body {
    top: 0px !important;
    position: static !important;
}

.goog-te-gadget,
#google_translate_element,
.goog-te-spinner-pos {
    display: none !important;
}

.notranslate {
    translate: no;
}

/* ==========================================================================
   DESKTOP & MOBILE NAVIGATION POLISH (MASAÜSTÜ & MOBİL MENÜ UYUMU)
   ========================================================================== */
/* Desktop Layout Rules (min-width: 993px) */
@media (min-width: 993px) {
    .mobile-lang-switcher-container {
        display: none !important;
    }

    .lang-switcher-container {
        display: inline-flex !important;
    }

    .nav-link {
        white-space: nowrap !important;
    }
}

/* Mobile & Tablet Layout Rules (max-width: 992px) */
@media (max-width: 992px) {
    header {
        overflow: visible !important;
    }

    /* 1. Header Navigation Bar & Logo Overhang (%15 Alta Taşma) for Mobile */
    header .nav-wrapper {
        padding: 0.6rem 0.85rem;
        gap: 0.4rem;
        overflow: visible !important;
        position: relative;
    }

    header .logo-img {
        height: 88px !important; /* Çok daha büyük, son derece görkemli amblem boyutu */
        position: relative !important;
        top: 2px !important; /* Üstten az miktarda zarif nefes payı boşluğu */
        margin-top: 0px !important;
        margin-bottom: -36px !important;
        filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.40)) !important;
        z-index: 1100 !important;
        transition: all 0.25s ease;
    }

    /* 2. Member Button Moves Right Next to 3-Line Hamburger Icon */
    .header-right {
        display: flex !important;
        align-items: center !important;
        margin-left: auto !important;
        margin-right: 0.3rem !important;
        gap: 0.25rem !important;
    }

    .hamburger {
        margin-left: 0.2rem !important;
        padding: 0.35rem !important;
        font-size: 1.2rem !important;
    }

    /* Hide top bar lang switcher completely on mobile! Show inside hamburger dropdown menu only! */
    .lang-switcher-container {
        display: none !important;
    }

    .mobile-lang-switcher-container {
        display: flex !important;
    }

    .header-right .nav-auth-btn {
        font-size: 0.76rem;
        padding: 0.38rem 0.65rem;
        max-width: 160px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hamburger {
        padding: 0.3rem;
        font-size: 1.1rem;
    }

    /* 2. Admin & Content Form Grid Stacking on Mobile */
    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns:1fr 1fr"],
    div[style*="grid-template-columns: 1fr 1fr 1fr"],
    div[style*="grid-template-columns:1fr 1fr 1fr"],
    div[style*="grid-template-columns: 2fr 1fr"],
    div[style*="grid-template-columns:2fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }

    /* 3. Responsive Tables with Smooth Touch Horizontal Scroll */
    .table-responsive,
    table,
    .table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        white-space: nowrap !important;
    }

    th, td {
        padding: 0.55rem 0.65rem !important;
        font-size: 0.8rem !important;
    }

    /* 4. Event & Admin Card Action Buttons Stacking for Mobile Screens */
    .event-card div[style*="display: flex"],
    .event-card div[style*="display:flex"],
    .upcoming-event-card div[style*="display: flex"],
    .upcoming-event-card div[style*="display:flex"],
    .glass-card div[style*="display: flex"]:has(> .btn),
    .glass-card div[style*="display:flex"]:has(> .btn) {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.65rem !important;
    }

    .event-card .btn,
    .upcoming-event-card .btn,
    .glass-card .btn-sm,
    main .btn[style*="flex: 1"],
    main .btn[style*="flex:1"] {
        width: 100% !important;
        flex: none !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.88rem !important;
        white-space: normal !important;
        box-sizing: border-box !important;
    }

    /* 5. Hide Profile Letter Avatar Circle Icons ONLY on Mobile (both Header & Profile Page) */
    .user-avatar,
    .profile-avatar-box,
    .profile-avatar-circle,
    .user-avatar-circle,
    .avatar-circle {
        display: none !important;
    }

    .header-right .nav-auth-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50px !important; /* Perfect Pill for Badge */
        padding: 0.35rem 0.65rem !important;
        font-size: 0.75rem !important;
        white-space: nowrap !important;
        max-width: 160px !important;
        flex-shrink: 0 !important;
    }

    /* 6. Page Headers & Glass Cards Mobile Spacing */
    .page-header {
        padding: 2rem 1rem;
    }

    .page-header h1 {
        font-size: 1.65rem;
    }

    .glass-card {
        padding: 1.15rem;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 480px) {
    header .nav-wrapper {
        padding: 0.4rem 0.45rem;
        gap: 0.2rem;
    }

    header .logo-img {
        height: 32px;
    }

    .header-right .nav-auth-btn {
        font-size: 0.7rem !important;
        padding: 0.3rem 0.55rem !important;
        max-width: 130px !important;
        border-radius: 50px !important;
    }

    body {
        padding-bottom: 2rem;
    }
}

/* ==========================================================================
   CUSTOM UI POPUP MODAL STYLES (Site İçi Özel Pop-up Sistem)
   ========================================================================== */
.custom-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    padding: 1.25rem;
    animation: fadeOverlay 0.25s ease-out;
}

.custom-popup-overlay.active {
    display: flex !important;
}

.custom-popup-card {
    position: relative;
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 2.5rem 2.25rem 2rem;
    max-width: 470px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    border: 1px solid rgba(226, 232, 240, 0.8);
    animation: popIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-popup-close-btn {
    position: absolute;
    top: 1.15rem;
    right: 1.15rem;
    border: none;
    background: #f1f5f9;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.25rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-popup-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: scale(1.08);
}

.custom-popup-icon {
    width: 74px;
    height: 74px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.35rem;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.custom-popup-icon.info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #2563eb;
    border: 2px solid #bfdbfe;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.25);
}

.custom-popup-icon.success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #16a34a;
    border: 2px solid #bbf7d0;
    box-shadow: 0 10px 25px -5px rgba(22, 163, 74, 0.25);
}

.custom-popup-icon.warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #d97706;
    border: 2px solid #fde68a;
    box-shadow: 0 10px 25px -5px rgba(217, 119, 6, 0.25);
}

.custom-popup-icon.error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
    border: 2px solid #fecaca;
    box-shadow: 0 10px 25px -5px rgba(220, 38, 38, 0.25);
}

.custom-popup-title {
    color: #0f172a;
    font-size: 1.38rem;
    font-weight: 800;
    margin-bottom: 0.65rem;
    letter-spacing: -0.02em;
}

.custom-popup-message {
    color: #475569;
    font-size: 0.94rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
    white-space: pre-line;
    word-break: break-word;
}

.custom-popup-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.custom-popup-btn {
    padding: 0.75rem 2.2rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.custom-popup-btn.btn-error {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}

.custom-popup-btn.btn-success {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

.custom-popup-btn.btn-warning {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.custom-popup-btn.btn-info {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.custom-popup-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

@keyframes fadeOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popIn {
    from { opacity: 0; transform: translateY(24px) scale(0.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* A4 PDF Printable Form Styles */
@media print {
    body * {
        visibility: hidden !important;
    }
    #pdf-printable-content, #pdf-printable-content * {
        visibility: visible !important;
    }
    #pdf-printable-content {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 15mm 20mm !important;
        box-shadow: none !important;
        border: none !important;
        background: #ffffff !important;
    }
    .preview-modal, .preview-card {
        background: transparent !important;
        box-shadow: none !important;
        position: static !important;
        padding: 0 !important;
    }
}

/* ==========================================================================
   ADMIN PANEL DASHBOARD & MODULAR ICON MENU STYLES
   ========================================================================== */
.admin-dashboard-container {
    margin-bottom: 2rem;
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.admin-stat-card {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.admin-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.admin-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.admin-stat-info {
    flex: 1;
    min-width: 0;
}

.admin-stat-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.admin-stat-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.admin-stat-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.admin-board-notes-card {
    background: #ffffff;
    border: 1px solid #fef08a;
    border-left: 5px solid #eab308;
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

/* Sticky-Note & Accordion Dropdown Styles */
.board-note-sticky-item {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
    background: #ffffff;
}

.board-note-sticky-item:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.board-note-sticky-item.cat-gundem {
    border-left: 5px solid #eab308;
    background: #fffdf7;
}

.board-note-sticky-item.cat-bilgi {
    border-left: 5px solid #10b981;
    background: #f7fdfa;
}

.board-note-sticky-item.cat-karar {
    border-left: 5px solid #2563eb;
    background: #f8faff;
}

.board-note-sticky-item.cat-acil {
    border-left: 5px solid #ef4444;
    background: #fffafa;
}

.board-note-header {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    user-select: none;
    transition: background-color 0.15s ease;
}

.board-note-header:hover {
    background-color: rgba(0, 0, 0, 0.025);
}

.board-note-chevron {
    transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1);
    color: #64748b;
    font-size: 0.85rem;
}

.board-note-chevron.open {
    transform: rotate(180deg);
    color: #1e293b;
}

.board-note-body-content {
    animation: noteFadeIn 0.22s ease-out;
}

@keyframes noteFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Board Notes Scrollable Container */
.admin-board-notes-scroll-container {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
}

.admin-board-notes-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.admin-board-notes-scroll-container::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 8px;
}

.admin-board-notes-scroll-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 8px;
}

.admin-board-notes-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.admin-icon-nav-container {
    margin-bottom: 2rem;
}

.admin-icon-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-icon-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.85rem;
}

.admin-icon-tool-btn {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.15rem 0.65rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.55rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.admin-icon-tool-btn:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(25, 58, 112, 0.12);
}

.admin-icon-tool-btn.active {
    border-color: var(--primary);
    background: #eff6ff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(25, 58, 112, 0.16);
}

.admin-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: transform 0.2s ease;
}

.admin-icon-tool-btn:hover .admin-icon-circle {
    transform: scale(1.08);
}

.admin-icon-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
}

.admin-icon-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.admin-icon-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 20px;
    line-height: 1.2;
}

.admin-active-tool-workspace {
    margin-top: 1rem;
    animation: fadeInTool 0.3s ease forwards;
}

@keyframes fadeInTool {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#admin-profile-top-scroll::-webkit-scrollbar,
#admin-profile-table-wrapper::-webkit-scrollbar {
    height: 12px;
    width: 10px;
}
#admin-profile-top-scroll::-webkit-scrollbar-track,
#admin-profile-table-wrapper::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 6px;
}
#admin-profile-top-scroll::-webkit-scrollbar-thumb,
#admin-profile-table-wrapper::-webkit-scrollbar-thumb {
    background: #193a70;
    border-radius: 6px;
    border: 2px solid #f1f5f9;
}
#admin-profile-top-scroll::-webkit-scrollbar-thumb:hover,
#admin-profile-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #c8041a;
}
#admin-profile-table-wrapper {
    max-height: 520px !important;
    overflow-y: auto !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    contain: paint;
    transform: translateZ(0);
    will-change: scroll-position;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
#admin-profiles-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #ffffff;
    width: 100%;
}
#admin-profiles-table thead {
    background: #f1f5f9;
}
#admin-profiles-table th {
    padding: 0.8rem 0.85rem;
    font-size: 0.84rem;
    white-space: nowrap;
    background: #f1f5f9 !important;
    background-clip: padding-box;
    border-bottom: 2px solid #cbd5e1;
    position: sticky;
    top: 0;
    z-index: 5;
    box-shadow: inset 0 -1px 0 #cbd5e1;
}
#admin-profiles-table td {
    padding: 0.7rem 0.85rem;
    font-size: 0.86rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
    background-clip: padding-box;
}
#admin-profiles-table tbody tr {
    cursor: pointer;
    transition: background 0.15s ease;
}
#admin-profiles-table tbody tr:hover td {
    background: #f8fafc;
}
#admin-profiles-table .member-identity-cell {
    position: relative;
    transition: background 0.15s ease;
}
#admin-profiles-table tbody tr:hover .member-identity-cell {
    background: #eff6ff !important;
}
