/* Smooth theme transition */
*, *::before, *::after {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

html, body { max-width: 100%; overflow-x: hidden; }

/* ===== HEADER (Mockup Style) ===== */
header { width: min(100% - 96px, 1400px); margin: 0 auto; background: rgba(255,250,244,0.9); border-bottom: 1px solid rgba(232,228,222,0.9); border-radius: 0 0 24px 24px; position: sticky; top: 0; z-index: 100; box-shadow: 0 18px 50px rgba(27,43,77,0.08); backdrop-filter: blur(18px); }
.header-inner { max-width: 100%; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 66px; }
.header-left { display: flex; align-items: center; gap: 20px; min-width: 0; }
.logo { display: flex; align-items: center; gap: 8px; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 20px; color: #1B2B4D; white-space: nowrap; flex-shrink: 0; }
.logo-icon { width: 30px; height: 30px; background: #E07A3D; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; flex-shrink: 0; }
.main-nav { display: flex; align-items: center; gap: 14px; min-width: 0; }
.main-nav a { position: relative; font-size: 13px; font-weight: 500; color: #6b6b7b; transition: color 0.2s; white-space: nowrap; text-decoration: none; }
.main-nav a:hover, .main-nav a.active { color: #1B2B4D; }
.main-nav a.active { position: relative; }
.main-nav a::after { content: ''; position: absolute; bottom: -18px; left: 0; right: 0; height: 2px; background: #E07A3D; border-radius: 2px; transform: scaleX(0); transform-origin: center; transition: transform 0.2s ease; }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

/* Dropdown Menu */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { position: relative; display: flex; align-items: center; gap: 4px; cursor: pointer; font-size: 13px; font-weight: 500; color: #6b6b7b; transition: color 0.2s; white-space: nowrap; text-decoration: none; padding: 0; background: none; border: none; font-family: inherit; }
.nav-dropdown-toggle:hover { color: #1B2B4D; }
.nav-dropdown-toggle::after { content: ''; position: absolute; bottom: -18px; left: 0; right: 0; height: 2px; background: #E07A3D; border-radius: 2px; transform: scaleX(0); transform-origin: center; transition: transform 0.2s ease; }
.nav-dropdown:hover .nav-dropdown-toggle::after { transform: scaleX(1); }
.nav-dropdown-toggle i { font-size: 10px; transition: transform 0.2s; }
.nav-dropdown:hover .nav-dropdown-toggle i { transform: rotate(180deg); }
.nav-dropdown-menu { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%); background: #fff; border-radius: 12px; box-shadow: 0 8px 32px rgba(27,43,77,0.12); border: 1px solid #f0ebe4; padding: 8px; min-width: 180px; opacity: 0; visibility: hidden; transition: all 0.2s ease; z-index: 1001; }
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; top: calc(100% + 8px); }
.nav-dropdown-menu::before { content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg); width: 12px; height: 12px; background: #fff; border-left: 1px solid #f0ebe4; border-top: 1px solid #f0ebe4; }
.nav-dropdown-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; font-size: 13px; font-weight: 500; color: #1B2B4D !important; text-decoration: none; transition: all 0.2s; white-space: nowrap; }
.nav-dropdown-menu a:hover { background: #fff4ec; color: #C95F23 !important; }
.nav-dropdown-menu a:hover i { color: #C95F23 !important; }
.nav-dropdown-menu a i { width: 18px; text-align: center; font-size: 12px; }

.header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.search-bar { position: relative; }
.search-bar input { width: 150px; height: 36px; border: 1px solid #e8e4de; border-radius: 100px; padding: 0 32px 0 14px; font-size: 12px; background: #FAF8F5; outline: none; transition: all 0.2s; }
.search-bar input:focus { border-color: #E07A3D; background: #fff; width: 180px; }
.search-bar i { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #9ca3af; font-size: 11px; }
.lang-switch { position: relative; display: inline-block; }
.lang-switch-btn { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: #1B2B4D; cursor: pointer; padding: 6px 10px; border-radius: 8px; transition: background 0.2s; border: none; background: transparent; }
.lang-switch-btn:hover { background: #f5f0e8; }
.lang-dropdown { display: none; position: absolute; top: 100%; right: 0; margin-top: 4px; background: white; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); overflow: hidden; z-index: 1000; min-width: 140px; }
.lang-dropdown.show { display: block; }
.lang-dropdown a { display: flex; align-items: center; gap: 8px; padding: 10px 14px; text-decoration: none; color: #1a1a2e; font-size: 14px; transition: background 0.2s; }
.lang-dropdown a:hover { background: #f5f0e8; }
.notif-btn-main { position: relative; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background 0.2s, color 0.2s, transform 0.2s; cursor: pointer; color: #1B2B4D; text-decoration: none; }
.notif-btn-main:hover { background: rgba(255,255,255,0.72); color: #E07A3D; transform: translateY(-1px); }
.notif-dropdown { position: absolute; top: 64px; right: 120px; z-index: 9999; }
#msgDropdown.notif-dropdown { right: 80px; }
.notif-dropdown, .notif-dropdown * { color: #1a1a2e; }
.notif-dropdown a { color: #1a1a2e !important; }
.notif-dropdown a:hover, .notif-dropdown [data-dropdown-item]:hover { background: #faf7f2 !important; color: #1a1a2e !important; }
.notif-dot-main { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; background: #E07A3D; border-radius: 50%; border: 2px solid #fff; }
.profile-btn-main { display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 3px 10px 3px 3px; border-radius: 100px; transition: background 0.2s; text-decoration: none; }
.profile-btn-main:hover { background: #f5f0e8; }
a.profile-btn-main[href$="/giris"] { background: #1B2B4D !important; color: #fff !important; box-shadow: 0 10px 24px rgba(27,43,77,0.18); }
a.profile-btn-main[href$="/giris"] i,
a.profile-btn-main[href$="/giris"] span { color: #fff !important; }
a.profile-btn-main[href$="/giris"]:hover { background: #E07A3D !important; color: #fff !important; }
.profile-avatar-main { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.profile-avatar-fallback { width: 32px; height: 32px; border-radius: 50%; background: #E07A3D; color: white; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; flex-shrink: 0; }

main { min-height: calc(100vh - 200px); padding: 32px 0; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

/* MINIMALIST FOOTER - Premium Paper & Quill Design */
footer { 
    background: #FDF8F1; 
    color: #003060; 
    padding: 60px 0 24px; 
    position: relative;
    border-top: 1px solid rgba(197, 160, 89, 0.3);
    font-family: 'Playfair Display', Georgia, serif;
}

footer::before {
    content: '';
    position: absolute;
    right: 5%;
    bottom: 80px;
    width: 380px;
    height: 380px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003060' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19l7-7 3 3-7 7-3-3z'/%3E%3Cpath d='M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z'/%3E%3Cpath d='M2 2l7.586 7.586'/%3E%3Ccircle cx='11' cy='11' r='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.footer-content { 
    max-width: 1320px; 
    margin: 0 auto; 
    padding: 0 24px; 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 1fr; 
    gap: 48px; 
    position: relative;
    z-index: 1;
}

.footer-brand { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 26px; 
    font-weight: 600; 
    color: #003060;
    letter-spacing: -0.5px;
}

.footer-brand i { 
    color: #C5A059; 
    font-size: 22px;
}

.footer-desc { 
    margin-top: 16px; 
    color: #5a6b7c; 
    max-width: 300px; 
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    font-weight: 400;
}

.footer-title { 
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 15px; 
    font-weight: 600;
    color: #003060;
    margin-bottom: 20px; 
    letter-spacing: 0.5px;
}

.footer-links { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
}

.footer-links a { 
    color: #5a6b7c; 
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease; 
    text-decoration: none;
    position: relative;
}

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

.footer-bottom { 
    max-width: 1320px; 
    margin: 48px auto 0; 
    padding: 24px 24px 0; 
    border-top: 1px solid rgba(197, 160, 89, 0.2); 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    position: relative;
    z-index: 1;
}

.footer-copyright {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #7a8b9c;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-copyright i {
    color: #C5A059;
    font-size: 12px;
}

.footer-socials { 
    display: flex; 
    gap: 20px; 
}

.footer-socials a { 
    color: #003060;
    font-size: 18px;
    transition: all 0.3s ease; 
    opacity: 0.7;
}

.footer-socials a:hover { 
    color: #C5A059; 
    opacity: 1;
    transform: translateY(-2px);
}

@media (max-width: 1360px) {
    header { width: calc(100% - 32px); }
    .main-nav { display: none; }
    .mobile-menu-btn { display: flex; }
}
@media (max-width: 1024px) {
    .search-bar { max-width: 200px; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    header { width: 100%; border-radius: 0; }
    .header-inner { flex-wrap: wrap; padding: 0 12px; gap: 8px; }
    .search-bar { display: none; }
    footer > div:first-child { grid-template-columns: 1fr !important; gap: 28px !important; }
    footer > div:nth-child(2) { flex-direction: column !important; gap: 16px !important; text-align: center !important; }
    footer > div:nth-child(2) > div { justify-content: center !important; }
    .footer-content { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
    footer::before { width: 200px; height: 200px; right: 2%; opacity: 0.03; }
    .notif-dropdown { top: 56px !important; right: 8px !important; left: 8px !important; }
    .notif-dropdown > div { width: 100% !important; max-height: 70vh !important; }
    .msg-widget-popup { inset: 0 !important; width: 100% !important; height: 100% !important; border-radius: 0 !important; }
    .msg-widget-toggle { bottom: 72px !important; }
}

@media (max-width: 480px) {
    .header-inner { flex-wrap: nowrap; padding: 0 10px; gap: 6px; }
    .header-left { flex: 1 1 auto; gap: 8px; min-width: 0; }
    .logo { font-size: 18px; min-width: 0; }
    .header-right { flex: 0 0 auto; gap: 2px; }
    .lang-switch { display: none; }
    .notif-btn-main { width: 34px; height: 34px; }
    .profile-btn-main { padding: 2px; }
    .profile-btn-main span { display: none !important; }
    .mobile-menu-btn { width: 38px; height: 38px; font-size: 18px; }
}

/* Mobile Navigation */
.mobile-menu-btn { 
    display: none; 
    width: 44px; 
    height: 44px; 
    align-items: center; 
    justify-content: center; 
    font-size: 20px; 
    color: var(--color-primary); 
    cursor: pointer; 
    border-radius: 8px; 
    background: var(--bg-secondary); 
    border: none;
}

@media (max-width: 1360px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: flex; }
}

.mobile-nav {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 200;
    padding: 80px 24px 24px;
    overflow-y: auto;
}

.mobile-nav.active { display: block !important; }

.mobile-nav a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 18px;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
    white-space: nowrap;
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
}

/* Mobile Bottom Navigation */
.bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; height: 60px; background: #fff; border-top: 1px solid #f0ebe4; z-index: 150; justify-content: space-around; align-items: center; padding: 0 4px; box-shadow: 0 -2px 12px rgba(0,0,0,0.06); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: #9ca3af; font-size: 10px; padding: 6px 12px; border-radius: 8px; transition: color 0.2s; min-width: 56px; }
.bottom-nav a i { font-size: 20px; }
.bottom-nav a.active { color: #1B2B4D; }
.bottom-nav a:hover { color: #1B2B4D; }
.bottom-nav .bottom-notif-dot { position: relative; }
.bottom-nav .bottom-notif-dot::after { content: ''; position: absolute; top: 2px; right: -2px; width: 8px; height: 8px; background: #E07A3D; border-radius: 50%; border: 2px solid #fff; }
@media (max-width: 768px) {
    .bottom-nav { display: flex; }
    body { padding-bottom: 60px; }
}
