/**
 * Path: /home/main/public_html/osmanlicacevirmen.com/assets/css/credit-gate.css
 * Description: Ortak kredi kapısı bileşeni — kredi yetersiz, plan yetersiz, misafir
 *              senaryoları için tek tutarlı UI. Tüm çeviri sayfalarında kullanılır.
 * Version: 1.0.0
 */

/* ========================================
   CREDIT STATUS BAR
   ======================================== */
.credit-status-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    background: var(--glass-white);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.credit-status-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.credit-status-info {
    flex: 1;
    min-width: 0;
}

.credit-status-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
}

.credit-status-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
}

.credit-status-value .credit-highlight {
    color: var(--gold-primary);
}

.credit-progress {
    flex: 1;
    min-width: 120px;
}

.credit-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.credit-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
    border-radius: 3px;
    transition: width 0.8s ease;
}

.credit-progress-text {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 3px;
    text-align: right;
}

/* ========================================
   CREDIT GATE OVERLAY (Insufficiency)
   ======================================== */
.credit-gate {
    display: none;
    position: relative;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.05), var(--glass-white));
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
    overflow: hidden;
}

.credit-gate.active {
    display: block;
}

.credit-gate::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(201, 162, 39, 0.08), transparent 50%);
    pointer-events: none;
}

.credit-gate-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.15), rgba(201, 162, 39, 0.05));
    border: 1px solid rgba(201, 162, 39, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--gold-primary);
    position: relative;
    z-index: 1;
}

.credit-gate-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.credit-gate-message {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 450px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
}

.credit-gate-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.credit-gate .btn-upgrade {
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    border: none;
    border-radius: var(--radius-full);
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.35);
}

.credit-gate .btn-upgrade:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(201, 162, 39, 0.5);
}

.credit-gate .btn-secondary-link {
    padding: 0.85rem 2rem;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.credit-gate .btn-secondary-link:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

/* ========================================
   PLAN BADGE (for credit status)
   ======================================== */
.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-badge.free {
    background: rgba(107, 114, 128, 0.2);
    color: #9CA3AF;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.plan-badge.member {
    background: rgba(59, 130, 246, 0.15);
    color: #60A5FA;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.plan-badge.pro {
    background: rgba(201, 162, 39, 0.15);
    color: var(--gold-primary);
    border: 1px solid rgba(201, 162, 39, 0.3);
}

.plan-badge.premium {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(201, 162, 39, 0.15));
    color: #C084FC;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* ========================================
   COST INDICATOR (per-action cost display)
   ======================================== */
.cost-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.cost-indicator i {
    color: #F59E0B;
}

.cost-indicator strong {
    color: var(--gold-primary);
    font-weight: 700;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .credit-status-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .credit-status-icon {
        align-self: center;
    }

    .credit-gate {
        padding: 2rem 1.5rem;
    }

    .credit-gate-actions {
        flex-direction: column;
    }

    .credit-gate .btn-upgrade,
    .credit-gate .btn-secondary-link {
        width: 100%;
        justify-content: center;
    }
}