/* ===================================
   FINANCIAL WIDGETS CSS
   - Döviz Kurları Kartı
   - Altın Fiyatları Kartı
   - Liste Formatı (Görseldeki Gibi)
=================================== */

/* ===================================
   1. GENEL WRAPPER
=================================== */
.financial-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* ===================================
   2. KART CONTAINER
=================================== */
.financial-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.financial-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* ===================================
   3. KART HEADER
=================================== */
.borsa-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.financial-card-currency .borsa-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.financial-card-gold .borsa-card-header {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
}

.borsa-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.borsa-card-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

/* ===================================
   4. LİSTE - HER ITEM AYRI SATIR
=================================== */
.financial-list {
    padding: 0;
}

.financial-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.financial-item:last-child {
    border-bottom: none;
}

.financial-item:hover {
    background: #f8fafc;
}

/* Sol: Icon + İsim */
.financial-item .item-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.currency-flag {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gold-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.financial-item .item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.financial-item .item-name {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.2;
}

.financial-item .item-code {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
}

/* Sağ: Fiyatlar YAN YANA (Masaüstü) */
.financial-item .item-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 25px;
    margin-left: auto;
}

.financial-item .item-price {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.financial-item .item-sell {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

.financial-item .item-change {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

.financial-item .item-change.positive {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.financial-item .item-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Flag Icons */
.flag-usd {
    background: linear-gradient(180deg, #B22234 0%, #B22234 7.7%, white 7.7%, white 15.4%, #B22234 15.4%, #B22234 23.1%, white 23.1%, white 30.8%, #B22234 30.8%, #B22234 38.5%, white 38.5%, white 46.2%, #B22234 46.2%, #B22234 53.9%, white 53.9%, white 61.6%, #B22234 61.6%, #B22234 69.3%, white 69.3%, white 77%, #B22234 77%, #B22234 84.7%, white 84.7%, white 92.4%, #B22234 92.4%);
    position: relative;
}

.flag-usd::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 53.8%;
    background: #3C3B6E;
}

.flag-eur {
    background: #003399;
    position: relative;
}

.flag-eur::after {
    content: '★';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFCC00;
    font-size: 20px;
}

.flag-gbp {
    background: #012169;
    position: relative;
}

.flag-gbp::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: white;
    transform: translateX(-50%);
}

.flag-gbp::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background: white;
    transform: translateY(-50%);
}

.flag-chf {
    background: #FF0000;
    position: relative;
}

.flag-chf::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 60%;
    background: white;
    transform: translate(-50%, -50%);
}

.flag-chf::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 6px;
    background: white;
    transform: translate(-50%, -50%);
}

/* ===================================
   5. MOBİL RESPONSIVE (600px ve altı)
=================================== */
@media screen and (max-width: 600px) {
    
    /* WRAPPER: Tek sütun */
    .financial-cards-wrapper {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin-bottom: 20px !important;
    }
    
    /* CARD: Kompakt */
    .financial-card {
        border-radius: 12px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    }
    
    /* HEADER: Kompakt */
    .borsa-card-header {
        padding: 10px 12px !important;
    }
    
    .borsa-card-title {
        font-size: 13px !important;
    }
    
    .borsa-card-badge {
        font-size: 10px !important;
        padding: 3px 8px !important;
    }
    
    /* ITEM: Kompakt padding */
    .financial-item {
        padding: 12px 14px !important;
    }
    
    /* Mobil: Fiyatlar tekrar dikey */
    .financial-item .item-right {
        flex-direction: column !important;
        align-items: flex-end !important;
        gap: 4px !important;
    }
    
    /* Icon'ları küçült */
    .currency-flag {
        width: 32px !important;
        height: 32px !important;
    }
    
    .gold-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 16px !important;
    }
    
    /* İsim */
    .financial-item .item-name {
        font-size: 13px !important;
    }
    
    .financial-item .item-code {
        font-size: 10px !important;
    }
    
    /* Fiyatlar */
    .financial-item .item-price {
        font-size: 15px !important;
    }
    
    .financial-item .item-sell {
        font-size: 12px !important;
    }
    
    .financial-item .item-change {
        font-size: 11px !important;
        padding: 3px 6px !important;
    }
}

/* ===================================
   6. ÇOK KÜÇÜK EKRANLAR (400px altı)
=================================== */
@media screen and (max-width: 400px) {
    
    .borsa-card-header {
        padding: 8px 10px !important;
    }
    
    .borsa-card-title {
        font-size: 12px !important;
    }
    
    .financial-item {
        padding: 10px 12px !important;
    }
    
    .currency-flag,
    .gold-icon {
        width: 28px !important;
        height: 28px !important;
    }
    
    .gold-icon {
        font-size: 14px !important;
    }
    
    .financial-item .item-name {
        font-size: 12px !important;
    }
    
    .financial-item .item-code {
        font-size: 9px !important;
    }
    
    .financial-item .item-price {
        font-size: 14px !important;
    }
    
    .financial-item .item-sell {
        font-size: 11px !important;
    }
    
    .financial-item .item-change {
        font-size: 10px !important;
    }
}