/* ===========================
   Anlık Finans — Modern 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.7);
   backdrop-filter: blur(12px);
   padding: 2.25rem;
   border-radius: 24px;
   box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.55);
   width: 1400px;
   max-width: 95vw;
   border: 1px solid rgba(255, 255, 255, 0.08);
}

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: 22px;
   align-items: stretch;
}

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

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

/* Altın Hero */
.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.5rem;
   font-weight: 800;
   color: #f59e0b;
   text-shadow: 0 0 28px rgba(245, 158, 11, 0.45);
   line-height: 1.1;
}

/* Döviz Satırları */
.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;
}

/* Input + dropdown side by side — grid locks widths absolutely */
.converter-input-row {
   display: grid;
   grid-template-columns: 1fr 80px;
   gap: 8px;
   align-items: center;
}

/* Input wrapper for currency symbol overlay */
.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 input */
#amount {
   width: 100%;
   height: 46px;
   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);
}


/* Sonuç kutusu */
.converter-result {
   width: 100%;
   height: 46px;
   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);
   backdrop-filter: blur(16px);
   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;
   font-weight: 700;
   line-height: 1;
   flex-shrink: 0;
}

.pill:hover .pill-sym {
   color: rgba(255, 255, 255, 0.6);
}

.pill.active .pill-sym {
   color: rgba(255, 255, 255, 0.75);
}

.pill:hover {
   background: rgba(30, 41, 59, 0.7);
   color: #cbd5e1;
   border-color: rgba(255, 255, 255, 0.12);
}

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

.pill.gold-pill.active {
   background: rgba(245, 158, 11, 0.14);
   color: #fbbf24;
   border-color: rgba(245, 158, 11, 0.3);
}

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

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

   .gold-value {
      font-size: 2rem;
   }

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

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