/* ========================================
   QuizMasterMind - Clean UI Polish (Restored)
   Adds gradients, shadows, and refined typography
   ======================================== */

/* Features Page Gradients */
.bg-gradient-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a4cbd 100%) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #198754 0%, #157347 100%) !important;
}

.bg-gradient-info {
    background: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%) !important;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #ffc107 0%, #d39e00 100%) !important;
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%) !important;
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%) !important;
}

/* Feature Icons */
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Card Improvements */
.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Text Gradients */
.text-gradient {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Section Polish */
.hero-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, rgba(13, 110, 253, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
}

[data-theme="dark"] .hero-section {
    background: linear-gradient(180deg, rgba(13, 110, 253, 0.1) 0%, rgba(13, 17, 23, 0) 100%);
}

/* Pricing Page Polish */
.pricing-card {
    border: 1px solid var(--border-color);
}

.pricing-card.popular {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.1);
}

/* Footer Polish */
.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    transition: all 0.2s ease;
}

.footer-social-link:hover {
    background: var(--primary-color);
    color: #fff !important;
    transform: translateY(-3px);
}

/* Translucent White for Blue Backgrounds */
.bg-white-glass {
    background-color: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bg-white-glass:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

/* ========================================
   Semantic Backgrounds for Dual Mode
   Replaces bg-light/bg-white for consistency
   ======================================== */

.bg-surface-alt {
    background-color: #F8F9FA !important;
    /* Bootstrap gray-100 */
    color: #212529 !important;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .bg-surface-alt,
.dark-mode .bg-surface-alt {
    background-color: #1F2937 !important;
    /* Slate-800 */
    color: #F9FAFB !important;
    /* Slate-50 */
    border-color: #374151 !important;
}

/* Explicitly force white text on all children in dark mode */
[data-theme="dark"] .bg-surface-alt h1,
[data-theme="dark"] .bg-surface-alt h2,
[data-theme="dark"] .bg-surface-alt h3,
[data-theme="dark"] .bg-surface-alt h4,
[data-theme="dark"] .bg-surface-alt h5,
[data-theme="dark"] .bg-surface-alt h6,
[data-theme="dark"] .bg-surface-alt p,
[data-theme="dark"] .bg-surface-alt li,
[data-theme="dark"] .bg-surface-alt span,
[data-theme="dark"] .bg-surface-alt div,
.dark-mode .bg-surface-alt h1,
.dark-mode .bg-surface-alt h2,
.dark-mode .bg-surface-alt h3,
.dark-mode .bg-surface-alt h4,
.dark-mode .bg-surface-alt h5,
.dark-mode .bg-surface-alt h6,
.dark-mode .bg-surface-alt p,
.dark-mode .bg-surface-alt li,
.dark-mode .bg-surface-alt span,
.dark-mode .bg-surface-alt div {
    color: #F9FAFB !important;
}

/* Ensure icons inside surface-alt contrast correctly */
[data-theme="dark"] .bg-surface-alt i,
.dark-mode .bg-surface-alt i {
    color: #60A5FA !important;
    /* Lighter blue for icons */
}

/* Fix for Table Headers */
.table-header-alt {
    background-color: #E9ECEF !important;
    color: #212529 !important;
}

[data-theme="dark"] .table-header-alt {
    background-color: #374151 !important;
    color: #F9FAFB !important;
}

/* Force table header children to white in dark mode */
[data-theme="dark"] .table-header-alt th,
[data-theme="dark"] .table-header-alt td {
    color: #F9FAFB !important;
}