/* =============================================
   BTDOTD — Ortak Stil Dosyası
   assets/css/style.css
   ============================================= */

/* --- Google Fonts import (sayfada da link tag gerekli) --- */

:root {
    --primary:      #009cb8;
    --primary-dark: #007c96;
    --secondary:    #0f172a;
    --accent:       #00feff;
    --bg:           #ffffff;
    --surface:      #f8fafc;
    --surface-alt:  #f1f5f9;
    --text-main:    #1e293b;
    --text-muted:   #64748b;
    --border:       #e2e8f0;
    --shadow-sm:    0 1px 3px rgba(0,0,0,0.06);
    --shadow-md:    0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg:    0 20px 40px rgba(0,0,0,0.1);
    --radius-sm:    8px;
    --radius-md:    12px;
    --radius-lg:    20px;
    --transition:   all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── CONTAINER ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── HEADER ── */
header#site-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

header#site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    height: 56px;
    object-fit: contain;
}

/* --- Nav links --- */
.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.93rem;
    position: relative;
    padding: 6px 0;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active { color: var(--primary); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* --- Header actions --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.mobile-menu-btn {
    display: none;
}

/* --- User Dropdown --- */
.user-dropdown {
    position: relative;
}

.user-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 10px;
    border: 1.5px solid var(--border);
    border-radius: 40px;
    background: var(--surface);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
}

.user-dropdown-btn:hover {
    border-color: var(--primary);
    background: white;
}

.user-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    z-index: 200;
}

.user-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 10px 12px 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
}

.dropdown-header strong {
    display: block;
    font-size: 0.9rem;
    color: var(--secondary);
}

.dropdown-header span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.dropdown-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.db-onaylandi { background: #f0fdf4; color: #16a34a; }
.db-beklemede { background: #fffbeb; color: #d97706; }
.db-reddedildi { background: #fef2f2; color: #dc2626; }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    font-family: inherit;
}

.dropdown-item:hover {
    background: var(--surface);
    color: var(--primary);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.dropdown-item:hover i { color: var(--primary); }

.dropdown-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 6px 0;
}

.dropdown-item.logout-btn {
    color: #dc2626;
}
.dropdown-item.logout-btn i { color: #dc2626; }
.dropdown-item.logout-btn:hover { background: #fef2f2; }

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 26px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 156, 184, 0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 156, 184, 0.35);
}

.btn-outline {
    border: 1.5px solid var(--border);
    color: var(--text-main);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0,156,184,0.04);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.82rem;
}

/* ── SECTIONS ── */
section { padding: 90px 0; }

.section-header {
    text-align: center;
    margin-bottom: 56px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

/* ── PAGE HERO (iç sayfalar) ── */
.page-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #009cb8 100%);
    padding: 120px 0 64px;
    color: white;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0,254,255,0.07) 0%, transparent 70%);
    border-radius: 50%;
}

.page-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.page-hero p {
    color: rgba(255,255,255,0.72);
    font-size: 1.05rem;
    max-width: 600px;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    font-size: 0.83rem;
    color: rgba(255,255,255,0.5);
}

.breadcrumb a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover { color: white; }

/* ── FORMS ── */
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-label { font-size: 0.85rem; font-weight: 600; color: var(--text-main); }
.form-label .req { color: #e53e3e; }

.form-control {
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.93rem;
    color: var(--text-main);
    background: white;
    transition: var(--transition);
    width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 156, 184, 0.12);
}

textarea.form-control { resize: vertical; min-height: 110px; }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%2364748b' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error   { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.alert-warning { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }

/* ── FOOTER ── */
footer#site-footer {
    background: var(--secondary);
    color: white;
    padding: 72px 0 28px;
}

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

.footer-about p {
    color: #94a3b8;
    font-size: 0.92rem;
    margin-top: 18px;
    margin-bottom: 24px;
    max-width: 280px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.65);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.88rem;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover { color: white; padding-left: 4px; }

.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 12px;
}

/* ── CARDS (activity cards) ── */
.activity-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.activity-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.activity-img {
    height: 220px;
    background-color: var(--surface-alt);
    position: relative;
    overflow: hidden;
}

.activity-img.img-1 { background: linear-gradient(45deg, #1e293b, #334155); }
.activity-img.img-2 { background: linear-gradient(45deg, #009cb8, #007c96); }
.activity-img.img-3 { background: linear-gradient(45deg, #1e3a5f, #009cb8); }

.activity-date-badge {
    position: absolute;
    top: 14px; right: 14px;
    background: white;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.activity-content {
    padding: 28px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.activity-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.activity-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.activity-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.7;
}

.activity-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: var(--transition);
    margin-top: auto;
}

.activity-link:hover { gap: 12px; }

/* ── BADGE ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(0, 156, 184, 0.1);
    color: var(--primary);
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sticky-card {
    position: sticky;
    top: 100px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-links, .header-actions { display: none !important; }

    .mobile-menu-btn {
        display: block !important;
        background: none;
        border: none;
        font-size: 1.8rem;
        color: var(--secondary);
        cursor: pointer;
        margin-left: auto;
    }
    .page-hero h1 { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .navbar { height: 70px; }
    .logo img { height: 46px; }

    /* TÜM GRID YAPILARINI MOBİLDE ALT ALTA DİZ (BOOTSTRAP MANTIĞI) */
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    /* ÜYE OL SAYFASINDAKİ GÖRSEL ALANININ GENİŞLİĞİNİ MOBİLDE DÜZENLE */
    #kimlikPreviewBox {
        width: 100% !important;
        max-width: 180px;
    }
    label[style*="width:180px"] {
        width: 100% !important;
        max-width: 180px;
    }
}

@media (max-width: 768px) {
    /* FAALİYETLER ARAMA KUTUSU VE İLETİŞİM STICKY FIX */
    .mobile-search-box {
        width: 100% !important;
        min-width: 100% !important;
        margin-top: 6px;
    }
    .sticky-card {
        position: static !important;
    }
}

/* -- MOBILE MENU DRAWER -- */
.mobile-menu-overlay {
    position: fixed; top:0; left:0; width:100%; height:100%;
    background: rgba(0,156,184,0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
}
.mobile-menu-drawer {
    position: fixed; top:0; right:-100%; width:100%; max-width:100%; height:100vh;
    background: white;
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
}
.mobile-menu-drawer.open { right: 0; }
.mobile-menu-overlay.open { opacity: 1; visibility: visible; }

.drawer-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.drawer-header .logo img { height: 46px; }
.close-drawer {
    background: none; border: none; font-size: 2rem; color: var(--text-muted);
    cursor: pointer; transition: var(--transition);
    width: 44px; height: 44px; display:flex; align-items:center; justify-content:center;
    border-radius: 50%; background: var(--surface);
}
.close-drawer:hover { color: #dc2626; transform: rotate(90deg); background: #fef2f2; }

.drawer-body {
    padding: 40px 24px; overflow-y: auto; flex-grow: 1;
    display: flex; flex-direction: column;
}
.drawer-nav { list-style: none; margin-bottom: 40px; }
.drawer-nav li { margin-bottom: 14px; }
.drawer-nav a {
    text-decoration: none; font-size: 1.25rem; font-weight: 700;
    color: var(--secondary); background: var(--surface-alt);
    border: 1.5px solid transparent; border-radius: 12px;
    padding: 16px 20px; transition: var(--transition); 
    display: flex; align-items: center; justify-content: space-between;
}
.drawer-nav a::after {
    content: '\f054';
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}
.drawer-nav a:hover, .drawer-nav a.active { 
    color: var(--primary); 
    background: rgba(0,156,184,0.06);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.drawer-nav a:hover::after, .drawer-nav a.active::after { 
    color: var(--primary); transform: translateX(4px); 
}
.drawer-footer { margin-top: auto; padding-top:30px; border-top:1px solid var(--border); }

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .btn { padding: 10px 18px; font-size: 0.85rem; }
}
