@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Cinzel:wght@400;600;700;800&family=JetBrains+Mono:wght@400;500;600&family=Caveat:wght@400;500;600;700&subset=latin-ext&display=swap');

:root {
    --gold: #FFD700;
    --gold-light: #FFE44D;
    --gold-dark: #B8860B;
    --gold-glow: rgba(255, 215, 0, 0.6);
    --gold-subtle: rgba(255, 215, 0, 0.15);
    --black: #000000;
    --black-light: #0a0a0a;
    --bg-card: rgba(10, 10, 10, 0.5);
    --bg-card-hover: rgba(20, 20, 20, 0.65);
    --border-subtle: rgba(255, 215, 0, 0.12);
    --border-medium: rgba(255, 215, 0, 0.25);
    --border-strong: rgba(255, 215, 0, 0.5);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --green: #00E676;
    --red: #FF5252;
    --font-heading: 'Cinzel', Georgia, serif;
    --font-body: 'Poppins', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-handwriting: 'Caveat', cursive;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-gold: 0 0 30px rgba(255, 215, 0, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 70px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-body);
    background-color: var(--black);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

::selection { background: var(--gold); color: var(--black); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

#bg-video, #intro-video {
    position: fixed; top: 50%; left: 50%;
    min-width: 100vw; min-height: 100vh;
    object-fit: cover; transform: translate(-50%, -50%);
    z-index: -100;
}

.overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.7) 100%);
    z-index: -5; pointer-events: none;
}

/* ========== NAVBAR (ICON BASED) ========== */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    height: var(--nav-height);
    display: flex; align-items: center; justify-content: flex-end;
    padding: 0 30px; z-index: 1000;
    background: transparent;
    border-bottom: none;
    transition: var(--transition-smooth);
}

.navbar.scrolled { background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }

.nav-brand {
    display: none;
}

.nav-brand img {
    height: 40px; width: auto;
    filter: drop-shadow(0 0 8px var(--gold-glow));
    transition: var(--transition-fast);
}

.nav-brand:hover img { transform: scale(1.05); }

.nav-brand-text {
    font-family: var(--font-heading);
    font-size: 1rem; font-weight: 700;
    color: var(--gold); letter-spacing: 1px;
}

.nav-links {
    display: flex; align-items: center; gap: 6px;
    list-style: none;
}

.nav-links a {
    display: flex; align-items: center; justify-content: center;
    padding: 8px; border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    text-decoration: none;
}

.nav-links a img.nav-icon {
    height: 42px; width: auto;
    filter: brightness(0.7);
    transition: var(--transition-fast);
}

.nav-links a:hover img.nav-icon,
.nav-links a.active img.nav-icon {
    filter: brightness(1) drop-shadow(0 0 8px var(--gold-glow));
    transform: scale(1.15);
}

.nav-links a.active {
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid var(--border-subtle);
}

.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 8px; z-index: 1001;
    background: none; border: none;
}

.nav-toggle span {
    width: 24px; height: 2px; background: var(--gold);
    transition: var(--transition-fast); border-radius: 2px; display: block;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========== PAGE WRAPPER ========== */
.page-content {
    padding-top: var(--nav-height);
    min-height: 100vh;
    position: relative; z-index: 10;
}

/* ========== HERO (ANA SAYFA) ========== */
.hero-section {
    min-height: calc(100vh - var(--nav-height));
    display: flex; flex-direction: column;
    align-items: center; justify-content: flex-start;
    text-align: center; padding: 30px 20px 40px;
}

.hero-logo-wrapper {
    position: relative;
    margin-bottom: 30px;
    margin-top: 20px;
}

.hero-logo {
    height: 400px; width: auto;
    filter: drop-shadow(0 0 30px var(--gold-glow));
    position: relative; z-index: 2;
}

.hero-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 700px;
    animation: fadeUp 0.8s ease-out 0.3s both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-card {
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.menu-card:hover { transform: scale(1.15); }

.menu-card img {
    width: 160px; height: 160px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px var(--gold-glow));
    transition: var(--transition-smooth);
}

.menu-card:hover img { transform: scale(1.1); filter: drop-shadow(0 0 20px var(--gold-glow)); }

.menu-card-sm img {
    width: 102px; height: 102px;
}

/* ========== SECTION HEADER ========== */
.section-header {
    display: flex; flex-direction: column;
    align-items: center; gap: 12px;
    margin-bottom: 20px; text-align: center;
    position: relative;
}

.section-header .section-icon {
    height: 160px;
    width: auto;
    filter: drop-shadow(0 0 20px var(--gold-glow));
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem; font-weight: 700;
    color: var(--gold); letter-spacing: 1px;
}

.section-divider {
    width: 60px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ========== RATE TABLE ========== */
.rate-page {
    min-height: calc(100vh - var(--nav-height));
    display: flex; flex-direction: column;
    padding: 20px;
}

.rate-layout {
    display: grid;
    grid-template-columns: 180px 1fr 180px;
    gap: 16px; align-items: center;
    max-width: 1400px; width: 100%;
    margin: 0 auto; flex: 1;
}

.rate-side {
    display: flex; justify-content: center;
    align-items: center;
}

.rate-side-logo {
    max-height: 240px; width: auto; max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px var(--gold-glow));
    opacity: 0.85;
    animation: logoFloat 5s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.rate-center {
    position: relative;
    display: flex; flex-direction: column;
    align-items: center;
}

.spline-bg {
    position: absolute;
    width: 700px; height: 700px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0; border-radius: 50%;
    overflow: hidden; pointer-events: auto;
    opacity: 0.6;
}

.spline-bg iframe {
    width: 100%; height: 100%;
    border: none; transform: scale(1.2);
}

.rate-content {
    position: relative; z-index: 10; width: 100%;
}

.table-card {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: none;
    position: relative; overflow: visible;
}

.frame-decor-tl {
    position: absolute; top: -16px; left: -16px;
    width: 64px; z-index: 50; pointer-events: none;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.8));
}

.frame-decor-br {
    position: absolute; bottom: -16px; right: -16px;
    width: 64px; z-index: 50; pointer-events: none;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.8));
}

.rate-table {
    width: 100%; border-collapse: separate; border-spacing: 0;
}

.rate-table thead th {
    font-family: var(--font-body);
    font-size: 0.75rem; font-weight: 600;
    color: var(--gold); text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0 4px 12px;
    border-bottom: 1px solid var(--border-strong);
    text-align: center; white-space: nowrap;
}

.rate-table thead th:first-child { text-align: left; }

.rate-table tbody tr { transition: var(--transition-fast); }
.rate-table tbody tr:hover { background: rgba(255, 215, 0, 0.04); }

.rate-table tbody td {
    padding: 10px 4px;
    font-size: 1rem; font-weight: 600;
    color: var(--text-primary); text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    vertical-align: middle; white-space: nowrap;
}

.rate-table tbody tr:last-child td { border-bottom: none; }
.rate-table tbody td:first-child { text-align: left; }

.currency-cell { display: flex; align-items: center; gap: 8px; }

.flag-pair { display: flex; align-items: center; }

.flag-circle {
    width: 80px; height: 80px;
    border-radius: 50%; object-fit: cover;
    object-position: center 30%;
    border: 2px solid var(--border-medium);
    background: var(--black);
}

.flag-circle:not(:first-child) { margin-left: -16px; }

.flag-circle-video {
    width: 80px; height: 80px;
    border-radius: 50%; overflow: hidden;
    border: 2px solid var(--border-medium);
    background: var(--black); flex-shrink: 0;
}

.flag-circle-video:not(:first-child) { margin-left: -16px; }
.flag-circle-video video { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.flag-circle-video.turkey-flag video { object-position: 40% center; }

.currency-name {
    font-family: var(--font-mono);
    font-size: 1rem; font-weight: 600;
    color: var(--gold); letter-spacing: 1px;
}

.price-cell {
    font-family: var(--font-mono);
    font-size: 1.1rem; font-weight: 600;
    transition: color 0.3s ease;
}

.price-flash-green { color: var(--green) !important; }
.price-flash-red { color: var(--red) !important; }

.change-up { color: var(--green); font-size: 0.85rem; }
.change-down { color: var(--red); font-size: 0.85rem; }
.change-neutral { color: var(--text-muted); font-size: 0.85rem; }

.update-bar {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; margin-top: 14px; padding: 8px;
    font-size: 0.8rem; color: var(--text-muted);
    background: rgba(255,255,255,0.03); border-radius: var(--radius-sm);
}

.update-bar .pulse-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,230,118,0.4); }
    50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(0,230,118,0); }
}

/* ========== GOLD TABLE ========== */
.gold-table-container {
    display: grid;
    grid-template-columns: 1fr 1px 1fr 1px 1fr;
    gap: 0;
}

.gold-column { padding: 0 2px; }

.gold-divider {
    background: linear-gradient(180deg, transparent, var(--border-medium), transparent);
}

.gold-item-cell { display: flex; align-items: center; gap: 8px; }

.gold-thumb {
    width: 140px; height: 140px;
    border-radius: 50%; overflow: hidden;
    border: 2px solid var(--gold-dark);
    box-shadow: 0 0 12px rgba(255,215,0,0.3);
    flex-shrink: 0; background: var(--black);
}

.gold-thumb img, .gold-thumb video { width: 100%; height: 100%; object-fit: cover; }

.gold-name {
    font-family: var(--font-mono);
    font-size: 0.85rem; font-weight: 600;
    color: var(--gold);
}

/* ========== ABOUT PAGE ========== */
.about-page {
    min-height: calc(100vh - var(--nav-height));
    display: flex; align-items: center; justify-content: center;
    padding: 60px 20px;
}

.about-layout {
    display: grid; grid-template-columns: 200px 1fr 200px;
    gap: 40px; align-items: center;
    max-width: 1200px; width: 100%;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 48px;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-card);
    position: relative; overflow: visible;
    text-align: center;
}

.about-title {
    font-family: var(--font-heading);
    font-size: 1.6rem; font-weight: 700;
    color: var(--gold);
    margin-bottom: 24px; padding-bottom: 16px;
    border-bottom: 1px solid var(--border-medium);
}

.about-text {
    font-family: var(--font-handwriting);
    font-size: 1.5rem; color: var(--text-secondary);
    line-height: 1.8; margin-bottom: 16px;
}

.about-text .highlight { color: var(--gold); font-weight: 600; }

.about-quote {
    font-family: var(--font-heading);
    font-size: 1.2rem; font-style: italic;
    color: var(--gold); margin-top: 24px;
    padding-top: 20px; border-top: 1px solid var(--border-subtle);
}

.about-features {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px; margin-top: 32px;
}

.feature-item {
    padding: 20px;
    background: rgba(255,215,0,0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    text-align: center; transition: var(--transition-fast);
}

.feature-item:hover { border-color: var(--gold); transform: translateY(-2px); }

.feature-number {
    font-family: var(--font-heading);
    font-size: 2rem; font-weight: 800;
    color: var(--gold); display: block; margin-bottom: 4px;
}

.feature-label {
    font-size: 0.85rem; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 1px;
}

/* ========== CONTACT PAGE ========== */
.contact-page {
    min-height: calc(100vh - var(--nav-height));
    display: flex; align-items: center; justify-content: center;
    padding: 60px 20px;
}

.contact-layout {
    display: grid; grid-template-columns: 200px 1fr 200px;
    gap: 40px; align-items: center;
    max-width: 1200px; width: 100%;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-card);
    position: relative; overflow: visible;
}

.map-container {
    width: 100%; height: 240px;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    overflow: hidden; margin-bottom: 24px;
}

.map-container iframe {
    width: 100%; height: 100%; border: 0;
    filter: grayscale(30%) contrast(1.1);
}

.info-grid { display: flex; flex-direction: column; gap: 12px; }

.info-item {
    display: flex; align-items: center; gap: 16px;
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.info-item:hover {
    transform: translateX(6px);
    border-color: var(--gold);
    background: rgba(255,215,0,0.05);
}

.info-item .mini-icon { width: 32px; height: 32px; object-fit: contain; filter: drop-shadow(0 0 5px var(--gold-glow)); }
.info-item p { margin: 0; color: var(--text-primary); font-size: 0.95rem; font-weight: 500; }

/* ========== CALCULATOR PAGE ========== */
.calc-page {
    min-height: calc(100vh - var(--nav-height));
    display: flex; align-items: center; justify-content: center;
    padding: 60px 20px;
}

.calc-container { max-width: 800px; width: 100%; }

.calc-card {
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 40px;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-card);
    position: relative; overflow: visible;
}

.calc-tabs {
    display: flex; gap: 4px; margin-bottom: 32px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-sm); padding: 4px;
}

.calc-tab {
    flex: 1; padding: 12px;
    font-family: var(--font-body);
    font-size: 0.9rem; font-weight: 600;
    color: var(--text-secondary);
    background: transparent; border: none;
    border-radius: 6px; cursor: pointer;
    transition: var(--transition-fast);
}

.calc-tab.active { background: var(--gold); color: var(--black); }
.calc-tab:hover:not(.active) { color: var(--gold); background: rgba(255,215,0,0.1); }

.calc-panel { display: none; }
.calc-panel.active { display: block; }

.calc-form { display: flex; flex-direction: column; gap: 20px; }

.calc-field { display: flex; flex-direction: column; gap: 6px; }

.calc-field label {
    font-size: 0.8rem; font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1px;
}

.calc-field select, .calc-field input {
    padding: 14px 16px;
    font-family: var(--font-mono); font-size: 1rem;
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    outline: none; transition: var(--transition-fast);
}

.calc-field select:focus, .calc-field input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(255,215,0,0.1);
}

.calc-field select option { background: var(--black-light); color: var(--text-primary); }

.calc-swap-btn {
    align-self: center; width: 44px; height: 44px;
    border: 1px solid var(--border-medium);
    border-radius: 50%; background: var(--bg-card);
    color: var(--gold); font-size: 1.2rem;
    cursor: pointer; transition: var(--transition-fast);
    display: flex; align-items: center; justify-content: center;
}

.calc-swap-btn:hover { background: var(--gold); color: var(--black); transform: rotate(180deg); }

.calc-result {
    padding: 20px;
    background: rgba(255,215,0,0.05);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md); text-align: center;
}

.calc-result-value { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; color: var(--gold); }
.calc-result-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* ========== FOOTER ========== */
.site-footer {
    background: rgba(0,0,0,0.8);
    border-top: 1px solid var(--border-subtle);
    padding: 24px 40px; text-align: center;
    position: relative; z-index: 10;
}

.footer-text { font-size: 0.8rem; color: var(--text-muted); }
.footer-text a { color: var(--gold); text-decoration: none; }

/* ========== ANIMATIONS ========== */
.shimmer {
    background: linear-gradient(90deg, var(--gold-dark) 0%, var(--gold-light) 50%, var(--gold-dark) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 3s linear infinite;
}

@keyframes shimmerText {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .rate-layout, .about-layout, .contact-layout { grid-template-columns: 1fr; }
    .rate-side { display: none; }
    .gold-table-container { grid-template-columns: 1fr; gap: 20px; }
    .gold-divider { display: none; }
    .spline-bg { width: 500px; height: 500px; }
}

@media (max-width: 768px) {
    :root { --nav-height: 60px; }
    .navbar { padding: 0 16px; }
    .nav-brand-text { display: none; }
    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed; top: 0; right: -100%;
        width: 240px; height: 100vh;
        flex-direction: column;
        background: rgba(0,0,0,0.95);
        backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        padding: 80px 20px 40px;
        gap: 8px; transition: var(--transition-smooth);
        border-left: 1px solid var(--border-subtle);
    }

    .nav-links.open { right: 0; }

    .nav-links a { padding: 12px; width: 100%; justify-content: center; }
    .nav-links a img.nav-icon { height: 40px; }

    .hero-logo { height: 260px; }
    .hero-menu-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 500px; }
    .menu-card img { width: 100px; height: 100px; }

    .section-header .section-icon { height: 100px; }
    .table-card { padding: 14px; }
    .rate-table tbody td { padding: 8px 3px; font-size: 0.85rem; }
    .rate-table thead th { font-size: 0.65rem; padding: 0 3px 10px; }
    .flag-circle, .flag-circle-video { width: 50px; height: 50px; }
    .currency-name { font-size: 0.8rem; }
    .price-cell { font-size: 0.9rem; }
    .gold-thumb { width: 40px; height: 40px; }
    .gold-name { font-size: 0.75rem; }

    .about-card { padding: 28px 20px; }
    .about-text { font-size: 1.25rem; }
    .about-features { grid-template-columns: 1fr; gap: 12px; }
    .contact-card { padding: 20px; }
    .map-container { height: 180px; }
    .calc-card { padding: 24px; }
    .calc-result-value { font-size: 1.5rem; }

    .frame-decor-tl, .frame-decor-br { width: 48px; }
    .frame-decor-tl { top: -12px; left: -12px; }
    .frame-decor-br { bottom: -12px; right: -12px; }
    .spline-bg { width: 350px; height: 350px; }
}

@media (max-width: 480px) {
    .hero-menu-grid { gap: 10px; max-width: 360px; }
    .menu-card { padding: 10px; }
    .menu-card img { width: 72px; height: 72px; }
    .flag-circle, .flag-circle-video { width: 40px; height: 40px; }
    .rate-table tbody td { font-size: 0.8rem; padding: 6px 2px; }
    .price-cell { font-size: 0.8rem; }
    .hero-logo { height: 200px; }
}
