/* ============================================
   XP System Info Section Styles - Red Theme
   Matches notification-header design system
   ============================================ */

/* Main Container */
.xp-system-info-section {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #374151;
}

/* Header Section */
.xp-info-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #cc4549 0%, #a63639 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 10px 30px rgba(204, 69, 73, 0.3);
}

.xp-info-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.xp-info-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Content Sections */
.xp-info-section {
    background: white;
    padding: 40px;
    margin-bottom: 20px;
    border-radius: 12px;
    border: 2px solid #f1d6d7;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.xp-info-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 25px 0;
    color: #a63639;
    display: flex;
    align-items: center;
    gap: 15px;
}

.xp-info-section h2 i {
    font-size: 1.8rem;
    color: #cc4549;
}

.xp-info-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 30px 0 15px 0;
    color: #7c2d2e;
}

.xp-info-section p {
    margin-bottom: 20px;
    color: #6b7280;
    font-size: 1.05rem;
}

/* XP Methods Grid */
.xp-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.xp-method-card {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #fca5a5;
}

.xp-method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(204, 69, 73, 0.2);
    border-color: #cc4549;
}

.xp-method-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #cc4549;
}

.xp-method-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #7c2d2e;
}

.xp-reward {
    font-size: 2rem;
    font-weight: 800;
    color: #a63639;
    margin: 15px 0;
    background: white;
    display: inline-block;
    padding: 10px 25px;
    border-radius: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #f1d6d7;
}

.xp-method-card p {
    font-size: 0.95rem;
    color: #992b2b;
    margin: 0;
}

/* CTA Box */
.xp-cta-box {
    background: linear-gradient(135deg, #cc4549 0%, #a63639 100%);
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(204, 69, 73, 0.3);
}

.xp-cta-box p {
    color: white;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

.xp-cta-link {
    color: #fecaca;
    font-weight: 700;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.xp-cta-link:hover {
    color: white;
}

/* Streak System */
.streak-system-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

@media (max-width: 768px) {
    .streak-system-container {
        grid-template-columns: 1fr;
    }
}

.streak-explanation {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    padding: 30px;
    border-radius: 12px;
    border: 2px solid #fca5a5;
}

.streak-explanation h3 {
    color: #a63639;
    margin-top: 0;
}

.streak-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.streak-features-list li {
    padding: 12px 0;
    border-bottom: 1px solid #fca5a5;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.streak-features-list li:last-child {
    border-bottom: none;
}

.streak-features-list i {
    color: #cc4549;
    font-size: 1.2rem;
    margin-top: 2px;
}

.streak-features-list strong {
    color: #7c2d2e;
}

/* Streak Example Box */
.streak-example-box {
    background: linear-gradient(135deg, #fca5a5 0%, #f87171 100%);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(252, 165, 165, 0.3);
    border: 2px solid #cc4549;
}

.streak-example-box h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #7c2d2e;
    text-align: center;
}

.streak-comparison {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.streak-scenario {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid #f1d6d7;
}

.streak-scenario.active {
    background: linear-gradient(135deg, #cc4549 0%, #a63639 100%);
    color: white;
    transform: scale(1.05);
    border-color: #a63639;
}

.scenario-header {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.scenario-calculation {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.95rem;
}

.xp-plus {
    color: #cc4549;
    font-weight: 700;
}

.streak-scenario.active .xp-plus {
    color: #fecaca;
}

.scenario-total {
    font-size: 1.2rem;
    font-weight: 800;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px dashed #f87171;
}

.streak-scenario.active .scenario-total {
    border-top-color: rgba(255, 255, 255, 0.3);
}

.badge-2x {
    display: inline-block;
    background: #fecaca;
    color: #7c2d2e;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: 8px;
}

.streak-divider {
    font-weight: 700;
    color: #992b2b;
    font-size: 1.2rem;
}

.streak-tip {
    background: rgba(255, 255, 255, 0.5);
    padding: 15px;
    border-radius: 8px;
    margin: 0;
    font-size: 0.95rem;
    color: #7c2d2e;
    display: flex;
    align-items: center;
    gap: 10px;
}

.streak-tip i {
    color: #a63639;
    font-size: 1.3rem;
}

/* Tier System Grid */
.tier-system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.tier-card {
    padding: 30px 25px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid;
}

.tier-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    background-size: cover;
    background-position: center;
}

.tier-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.tier-emoji {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.tier-name {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tier-range {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 8px;
    font-weight: 600;
}

.tier-xp {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.tier-desc {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
}

/* Tier Colors - Updated to match red theme */
.tier-1 {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #f1d6d7;
}

.tier-2 {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-color: #86efac;
}

.tier-3 {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #93c5fd;
}

.tier-4 {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fcd34d;
}

.tier-5 {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    border-color: #f9a8d4;
}

.tier-6 {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    border-color: #cc4549;
}

.tier-6 .tier-range,
.tier-6 .tier-xp,
.tier-6 .tier-desc {
    color: rgba(255, 255, 255, 0.9);
}

/* Progression Table */
.progression-table-container {
    overflow-x: auto;
    margin: 30px 0;
}

.progression-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 2px solid #f1d6d7;
}

.progression-table thead {
    background: linear-gradient(135deg, #cc4549 0%, #a63639 100%);
    color: white;
}

.progression-table th {
    padding: 18px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progression-table td {
    padding: 18px;
    border-bottom: 1px solid #f1d6d7;
}

.progression-table tbody tr:last-child td {
    border-bottom: none;
}

.progression-table tbody tr:hover {
    background: #fef2f2;
}

.milestone-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.milestone-badge.initiate {
    background: #f1d6d7;
    color: #7c2d2e;
}

.milestone-badge.s-rank {
    background: #dcfce7;
    color: #166534;
}

.milestone-badge.elite {
    background: #dbeafe;
    color: #1e40af;
}

.milestone-badge.monarch {
    background: #1a1a2e;
    color: #cc4549;
}

.progression-note {
    text-align: center;
    color: #992b2b;
    font-style: italic;
    margin-top: 15px;
}

/* Tips Section */
.tips-section {
    margin-top: 40px;
}

.tips-section h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cc4549;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.tip-item {
    display: flex;
    gap: 15px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #cc4549;
    transition: transform 0.3s ease;
}

.tip-item:hover {
    transform: translateX(5px);
}

.tip-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #cc4549 0%, #a63639 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}

.tip-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #7c2d2e;
}

.tip-content p {
    font-size: 0.9rem;
    color: #992b2b;
    margin: 0;
}

/* FAQ Section */
.faq-container {
    margin-top: 30px;
}

.faq-item {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid #fca5a5;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(204, 69, 73, 0.15);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
    color: #7c2d2e;
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #fef2f2;
}

.faq-question i {
    color: #cc4549;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(90deg);
}

.faq-answer {
    padding: 0 25px 20px 25px;
    color: #6b7280;
    line-height: 1.7;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CTA Section */
.xp-cta-section {
    background: linear-gradient(135deg, #cc4549 0%, #a63639 100%);
    padding: 60px 40px;
    border-radius: 12px;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 20px;
    box-shadow: 0 15px 40px rgba(204, 69, 73, 0.3);
}

.xp-cta-content h2 {
    color: white;
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 20px 0;
}

.xp-cta-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.xp-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.xp-btn-secondary {
    padding: 18px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.xp-btn-secondary {
    background: transparent;
    color: white;
    border: 3px solid white;
}

.xp-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Internal Links */
.xp-internal-links {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    padding: 30px;
    border-radius: 12px;
    margin-top: 40px;
    border: 2px solid #fca5a5;
}

.xp-internal-links h3 {
    text-align: center;
    color: #cc4549;
    margin: 0 0 25px 0;
    font-size: 1.5rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.internal-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: #7c2d2e;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.internal-link:hover {
    border-color: #cc4549;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(204, 69, 73, 0.2);
}

.internal-link i {
    color: #cc4549;
    font-size: 1.3rem;
}

.internal-link span {
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .xp-info-header h1 {
        font-size: 1.8rem;
    }

    .xp-info-subtitle {
        font-size: 1rem;
    }

    .xp-info-section {
        padding: 25px 20px;
    }

    .xp-info-section h2 {
        font-size: 1.5rem;
    }

    .tier-system-grid {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .xp-cta-section {
        padding: 40px 25px;
    }

    .xp-cta-content h2 {
        font-size: 1.6rem;
    }

    .xp-cta-buttons {
        flex-direction: column;
    }

    .xp-btn-primary,
    .xp-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .streak-comparison {
        flex-direction: column;
    }

    .streak-divider {
        transform: rotate(90deg);
    }

    .xp-system-info-section {
        margin: 0;
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    .xp-system-info-section {
        padding: 15px 0;
    }

    .xp-methods-grid {
        grid-template-columns: 1fr;
    }

    .progression-table {
        font-size: 0.85rem;
    }

    .progression-table th,
    .progression-table td {
        padding: 12px 8px;
    }
}

/* ============================================
   Dark Mode Support
   ============================================ */

body.wp-night-mode-on .xp-info-section {
    background: #1e1e1e;
    border-color: #7c2d2e;
}

body.wp-night-mode-on .xp-info-section h2 {
    color: #fca5a5;
}

body.wp-night-mode-on .xp-info-section h3 {
    color: #fca5a5;
}

body.wp-night-mode-on .xp-info-section p {
    color: #a0a0a0;
}

body.wp-night-mode-on .xp-method-card {
    background: linear-gradient(135deg, #2d1f1f 0%, #3d2828 100%);
    border-color: #7c2d2e;
}

body.wp-night-mode-on .xp-method-card h3 {
    color: #fca5a5;
}

body.wp-night-mode-on .xp-method-card p {
    color: #a0a0a0;
}

body.wp-night-mode-on .xp-reward {
    background: #252525;
    border-color: #7c2d2e;
}

body.wp-night-mode-on .streak-explanation {
    background: linear-gradient(135deg, #2d1f1f 0%, #3d2828 100%);
    border-color: #7c2d2e;
}

body.wp-night-mode-on .streak-explanation h3 {
    color: #fca5a5;
}

body.wp-night-mode-on .streak-features-list li {
    border-bottom-color: #7c2d2e;
}

body.wp-night-mode-on .streak-features-list strong {
    color: #fca5a5;
}

body.wp-night-mode-on .streak-example-box {
    background: linear-gradient(135deg, #3d2828 0%, #7c2d2e 100%);
    border-color: #992b2b;
}

body.wp-night-mode-on .streak-example-box h4 {
    color: #fca5a5;
}

body.wp-night-mode-on .streak-scenario {
    background: #252525;
    border-color: #7c2d2e;
}

body.wp-night-mode-on .streak-tip {
    background: rgba(30, 30, 30, 0.5);
    color: #fca5a5;
}

body.wp-night-mode-on .streak-divider {
    color: #fca5a5;
}

body.wp-night-mode-on .scenario-header {
    color: #e5e5e5;
}

body.wp-night-mode-on .scenario-calculation {
    color: #a0a0a0;
}

body.wp-night-mode-on .badge-2x {
    background: #7c2d2e;
    color: #fca5a5;
}

body.wp-night-mode-on .xp-plus {
    color: #cc4549;
}

body.wp-night-mode-on .scenario-total {
    color: #e5e5e5;
}

body.wp-night-mode-on .streak-scenario.active .scenario-total {
    color: white;
}

body.wp-night-mode-on .tier-card {
    background: #252525;
}

body.wp-night-mode-on .tier-1 {
    background: linear-gradient(135deg, #2d1f1f 0%, #3d2828 100%);
    border-color: #7c2d2e;
}

body.wp-night-mode-on .tier-2 {
    background: linear-gradient(135deg, #1e3a29 0%, #2d4a35 100%);
    border-color: #166534;
}

body.wp-night-mode-on .tier-3 {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%);
    border-color: #1e40af;
}

body.wp-night-mode-on .tier-4 {
    background: linear-gradient(135deg, #3d3a1f 0%, #4a472d 100%);
    border-color: #b45309;
}

body.wp-night-mode-on .tier-5 {
    background: linear-gradient(135deg, #3d1f35 0%, #4a2d42 100%);
    border-color: #9d174d;
}

body.wp-night-mode-on .tier-range,
body.wp-night-mode-on .tier-xp,
body.wp-night-mode-on .tier-desc {
    color: #d1d5db;
}

body.wp-night-mode-on .tier-name {
    color: #e5e5e5;
}

body.wp-night-mode-on .progression-table {
    background: #1e1e1e;
    border-color: #7c2d2e;
}

body.wp-night-mode-on .progression-table td {
    border-bottom-color: #7c2d2e;
}

body.wp-night-mode-on .progression-table tbody tr:hover {
    background: #2d1f1f;
}

body.wp-night-mode-on .tip-item {
    background: linear-gradient(135deg, #2d1f1f 0%, #3d2828 100%);
}

body.wp-night-mode-on .tip-content h4 {
    color: #fca5a5;
}

body.wp-night-mode-on .tip-content p {
    color: #a0a0a0;
}

body.wp-night-mode-on .faq-item {
    background: linear-gradient(135deg, #2d1f1f 0%, #3d2828 100%);
    border-color: #7c2d2e;
}

body.wp-night-mode-on .faq-question {
    background: #1e1e1e;
    color: #fca5a5;
}

body.wp-night-mode-on .faq-question:hover {
    background: #252525;
}

body.wp-night-mode-on .faq-answer {
    color: #a0a0a0;
}

body.wp-night-mode-on .xp-internal-links {
    background: linear-gradient(135deg, #2d1f1f 0%, #3d2828 100%);
    border-color: #7c2d2e;
}

body.wp-night-mode-on .xp-internal-links h3 {
    color: #fca5a5;
}

body.wp-night-mode-on .internal-link {
    background: #252525;
    color: #fca5a5;
    border-color: #7c2d2e;
}

body.wp-night-mode-on .internal-link:hover {
    background: #2d1f1f;
    border-color: #cc4549;
    box-shadow: 0 5px 15px rgba(204, 69, 73, 0.3);
}

body.wp-night-mode-on .internal-link i {
    color: #cc4549;
}

body.wp-night-mode-on .milestone-badge.initiate {
    background: #7c2d2e;
    color: #fca5a5;
}

body.wp-night-mode-on .milestone-badge.s-rank {
    background: #166534;
    color: #86efac;
}

body.wp-night-mode-on .milestone-badge.elite {
    background: #1e40af;
    color: #93c5fd;
}

body.wp-night-mode-on .milestone-badge.monarch {
    background: #1a1a2e;
    color: #cc4549;
    border: 1px solid #cc4549;
}

body.wp-night-mode-on .progression-note {
    color: #fca5a5;
}

body.wp-night-mode-on .progression-note small {
    color: #a0a0a0;
}

body.wp-night-mode-on .xp-cta-link {
    color: #fca5a5;
}

body.wp-night-mode-on .xp-cta-link:hover {
    color: #fecaca;
}
