/* ==========================================================================
   SM Kur WP — Döviz Tablosu Stilleri
   ========================================================================== */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ---- Container ---- */
.smkur-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 680px;
    margin: 0 auto;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* ---- Header ---- */
.smkur-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.smkur-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #00c853, #00e676);
    color: #fff;
    flex-shrink: 0;
}

.smkur-header-icon svg {
    width: 20px;
    height: 20px;
}

.smkur-title {
    margin: 0;
    padding: 0;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* ---- Table ---- */
.smkur-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.smkur-table thead tr {
    background: rgba(255, 255, 255, 0.03);
}

.smkur-table th {
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.smkur-th-rate {
    text-align: right !important;
}

/* ---- Rows ---- */
.smkur-row {
    transition: background-color 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.smkur-row:last-child {
    border-bottom: none;
}

.smkur-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* ---- Cells ---- */
.smkur-cell-flag {
    padding: 10px 16px;
    width: 100px;
}

.smkur-flag-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.smkur-flag {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.smkur-symbol {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.smkur-cell-name {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.smkur-cell-rate {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-align: right;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.3px;
    transition: background-color 0.6s ease, color 0.3s ease;
}

/* ---- Kur Değişim Animasyonları ---- */
@keyframes flash-green {
    0% {
        background-color: rgba(0, 200, 83, 0.35);
        color: #69f0ae;
    }

    100% {
        background-color: transparent;
        color: #ffffff;
    }
}

@keyframes flash-red {
    0% {
        background-color: rgba(255, 82, 82, 0.35);
        color: #ff8a80;
    }

    100% {
        background-color: transparent;
        color: #ffffff;
    }
}

.smkur-cell-rate.kur-up {
    animation: flash-green 1.2s ease-out forwards;
}

.smkur-cell-rate.kur-down {
    animation: flash-red 1.2s ease-out forwards;
}

/* ---- Footer ---- */
.smkur-footer {
    padding: 14px 24px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.smkur-disclaimer {
    margin: 0 0 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
}

.smkur-update-time {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .smkur-container {
        border-radius: 12px;
        margin: 0 8px;
    }

    .smkur-header {
        padding: 16px;
    }

    .smkur-table th,
    .smkur-cell-flag,
    .smkur-cell-name,
    .smkur-cell-rate {
        padding: 8px 10px;
    }

    .smkur-flag {
        width: 26px;
        height: 26px;
    }

    .smkur-symbol {
        font-size: 11px;
    }

    .smkur-cell-name {
        font-size: 11px;
    }

    .smkur-cell-rate {
        font-size: 12px;
    }

    .smkur-th-rate,
    .smkur-th-name,
    .smkur-th-flag {
        font-size: 10px;
    }
}