/* 
 * Urdu Coverage Prize Bonds - Bilingual Dark Gold Design
 */

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

/* Main Wrapper */
.upb-dark-wrapper {
    background-color: #0b1120; /* Deep navy/black background */
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin: 40px 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.5;
}

/* Bilingual Header Section */
.upb-header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.upb-header-left {
    flex: 1;
}

.upb-header-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.upb-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #d4af37;
    margin-bottom: 20px;
}

.upb-live-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #d4af37;
    border-radius: 50%;
    box-shadow: 0 0 8px #d4af37;
}

.upb-english-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.upb-english-title span {
    color: #d4af37; /* Gold accent */
}

.upb-urdu-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #d4af37;
    margin: 0 0 20px 0;
    direction: rtl;
    font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif;
}

.upb-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* Countdown Widget */
.upb-countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #d4af37;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
}

.upb-countdown-grid {
    display: flex;
    gap: 8px;
    align-items: center;
}

.upb-countdown-item {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 8px;
    padding: 10px 15px;
    text-align: center;
    min-width: 65px;
}

.upb-countdown-val {
    font-size: 1.6rem;
    font-weight: 600;
    color: #ffffff;
    display: block;
    line-height: 1.1;
}

.upb-countdown-lbl {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #64748b;
    margin-top: 4px;
    display: block;
}

.upb-countdown-colon {
    color: #64748b;
    font-weight: bold;
    margin: 0 2px;
}

.upb-next-draw-details {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #94a3b8;
    text-align: right;
    direction: rtl;
    line-height: 1.6;
}

/* Main Checker Module */
.upb-checker-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.upb-checker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.upb-checker-title-en {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.upb-checker-title-ur {
    font-size: 1.2rem;
    font-weight: bold;
    color: #d4af37;
    direction: rtl;
    font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif;
}

/* Tabs */
.upb-tabs-dark {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    direction: rtl;
}

.upb-tab-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    padding: 10px 25px;
    border-radius: 6px;
    font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.upb-tab-btn.active {
    border-color: #d4af37;
    color: #d4af37;
    background: rgba(212, 175, 55, 0.05);
}

/* Denomination Grid 4x2 */
.upb-denom-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.upb-denom-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upb-denom-box:hover {
    background: rgba(255,255,255,0.05);
}

.upb-denom-box.active {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.05);
}

.upb-denom-box-en {
    display: block;
    color: #e2e8f0;
    font-weight: 500;
    font-size: 1.05rem;
    margin-bottom: 5px;
}

.upb-denom-box.active .upb-denom-box-en {
    color: #d4af37;
}

.upb-denom-box-ur {
    display: block;
    color: #64748b;
    font-size: 0.9rem;
    direction: rtl;
    font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif;
}

/* Input Area */
.upb-input-row {
    display: flex;
    gap: 15px;
    direction: rtl;
}

.upb-dark-input {
    flex: 1;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255,255,255,0.1);
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif;
    direction: rtl;
    outline: none;
    transition: border-color 0.2s;
}

.upb-dark-input:focus {
    border-color: #d4af37;
}

.upb-gold-btn {
    background: #d4af37;
    color: #0b1120;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif;
    transition: opacity 0.2s;
}

.upb-gold-btn:hover {
    opacity: 0.9;
}

/* Results Display */
.upb-dark-results {
    margin-top: 25px;
    padding: 20px;
    border-radius: 8px;
    display: none;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
}

.upb-dark-results.success {
    display: block;
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.upb-dark-results.error {
    display: block;
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

/* Feature Banner */
.upb-feature-banner {
    background: #0f172a;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    direction: rtl;
}

.upb-feature-content h3 {
    color: #d4af37;
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif;
}

.upb-feature-content p {
    color: #94a3b8;
    margin: 0;
    font-size: 0.95rem;
    font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif;
}

.upb-feature-btn {
    background: transparent;
    border: 1px solid #d4af37;
    color: #d4af37;
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif;
    transition: all 0.2s;
}

.upb-feature-btn:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* Two Columns (Results & Schedule) */
.upb-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.upb-list-section h3 {
    display: flex;
    justify-content: space-between;
    color: #ffffff;
    font-size: 1.1rem;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.upb-list-section h3 .ur {
    font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif;
    color: #d4af37;
}

.upb-list-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upb-list-item-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.upb-list-badge {
    border: 1px solid #d4af37;
    color: #d4af37;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.upb-list-badge.green {
    border-color: #10b981;
    color: #10b981;
}

.upb-list-details {
    color: #e2e8f0;
    font-size: 0.95rem;
}

.upb-list-details span {
    display: block;
    color: #64748b;
    font-size: 0.8rem;
    margin-top: 4px;
}

.upb-list-right {
    text-align: right;
    direction: rtl;
}

.upb-list-right-val {
    color: #d4af37;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
}

.upb-list-right-ur {
    color: #64748b;
    font-size: 0.85rem;
    font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif;
}

/* Responsive */
@media (max-width: 900px) {
    .upb-header-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    .upb-header-right {
        align-items: center;
        text-align: center;
    }
    .upb-next-draw-details {
        text-align: center;
    }
    .upb-denom-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .upb-two-columns {
        grid-template-columns: 1fr;
    }
    .upb-input-row {
        flex-direction: column;
    }
}
