/* Mobile Navigation Modal Styles */

.info-page-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.info-page-modal-content {
    background: #010A13;
    border: 1px solid rgba(200, 170, 110, 0.3);
    border-radius: 15px;
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

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

.info-page-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: rgba(12, 38, 61, 0.5);
    border-bottom: 1px solid rgba(200, 170, 110, 0.2);
}

.info-page-modal-header h2 {
    color: #C8AA6E;
    font-size: 1.4rem;
    margin: 0;
}

.info-page-modal-close {
    background: rgba(200, 170, 110, 0.1);
    border: 1px solid rgba(200, 170, 110, 0.3);
    border-radius: 8px;
    color: #F0E6D2;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.2rem;
}

.info-page-modal-close:hover {
    background: rgba(200, 170, 110, 0.2);
    border-color: #C8AA6E;
}

.info-page-modal-body {
    padding: 30px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    color: #A09B8C;
    line-height: 1.8;
}

/* Inherit styles from the info pages */
.info-page-modal-body h2 {
    color: #C8AA6E;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(200, 170, 110, 0.3);
    padding-bottom: 10px;
}

.info-page-modal-body h2:first-child {
    margin-top: 0;
}

.info-page-modal-body h3 {
    color: #F0E6D2;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 10px;
}

.info-page-modal-body p {
    margin-bottom: 15px;
}

.info-page-modal-body ul,
.info-page-modal-body ol {
    margin-left: 25px;
    margin-bottom: 15px;
}

.info-page-modal-body li {
    margin-bottom: 8px;
}

.info-page-modal-body a {
    color: #C8AA6E;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.info-page-modal-body a:hover {
    color: #F0E6D2;
    border-bottom-color: #C8AA6E;
}

.info-page-modal-body strong {
    color: #F0E6D2;
    font-weight: 600;
}

/* Highlight boxes */
.info-page-modal-body .highlight-box {
    background: rgba(200, 170, 110, 0.05);
    border-left: 3px solid #C8AA6E;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

/* Stats grid */
.info-page-modal-body .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.info-page-modal-body .stat-card {
    background: rgba(12, 38, 61, 0.3);
    padding: 20px 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(200, 170, 110, 0.2);
}

.info-page-modal-body .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #C8AA6E;
    display: block;
}

.info-page-modal-body .stat-label {
    font-size: 0.85rem;
    color: #A09B8C;
    margin-top: 5px;
}

/* Feature grid */
.info-page-modal-body .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.info-page-modal-body .feature-card {
    background: rgba(12, 38, 61, 0.2);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(200, 170, 110, 0.15);
}

.info-page-modal-body .feature-card h4 {
    color: #F0E6D2;
    margin-bottom: 8px;
    font-size: 1rem;
}

.info-page-modal-body .feature-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Contact info */
.info-page-modal-body .contact-info {
    background: rgba(12, 38, 61, 0.3);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid rgba(200, 170, 110, 0.2);
}

/* FAQ accordion styles */
.info-page-modal-body .faq-category {
    margin-bottom: 30px;
}

.info-page-modal-body .faq-item {
    background: rgba(12, 38, 61, 0.2);
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid rgba(200, 170, 110, 0.1);
    overflow: hidden;
}

.info-page-modal-body .faq-question {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #F0E6D2;
    font-weight: 500;
}

.info-page-modal-body .faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
}

/* Loading state */
.info-page-loading {
    text-align: center;
    padding: 60px 20px;
}

.info-page-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(200, 170, 110, 0.2);
    border-top-color: #C8AA6E;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.info-page-loading p {
    color: #8B8376;
}

/* Error state */
.info-page-error {
    text-align: center;
    padding: 40px 20px;
}

.info-page-error p {
    color: #A09B8C;
    margin-bottom: 20px;
}

.info-page-retry-btn {
    padding: 10px 25px;
    background: rgba(200, 170, 110, 0.2);
    border: 1px solid rgba(200, 170, 110, 0.4);
    border-radius: 6px;
    color: #F0E6D2;
    cursor: pointer;
    transition: all 0.2s ease;
}

.info-page-retry-btn:hover {
    background: rgba(200, 170, 110, 0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .info-page-modal {
        padding: 10px;
    }

    .info-page-modal-content {
        margin: 10px auto;
        border-radius: 12px;
    }

    .info-page-modal-header {
        padding: 15px 20px;
    }

    .info-page-modal-header h2 {
        font-size: 1.2rem;
    }

    .info-page-modal-body {
        padding: 20px;
        max-height: calc(100vh - 150px);
    }

    .info-page-modal-body h2 {
        font-size: 1.3rem;
    }

    .info-page-modal-body .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-page-modal-body .feature-grid {
        grid-template-columns: 1fr;
    }
}
