/* ===========================
   Ceppara — Güncellenmiş Modern Finans UI
   =========================== */

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

html {
   background: #0f172a;
}

body {
   font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
   background: radial-gradient(circle at top, #1e293b 0%, #0f172a 100%) fixed;
   background-size: cover;
   color: #f8fafc;
   min-height: 100vh;
}

/* ---------- Main Wrapper ---------- */
.main-content {
   min-height: 100vh;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: flex-start;
   padding: 56px 0 48px;
}

/* ---------- Site Başlığı ---------- */
.site-title {
   font-family: 'Space Grotesk', sans-serif;
   font-size: 3rem;
   font-weight: 700;
   color: #ffffff;
   letter-spacing: -0.5px;
   margin-bottom: 32px;
   text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
   padding: 28px 0 36px;
   font-size: 0.7rem;
   color: #334155;
   letter-spacing: 0.5px;
   text-align: center;
   width: 100%;
}

/* ---------- Ana Kart ---------- */
.card {
   background: rgba(30, 41, 59, 0.92);
   padding: 1.6rem;
   border-radius: 20px;
   width: 100%;
   max-width: 1120px;
   margin: 0 auto 80px;
   border: 1px solid rgba(255, 255, 255, 0.07);
}

/* İlk kart (fiyatlar + converter) ile graph kartı arasına reklam boşluğu */
.card:not(.graph-outer-card) {
   margin-bottom: 62px;
}

h1 {
   font-size: 0.8rem;
   font-weight: 600;
   letter-spacing: 2.5px;
   color: #64748b;
   text-transform: uppercase;
   text-align: center;
   margin-bottom: 1.75rem;
}

/* ---------- 2-Bubble Grid ---------- */
.bubble-container {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 16px;
   align-items: stretch;
}

.big-card {
   background: rgba(15, 23, 42, 0.85);
   padding: 18px;
   border-radius: 20px;
   border: 1px solid rgba(255, 255, 255, 0.05);
   box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
   min-height: 320px;
}

/* =========================================
   SOL KART — FİYATLAR
   ========================================= */

.gold-hero {
   background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(217, 119, 6, 0.06) 100%);
   border: 1px solid rgba(245, 158, 11, 0.2);
   border-radius: 16px;
   padding: 22px 20px;
   text-align: center;
   margin-bottom: 16px;
   position: relative;
   overflow: hidden;
}

.gold-hero::before {
   content: '';
   position: absolute;
   inset: 0;
   border-radius: 16px;
   background: radial-gradient(ellipse at 50% 0%, rgba(245, 158, 11, 0.10) 0%, transparent 70%);
   pointer-events: none;
}

.gold-label {
   display: block;
   font-size: 0.7rem;
   letter-spacing: 2px;
   text-transform: uppercase;
   color: #d97706;
   margin-bottom: 6px;
   font-weight: 600;
}

.gold-value {
   display: block;
   font-family: 'Monaco', 'Consolas', monospace;
   font-size: 2.1rem;
   font-weight: 800;
   color: #f59e0b;
   text-shadow: 0 0 28px rgba(245, 158, 11, 0.45);
   line-height: 1.1;
}

.currency-rows {
   display: flex;
   flex-direction: column;
   gap: 8px;
}

.data-row {
   background: rgba(15, 23, 42, 0.45);
   padding: 13px 18px;
   border-radius: 14px;
   display: flex;
   justify-content: space-between;
   align-items: center;
   transition: background 0.2s;
}

.data-row:hover {
   background: rgba(15, 23, 42, 0.65);
}

.label {
   color: #94a3b8;
   font-size: 0.85rem;
   font-weight: 500;
}

.value {
   font-family: 'Monaco', 'Consolas', monospace;
   font-size: 1.15rem;
   font-weight: 700;
   color: #fbbf24;
}

/* =========================================
   SAĞ KART — CONVERTER
   ========================================= */

.big-card.converter {
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 20px;
}

.converter-row {
   display: flex;
   align-items: flex-start;
   gap: 12px;
   width: 100%;
}

.converter-col {
   flex: 1 1 0;
   min-width: 0;
   display: flex;
   flex-direction: column;
   gap: 8px;
}

.equals {
   font-family: 'Monaco', 'Consolas', monospace;
   font-size: 1.4rem;
   font-weight: 700;
   color: #475569;
   padding-top: 12px;
   flex-shrink: 0;
}

.converter-input-row {
   display: grid;
   grid-template-columns: 1fr 80px;
   gap: 8px;
   align-items: center;
}

.input-wrapper {
   position: relative;
   width: 100%;
}

.input-currency-symbol {
   position: absolute;
   right: 11px;
   top: 50%;
   transform: translateY(-50%);
   color: #475569;
   font-size: 0.85rem;
   font-family: 'Monaco', 'Consolas', monospace;
   font-weight: 700;
   pointer-events: none;
   line-height: 1;
}

#amount {
   width: 100%;
   height: 42px;
   padding: 0 32px 0 14px;
   border-radius: 10px;
   border: 1px solid rgba(255, 255, 255, 0.08);
   background: rgba(15, 23, 42, 0.6);
   color: #f8fafc;
   font-size: 1.05rem;
   font-family: 'Monaco', 'Consolas', monospace;
   font-weight: 600;
   outline: none;
   transition: border-color 0.2s, box-shadow 0.2s;
   box-sizing: border-box;
}

#amount::placeholder {
   color: #475569;
   font-family: 'Inter', sans-serif;
   font-weight: 400;
   font-size: 0.9rem;
}

#amount:focus {
   border-color: rgba(59, 130, 246, 0.5);
   box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.converter-result {
   width: 100%;
   height: 42px;
   font-size: 1rem;
   padding: 0 14px;
   border-radius: 10px;
   border: 1px solid rgba(52, 211, 153, 0.15);
   background: rgba(15, 23, 42, 0.6);
   color: #34d399;
   font-size: 1.05rem;
   font-family: 'Monaco', 'Consolas', monospace;
   font-weight: 700;
   display: flex;
   align-items: center;
   overflow: hidden;
   white-space: nowrap;
   box-sizing: border-box;
}

/* Custom Select */
.custom-select {
   position: relative;
   width: 80px;
   user-select: none;
   flex-shrink: 0;
}

.custom-select-trigger {
   width: 100%;
   height: 46px;
   padding: 0 10px;
   border-radius: 10px;
   border: 1px solid rgba(255, 255, 255, 0.08);
   background: rgba(15, 23, 42, 0.6);
   color: #cbd5e1;
   font-size: 0.78rem;
   font-weight: 600;
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 4px;
   transition: border-color 0.2s, background 0.2s;
   box-sizing: border-box;
}

.custom-select-trigger:hover {
   border-color: rgba(255, 255, 255, 0.16);
   background: rgba(15, 23, 42, 0.85);
}

.custom-select.open .custom-select-trigger {
   border-color: rgba(59, 130, 246, 0.45);
   border-radius: 10px 10px 0 0;
   background: rgba(15, 23, 42, 0.95);
}

.chevron {
   width: 9px;
   height: 6px;
   color: #475569;
   flex-shrink: 0;
   transition: transform 0.2s;
}

.custom-select.open .chevron {
   transform: rotate(180deg);
   color: #60a5fa;
}

.custom-select-options {
   display: none;
   position: absolute;
   top: calc(100% - 1px);
   left: 0;
   right: 0;
   background: rgba(10, 18, 38, 0.97);
   border: 1px solid rgba(59, 130, 246, 0.35);
   border-top: none;
   border-radius: 0 0 10px 10px;
   overflow-y: auto;
   max-height: 220px;
   z-index: 200;
   box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.custom-select.open .custom-select-options {
   display: block;
}

.custom-option {
   padding: 9px 10px;
   font-size: 0.77rem;
   font-weight: 600;
   color: #94a3b8;
   cursor: pointer;
   transition: background 0.12s, color 0.12s;
   letter-spacing: 0.3px;
}

.custom-option:hover {
   background: rgba(59, 130, 246, 0.12);
   color: #e2e8f0;
}

.custom-option.selected {
   color: #60a5fa;
   background: rgba(59, 130, 246, 0.08);
}

.custom-option.gold-opt {
   color: #d97706;
}

.custom-option.gold-opt:hover {
   background: rgba(245, 158, 11, 0.1);
   color: #fbbf24;
}

.custom-option.gold-opt.selected {
   color: #fbbf24;
   background: rgba(245, 158, 11, 0.08);
}

/* Quick-action pills */
.quick-actions {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 5px;
}

.pill {
   padding: 10px 8px;
   border-radius: 8px;
   border: 1px solid rgba(255, 255, 255, 0.06);
   background: rgba(15, 23, 42, 0.4);
   color: #94a3b8;
   font-size: 0.75rem;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.15s;
   letter-spacing: 0.5px;
   display: flex;
   align-items: center;
   justify-content: space-between;
}

.pill-sym {
   color: rgba(255, 255, 255, 0.35);
   font-size: 0.72rem;
}

.pill:hover {
   background: rgba(15, 23, 42, 0.65);
   border-color: rgba(255, 255, 255, 0.1);
}

.pill.active {
   background: rgba(59, 130, 246, 0.16);
   border-color: rgba(59, 130, 246, 0.35);
   color: #60a5fa;
}

.pill.active .pill-sym {
   color: rgba(96, 165, 250, 0.6);
}

.pill.gold-pill {
   background: rgba(245, 158, 11, 0.08);
   border-color: rgba(245, 158, 11, 0.15);
   color: #d97706;
}

.pill.gold-pill:hover {
   background: rgba(245, 158, 11, 0.14);
   border-color: rgba(245, 158, 11, 0.25);
}

.pill.gold-pill.active {
   background: rgba(245, 158, 11, 0.18);
   border-color: rgba(245, 158, 11, 0.35);
   color: #f59e0b;
}

.pill.gold-pill.active .pill-sym {
   color: rgba(251, 191, 36, 0.6);
}

/* ========== Update Time ========== */
.update-time {
   font-size: 0.7rem;
   color: #475569;
   text-align: center;
   margin-top: 1.5rem;
   letter-spacing: 0.5px;
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
   .bubble-container {
      grid-template-columns: 1fr;
   }

   .converter-row {
      flex-direction: column;
      align-items: stretch;
   }

   .equals {
      text-align: center;
      padding-top: 0;
   }
}

/* Hamburger button */
.menu-btn {
   position: fixed;
   top: 20px;
   left: 20px;
   width: 30px;
   height: 22px;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
   cursor: pointer;
   z-index: 1001;
}

.menu-btn span {
   display: block;
   height: 3px;
   width: 100%;
   background: white;
   border-radius: 2px;
}

/* Side menu */
.side-menu {
   position: fixed;
   top: 0;
   left: -250px;
   width: 250px;
   height: 100%;
   background: #0f172a;
   padding-top: 80px;
   display: flex;
   flex-direction: column;
   gap: 20px;
   transition: 0.3s;
   z-index: 1002;
}

.side-menu a {
   color: white;
   text-decoration: none;
   font-size: 18px;
   padding: 10px 20px;
}

.side-menu a:hover {
   background: rgba(255,255,255,0.1);
}

.side-menu.open {
   left: 0;
}

/* Overlay */
.overlay {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0,0,0,0.5);
   opacity: 0;
   visibility: hidden;
   transition: 0.3s;
   z-index: 1000;
}

.overlay.show {
   opacity: 1;
   visibility: visible;
}

/* ---------- SEO Text & Info Section ---------- */
.seo-text, .info-section {
    max-width: 1400px;
    width: 95vw;
    margin: 32px auto 64px;
    padding: 32px 28px;
    background: rgba(30, 41, 59, 0.92);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    font-size: 0.95rem;
}

.seo-text h2, .info-section h1, .info-section h2, .info-section h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #f8fafc;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.seo-text p, .info-section p, .info-section li {
    margin-bottom: 16px;
    color: #cbd5e1;
}

.seo-text a, .info-section a {
    color: #60a5fa;
    text-decoration: underline;
    transition: color 0.2s;
}

.seo-text a:hover, .info-section a:hover {
    color: #3b82f6;
}

@media (max-width: 830px) {
    .seo-text, .info-section {
        padding: 24px 16px;
    }
}

/* =========================================
   GRAPH SECTION
   ========================================= */

.graph-outer-card {
   margin-top: 0;
}

/* Section title */
.graph-section-title {
   display: flex;
   align-items: center;
   gap: 10px;
   font-family: 'Space Grotesk', sans-serif;
   font-size: 0.72rem;
   font-weight: 700;
   letter-spacing: 2.5px;
   text-transform: uppercase;
   color: #475569;
   margin-bottom: 1.75rem;
}

.graph-section-dot {
   width: 6px;
   height: 6px;
   border-radius: 50%;
   background: #d97706;
   flex-shrink: 0;
}

.graph-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 24px;
   align-items: start;
}

@media (max-width: 900px) {
   .graph-grid {
      grid-template-columns: 1fr;
   }
}

/* Graph card header */
.graph-card-header {
   display: flex;
   align-items: flex-start;
   justify-content: space-between;
   gap: 12px;
   margin-bottom: 20px;
   flex-wrap: wrap;
   flex-shrink:0;
}

.graph-header-left {
   display: flex;
   flex-direction: column;
   gap: 4px;
}

.graph-header-right {
   display: flex;
   flex-direction: column;
   align-items: flex-end;
   gap: 10px;
}

.graph-label {
   font-size: 0.68rem;
   font-weight: 700;
   letter-spacing: 2px;
   text-transform: uppercase;
   color: #d97706;
}

.graph-price {
   font-family: 'Monaco', 'Consolas', monospace;
   font-size: 1.65rem;
   font-weight: 800;
   color: #f59e0b;
   line-height: 1.1;
}

/* Change badge */
.graph-change-badge {
   font-family: 'Monaco', 'Consolas', monospace;
   font-size: 0.75rem;
   font-weight: 700;
   padding: 4px 11px;
   border-radius: 100px;
   letter-spacing: 0.3px;
}

.graph-change-badge.up {
   background: rgba(16, 185, 129, 0.1);
   border: 1px solid rgba(16, 185, 129, 0.22);
   color: #34d399;
}

.graph-change-badge.down {
   background: rgba(239, 68, 68, 0.09);
   border: 1px solid rgba(239, 68, 68, 0.18);
   color: #f87171;
}

.graph-change-badge.neutral {
   background: rgba(100, 116, 139, 0.12);
   border: 1px solid rgba(100, 116, 139, 0.18);
   color: #475569;
}

/* Period buttons — Converter pill tarzı */
.graph-period-btns {
   display: flex;
   gap: 6px;
   background: rgba(15, 23, 42, 0.65);
   border: 1px solid rgba(255, 255, 255, 0.08);
   border-radius: 12px;
   padding: 4px;
   box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.3);
}

.period-btn {
   padding: 9px 18px;
   border-radius: 8px;
   font-size: 0.73rem;
   font-weight: 600;
   letter-spacing: 0.4px;
   background: transparent;
   color: #94a3b8;
   transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
   min-width: 46px;
   text-align: center;
   border: 1px solid transparent;
}

.period-btn:hover {
   background: rgba(255, 255, 255, 0.07);
   color: #e2e8f0;
}

.period-btn.active {
   background: rgba(245, 158, 11, 0.16);
   color: #f59e0b;
   border-color: rgba(245, 158, 11, 0.35);
   box-shadow: 0 1px 4px rgba(245, 158, 11, 0.2);
}

/* Currency Selector (FX Graph) */
.currency-selector {
   display: flex;
   gap: 6px;
   margin-bottom: 16px;
   background: rgba(15, 23, 42, 0.65);
   border: 1px solid rgba(255, 255, 255, 0.08);
   border-radius: 12px;
   padding: 4px;
}

.currency-btn {
   flex: 1;
   padding: 9px 14px;
   border-radius: 8px;
   font-size: 0.73rem;
   font-weight: 600;
   letter-spacing: 0.4px;
   background: transparent;
   color: #94a3b8;
   transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
   text-align: center;
   border: 1px solid transparent;
   cursor: pointer;
}

.currency-btn:hover {
   background: rgba(255, 255, 255, 0.07);
   color: #e2e8f0;
}

.currency-btn.active {
   background: rgba(59, 130, 246, 0.16);
   color: #60a5fa;
   border-color: rgba(59, 130, 246, 0.35);
   box-shadow: 0 1px 4px rgba(59, 130, 246, 0.2);
}

.fx-currency-selector select {
   background: rgba(15, 23, 42, 0.9);
   border: 1px solid rgba(255, 255, 255, 0.1);
   color: #f8fafc;
   padding: 8px 12px;
   border-radius: 8px;
   font-size: 0.85rem;
   font-weight: 600;
}

.fx-currency-selector .separator {
   color: #64748b;
   font-weight: 700;
   padding: 0 6px;
}

/* FX Currency Selector - Yeni stil (dropdown yerine) */
.fx-currency-selector {
   display: flex;
   align-items: center;
   gap: 12px;
   margin-bottom: 18px;
   background: rgba(15, 23, 42, 0.65);
   border: 1px solid rgba(255, 255, 255, 0.08);
   border-radius: 12px;
   padding: 8px 12px;
   flex-wrap: wrap;
}

.graph-canvas-wrap {
   flex: 1;                      /* Canvas kalan alanı doldursun */
   min-height: 260px;            /* Daha ferah grafik alanı */
   position: relative;
}

.graph-canvas-wrap canvas {
   width: 100% !important;
   height: 100% !important;
}

/* Empty cards */
.graph-empty-card {
   min-height: 280px;
   display: flex;
   align-items: center;
   justify-content: center;
}

.graph-empty-inner {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 10px;
   opacity: 0.2;
}

.graph-empty-icon {
   font-size: 2rem;
}

.graph-empty-label {
   font-size: 0.68rem;
   font-weight: 700;
   letter-spacing: 2.5px;
   text-transform: uppercase;
   color: #475569;
}


.converter-result {
   display: flex;
   align-items: center;
   gap: 6px;
   padding: 0 14px;
}

#resultSymbol {
   color: #475569;
   font-weight: 700;
   font-size: 1.05rem;
   margin-right: 4px;
}


/* CONVERTER - SAĞ TARAF SONUÇ KUTUSU (SOLDAKİ İLE AYNI TARZ) */
.converter-result {
   display: flex;
   align-items: center;
   justify-content: flex-end;
   gap: 6px;
   padding: 0 16px;
   border-radius: 10px;
   border: 1px solid rgba(52, 211, 153, 0.15);
   background: rgba(15, 23, 42, 0.6);
   height: 46px;
   font-family: 'Monaco', 'Consolas', monospace;
   font-size: 1.05rem;
   font-weight: 700;
   color: #34d399;
   overflow: hidden;
   white-space: nowrap;
}

.result-value {
   flex: 1;
   text-align: right;
   color: #34d399;
}

.result-symbol {
   color: #475569;
   font-weight: 700;
   font-size: 1.05rem;
   flex-shrink: 0;
   margin-left: 4px;
}

/* Soldaki input ile daha uyumlu olsun diye */
#amount {
   font-family: 'Monaco', 'Consolas', monospace;
   font-weight: 600;
   font-size: 1rem;
}

/* Baloncuklar arası boşluk (reklam için) */
.card:not(.graph-outer-card) {
   margin-bottom: 85px;
}

.graph-outer-card {
   margin-top: 0;
}

/* SEO Text - Daha güzel tasarım */
.seo-text {
   max-width: 1120px;
   width: 95vw;
   margin: 40px auto 60px;
   padding: 28px 24px;
   background: rgba(30, 41, 59, 0.92);
   border-radius: 24px;
   border: 1px solid rgba(255, 255, 255, 0.08);
   box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
   color: #e2e8f0;
   font-size: 0.94rem;
   line-height: 1.65;
}

.seo-text h2 {
   font-family: 'Space Grotesk', sans-serif;
   font-size: 1.25rem;
   color: #f8fafc;
   margin-bottom: 12px;
   letter-spacing: -0.4px;
}

.seo-text p {
   font-size: 0.92rem;
   color: #cbd5e1;
   margin-bottom:16px;
}


.big-card.graph-card {
   display: flex;
   flex-direction: column;
   min-height: 380px;            /* Kartlar aynı yükseklikte olsun */
}



.input-currency-symbol,
.result-symbol {
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    color: #64748b !important;     /* Daha koyu gri */
}

.card:not(.graph-outer-card) {
   margin-bottom: 80px;
}