/* ========================================================================== */
/* Credit Cards Category Detail Page Styles                                   */
/* ========================================================================== */

/* ---------- Hero Section ---------- */
.cc-category-hero {
    margin-top: 2rem;
    text-align: center;
}

.cc-category-icon {
    margin: 0 auto 1.5rem;
    width: 80px;
    height: 80px;
    font-size: 2rem;
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cc-category-hero h1 {
    color: var(--text-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cc-category-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

@media (max-width: 768px) {
    .cc-category-hero h1 {
        font-size: 2rem;
    }
}

/* ---------- Card List Container ---------- */
.cc-card-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ---------- Individual Credit Card ---------- */
.cc-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: grid;
    grid-template-columns: 1fr 1.2fr auto;
    gap: 2rem;
    align-items: center;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cc-detail-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

/* Left Section: Name & Features */
.cc-detail-info {
    flex: 1;
    min-width: 250px;
}

.cc-detail-info h3 {
    margin-bottom: 0.6rem;
    color: var(--text-heading);
    font-size: 1.35rem;
}

.cc-network-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cc-features {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.cc-features i {
    color: #10b981;
    margin-right: 0.5rem;
}

/* Middle Section: Stats (Fees, Rewards) */
.cc-detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    flex: 1;
    min-width: 250px;
}

.cc-stat-box {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cc-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.cc-stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-heading);
}

.cc-stat-value.primary-highlight {
    color: #10b981;
}

/* Right Section: Call to action */
.cc-detail-cta {
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
}

.cc-detail-cta .btn {
    padding: 0.85rem 2.5rem;
    font-weight: 700;
    border-radius: var(--radius-md);
}

@media (max-width: 768px) {
    .cc-detail-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .cc-detail-cta {
        width: 100%;
    }
    .cc-detail-cta .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .cc-detail-stats {
        gap: 1.5rem;
    }
}

/* ---------- Dark Mode Overrides ---------- */
body.dark-mode .cc-network-badge {
    background: rgba(96, 165, 250, 0.15);
    color: #93c5fd;
}

body.dark-mode .cc-category-icon {
    background: rgba(245, 158, 11, 0.1);
}
