:root {
    --bg-body: #0a1410;
    --card-surface-top: rgba(20, 35, 30, 0.98);
    --card-surface-bottom: rgba(5, 10, 8, 0.99);
    --card-glass-blur: blur(12px);
    --accent-primary: #c5a065;
    --accent-light: #e8dcb5;
    --accent-dark: #8c6b3d;
    --accent-danger: #ff4d4d;
    --glow-color: rgba(197, 160, 101, 0.4);
    --text-main: #f2f0e6;
    --text-muted: #8fa39a;
    --font-family: "Manrope", sans-serif;
    --font-luxury: "Cinzel", serif;
    --font-tech: "Manrope", sans-serif;
    --font-hand: "Dancing Script", cursive;
    --font-serif: "Lora", serif;
    --card-radius: 16px;
    --btn-height: 44px;
    --ease-fluid: cubic-bezier(0.2, 0.6, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --z-back: -1;
    --z-normal: 1;
    --z-header: 1000;
    --z-overlay: 1150;
    --z-modal: 1200;
    --z-modal-high: 1300;
    --z-reader: 1500;
    --z-tooltip: 2000;
    --z-toast: 3000;
}
body::-webkit-scrollbar {
    display: none;
}
body {
    font-family: var(--font-family);
    color: var(--text-main);
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0px;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
}
header,
.site-header,
.header,
.navbar {
    /* Performans için resetlendi, görsel etkisi yok */
    transform: none !important;
    animation: none !important;
    transition: none !important;
    will-change: auto !important;
    backface-visibility: visible !important;
}
header *:not(.profile-dropdown):not(.profile-dropdown *):not(.animate-marquee),
.site-header *:not(.profile-dropdown):not(.profile-dropdown *):not(.animate-marquee),
.header *:not(.profile-dropdown):not(.profile-dropdown *):not(.animate-marquee),
.navbar *:not(.profile-dropdown):not(.profile-dropdown *):not(.animate-marquee) {
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

.noise-overlay {
    /* MADDE 1: RAM optimizasyonu için fixed -> absolute ve mix-blend-mode kaldırıldı */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.04;
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAGFBMVEUAAAA5OTkAAAAAAAAAAABMTExERERmZmZhWvtIAAAABXRSTlMfMzMzM7NsjT8AAAAwSURBVDjLY2AYBaNgKLChQA8oKChA8QoKFC8oQPEKChQvKEDxCgoUryhA8YI6BgwAAJnFQ3u1se165AAAAAElFTSuQmCC");
    background-repeat: repeat;
    /* mix-blend-mode: overlay; -> KALDIRILDI (RAM TASARRUFU) */
}
.main-header {
    width: calc(100% - 24px);
    max-width: 1200px;
    margin: 0 auto 25px auto;
    /* MADDE 2: Blur kaldırıldı, opaklık artırıldı. Fixed -> Absolute yapıldı */
    background: rgba(14, 20, 18, 0.99);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(197, 160, 101, 0.25);
    border-left: 1px solid rgba(255, 255, 255, 0.03);
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 60px;
    padding: 18px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: static;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1005;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
@media (max-width: 900px) {
    .main-header {
        background: rgba(10, 20, 16, 0.99);
        padding: 12px 20px;
        border-radius: 30px;
        border-bottom: 1px solid rgba(197, 160, 101, 0.2);
        /* backdrop-filter kaldırıldı */
    }
}
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--accent-primary);
    cursor: pointer;
    padding: 5px;
    position: relative;
    top:1px;
}
.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}
@media (max-width: 900px) {
    .mobile-menu-btn {
        display: block;
    }
}
.header-logo {
    font-family: var(--font-luxury);
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #e8dcb5 10%, #c5a065 50%, #8c6b3d 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1.5px;
    text-decoration: none;
    flex-shrink: 0;
    position: relative;
    transform: translateZ(0);
}
@media (max-width: 768px) {
  .header-logo {
      background: none !important;
      -webkit-background-clip: initial !important;
      -webkit-text-fill-color: initial !important;
      color: #c5a065 !important;
      text-shadow: none !important;
      top:2px;
      font-size: 17px;
  }
}
.header-nav {
    display: none;
    gap: 40px;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin: 0 20px;
    white-space: nowrap;
}
@media (min-width: 900px) {
    .header-nav {
        display: flex;
    }
}
.header-link {
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition:
        color 0.3s ease,
        text-shadow 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
@media (hover: hover) {
    .header-link:hover {
        color: var(--accent-primary);
        text-shadow: 0 0 12px rgba(197, 160, 101, 0.5);
    }
}
.header-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-primary);
    transform: scaleX(0);
    transform-origin: bottom left;
    transition: transform 0.3s var(--ease-smooth);
}
@media (hover: hover) {
    .header-link:hover::after {
        transform: scaleX(1);
    }
}
.header-link.highlight {
    color: #0a1410;
    font-weight: 800;
    background: linear-gradient(135deg, #c5a065 0%, #e8dcb5 100%);
    padding: 8px 18px;
    border-radius: 24px;
    box-shadow: 0 0 20px rgba(197, 160, 101, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-shadow: none;
}
.header-link.highlight.premium-link {
    background: linear-gradient(135deg, #e0e0e0 0%, #ffffff 50%, #c0c0c0 100%);
    color: #000;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}
.header-link.highlight::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(197, 160, 101, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}
.header-link.highlight.premium-link::before {
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.5);
}
.header-link.highlight:hover::before {
    opacity: 1;
}
@media (hover: hover) {
    .header-link.highlight:hover {
        transform: translateY(-2px);
        color: #000;
    }
}
.header-link.highlight::after {
    display: none;
}
.highlight-icon {
    width: 16px;
    height: 16px;
    fill: #ff4500;
    filter: drop-shadow(0 0 5px #ff4500);
    /* MADDE 3: Sonsuz animasyon iptal edildi */
    /* animation: pulseFire 1.2s infinite alternate ease-in-out; */
}
.premium-icon {
    fill: #000 !important;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.3));
    /* MADDE 3: Sonsuz animasyon iptal edildi */
    /* animation: pulseGold 2s infinite alternate ease-in-out; */
}
@keyframes pulseFire {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.2);
    }
}
@keyframes pulseGold {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}
.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
    position: relative;
}
.header-icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
    position: relative;
}
@media (hover: hover) {
    .header-icon-btn:hover {
        color: var(--accent-light);
        text-shadow: 0 0 10px rgba(232, 220, 181, 0.5);
    }
}
.header-icon-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}
.header-user-menu {
    position: relative;
    z-index: 2000;
}
.profile-dropdown {
    position: absolute;
    top: -1500px;
    right: 0;
    width: 220px;
    background: #0a1410 !important;
    border: 1px solid rgba(197, 160, 101, 0.4);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 1);
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
    /* MADDE 6: Profil animasyonu korundu ama optimize edildi */
    will-change: transform, opacity;
    transition:
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.3s ease;
    transform-origin: top right;
    z-index: 5000;
    isolation: isolate;
    contain: paint;
}
.profile-dropdown *{
  pointer-events: none;
}

.profile-dropdown::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #0a1410;
    z-index: -1;
    border-radius: 12px;
}
.profile-dropdown.active {
  top:150%;
  opacity: 1 !important;
  transform: translateY(0) scale(1);
}
.profile-dropdown.active *{
  pointer-events: auto !important;
}
.profile-link {
    display: block;
    padding: 12px 18px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.2s;
    text-align: left;
    user-select: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
}
@media (hover: hover) {
    .profile-link:hover {
        background: rgba(197, 160, 101, 0.15);
        color: var(--accent-primary);
    }
}
.profile-link.logout {
    color: var(--accent-danger);
    font-family: var(--font-luxury);
    margin-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 14px;
}
@media (hover: hover) {
    .profile-link.logout:hover {
        background: rgba(255, 77, 77, 0.1);
        color: #ff6b6b;
    }
}
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 10, 8, 0.99);
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    opacity: 1; /* Opaklık full */
    pointer-events: auto;
    overscroll-behavior: contain;
    transform: none !important;
     isolation: isolate;
}
.mobile-nav-overlay.active {
    display: flex; /* Aktif olunca anında görünür */
}
.mobile-nav-link {
    font-family: var(--font-luxury);
    font-size: 20px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}
.mobile-nav-link.highlight {
    color: var(--accent-primary);
    text-shadow: 0 0 15px rgba(197, 160, 101, 0.5);
}
.mobile-nav-link .nav-badge {
    font-family: "Cinzel", serif;
    font-size: 12px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
    color: #000;
    font-weight: 700;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 6px;
    /* MADDE 3: Sonsuz animasyon iptal edildi */
    /* animation: badgePulse 2s infinite; */
}
.mobile-nav-link .nav-badge.premium {
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}
@keyframes badgePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}
.mobile-close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 32px;
    cursor: pointer;
}
#parchment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 5000;
    /* MADDE 5: Manifesto Instant açılış */
    display: none; /* Varsayılan gizli */
    align-items: center;
    justify-content: center;
    opacity: 1;
    pointer-events: auto;
    /* transition: opacity 0.5s ease; -> KALDIRILDI (Instant Açılış) */
    padding: 20px;
    touch-action: none;
}
#parchment-modal.active {
    display: flex; /* Aktif olunca anında görünür */
}
.parchment-container {
    position: relative;
    width: 100%;
    max-width: 240px;
    background: #f4e4bc;
    padding: 40px 30px;
    border-radius: 5px;
    box-shadow:
        0 0 30px rgba(0, 0, 0, 0.8),
        inset 0 0 60px rgba(160, 82, 45, 0.2);
    /* MADDE 5: Dönme ve kayma animasyonu kaldırıldı */
    /* transform: translateY(20px) rotate(1deg); */
    /* transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); */
    overscroll-behavior: contain;
    touch-action: auto;
}
#parchment-modal.active .parchment-container {
    /* transform: translateY(0) rotate(0deg); */
}
.parchment-text {
    font-family: "Lora", serif;
    font-size: 16px;
    line-height: 1.8;
    color: #3b2f22;
    text-align: center;
    position: relative;
    z-index: 2;
    font-weight: 500;
}
.parchment-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    color: #8b4513;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10;
    font-family: var(--font-luxury);
}
@media (max-width: 768px) {
  .parchment-container {
      max-width: 340px !important;
      padding: 30px !important;
      transform: translateY(0) rotate(0deg) !important;
      font-size: 14px !important;
  }
  .parchment-text {
      font-size: 14px !important;
      line-height: 1.6 !important;
  }
  .parchment-close {
      top: 10px !important;
      right: 15px !important;
      font-size: 24px !important;
  }
}
@media (min-width: 1024px) {
    .parchment-container {
        max-width: 560px !important;
    }
}
#spotlight-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.82);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
body.is-overlay-active #spotlight-overlay {
    opacity: 1;
    pointer-events: auto;
}
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
@media (max-width: 768px) {
    #toast-container {
        top: 10px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 90%;
        max-width: 320px;
        align-items: center;
    }
}
.toast-notification {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--accent-primary);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(20px);
    animation: toastAnim 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    pointer-events: auto;
    min-width: 260px;
}
.toast-icon {
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.toast-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}
@keyframes toastAnim {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    15% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}
@media (min-width: 1024px) {
  .toast-notification {
      font-size: 15px;
      padding: 18px 24px;
      min-width: 350px;
      border-left: 4px solid var(--accent-primary);
      background: rgba(14, 14, 14, 0.98);
  }
  .toast-icon svg {
      width: 24px;
      height: 24px;
  }
}
