/* Gap Index Page Styles */
.gap-index-page {
    padding: 30px 15px;
    max-width: 1100px;
    /* Widened for desktop */
    margin: 0 auto;
    color: #e0e0e0;
}

/* Light Mode Overrides - High Contrast */
body.light-theme .gap-index-page,
body.light-theme .gap-index-page p,
body.light-theme .gap-index-page li {
    color: #1a365d !important;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 2.2rem;
    color: var(--primary-color, #FFD700);
    margin-bottom: 15px;
    line-height: 1.3;
}

body.light-theme .page-title {
    color: #b8860b !important;
    /* Golden brown for light mode */
}

.last-content-update {
    background: #2a2a2a;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #ffd700;
    display: inline-block;
    border: 1px solid #444;
}

body.light-theme .last-content-update {
    background: #f1f3f5 !important;
    color: #495057 !important;
    border-color: #dee2e6 !important;
}

.intro-section {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #ccc;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

body.light-theme .intro-section {
    color: #1a365d !important;
}

.gap-engine-box {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #333;
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body.light-theme .gap-engine-box {
    background: #fff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
    font-size: 1.5rem;
}

body.light-theme .section-title {
    color: #1a202c;
}

/* Stats Layout */
.gap-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
}

.gap-card {
    background: #222;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

body.light-theme .gap-card {
    background: #f8fafc;
    border: 1px solid #edf2f7;
}

.gap-value-container {
    margin-bottom: 20px;
}

.gap-label {
    font-size: 1rem;
    color: #aaa;
    margin-bottom: 5px;
}

body.light-theme .gap-label {
    color: #718096 !important;
}

.gap-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color, #FFD700);
    line-height: 1;
}

body.light-theme .gap-value {
    color: #2b6cb0 !important;
    /* Professional blue for stats in light mode */
}

.gap-explanation {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 20px;
    text-align: right;
}

body.light-theme .gap-explanation {
    color: #4a5568 !important;
}

/* Meter */
.gap-meter {
    margin-top: 15px;
}

.meter-bar {
    height: 12px;
    background: #333;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid #444;
}

body.light-theme .meter-bar {
    background: #e2e8f0;
    border-color: #cbd5e0;
}

.meter-fill {
    height: 100%;
    transition: width 1s ease-out;
}

.meter-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #777;
}

body.light-theme .meter-labels {
    color: #a0aec0 !important;
}

/* Comparison Cards */
.gap-comparison {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rate-card {
    background: #222;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

body.light-theme .rate-card {
    background: #fff;
    border-color: #e2e8f0;
}

.card-icon {
    font-size: 1.8rem;
}

.card-label {
    flex-grow: 1;
    font-weight: 500;
    font-size: 0.95rem;
}

body.light-theme .card-label {
    color: #2d3748 !important;
}

.card-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

body.light-theme .card-price {
    color: #1a202c !important;
}

.card-price span {
    font-size: 0.8rem;
    color: #777;
}

/* Content Sections */
.content-section h2 {
    color: var(--primary-color, #FFD700);
    margin: 40px 0 20px;
    font-size: 1.6rem;
    border-right: 4px solid var(--primary-color, #FFD700);
    padding-right: 15px;
}

body.light-theme .content-section h2 {
    color: #2c5282;
    border-right-color: #2c5282;
}

.content-section h3 {
    color: #fff;
    margin: 30px 0 15px;
    font-size: 1.3rem;
}

body.light-theme .content-section h3 {
    color: #1a365d !important;
}

.content-section p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #ccc;
}

body.light-theme .content-section p {
    color: #1a365d !important;
}

.content-section ul {
    margin-bottom: 25px;
    padding-right: 20px;
}

.content-section li {
    margin-bottom: 10px;
    list-style-type: disc;
    color: #bbb;
}

body.light-theme .content-section li {
    color: #1a365d !important;
}

.internal-link {
    background: rgba(255, 215, 0, 0.05);
    padding: 15px;
    border-radius: 8px;
    border-right: 3px solid #FFD700;
}

body.light-theme .internal-link {
    background: #ebf8ff;
    border-right-color: #3182ce;
}

.internal-link a {
    color: #FFD700;
    text-decoration: none;
    font-weight: 600;
}

body.light-theme .internal-link a {
    color: #2b6cb0;
}

.internal-link a:hover {
    text-decoration: underline;
}

/* Comparison Table */
.table-responsive {
    overflow-x: auto;
    margin: 30px 0;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
}

body.light-theme .comparison-table {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid #333;
}

body.light-theme .comparison-table th,
body.light-theme .comparison-table td {
    border-bottom-color: #edf2f7 !important;
    color: #2d3748 !important;
}

.comparison-table th {
    background: #2a2a2a;
    color: #FFD700;
    font-weight: 700;
}

body.light-theme .comparison-table th {
    background: #f7fafc !important;
    color: #2c5282 !important;
}

.comparison-table tr:hover {
    background: #222;
}

body.light-theme .comparison-table tr:hover {
    background: #f8fafc;
}

.conclusion-box {
    background: linear-gradient(135deg, #222, #111);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #FFD700;
    margin-top: 50px;
}

body.light-theme .conclusion-box {
    background: #f7fafc !important;
    border: 1px solid #bee3f8 !important;
}

.conclusion-box h3 {
    margin-top: 0 !important;
    color: #FFD700 !important;
}

body.light-theme .conclusion-box h3 {
    color: #2c5282 !important;
}

@media (max-width: 768px) {
    .gap-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 1.7rem;
    }

    .gap-value {
        font-size: 2.8rem;
    }
}