/**
 * Travel Sense - Info Pages (FAQ, Rejsebetingelser, etc.)
 */

/* Hero */
.info-hero {
    background: linear-gradient(135deg, var(--bg-darker) 0%, #1a1a3a 50%, var(--bg-dark) 100%);
    padding: 7rem 2rem 4rem;
    text-align: center;
    position: relative;
}
.info-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 50%;
    height: 180%;
    background: radial-gradient(ellipse, rgba(78, 204, 163, 0.05) 0%, transparent 70%);
    pointer-events: none;
}
.info-hero-inner {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.info-hero-icon {
    margin-bottom: 1rem;
    opacity: 0.9;
}
.info-hero h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--text-white);
    margin-bottom: 0.75rem;
}
.info-hero p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Layout: content + sidebar */
.info-section {
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    align-items: start;
}

/* Main content area */
.info-content {
    min-height: 300px;
}

/* Prose content styling */
.info-prose h2 {
    font-size: 1.4rem;
    color: var(--text-white);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-green);
}
.info-prose h2:first-child {
    margin-top: 0;
}
.info-prose h3 {
    font-size: 1.1rem;
    color: var(--accent-green);
    margin: 1.75rem 0 0.6rem;
}
.info-prose p {
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
}
.info-prose strong {
    color: var(--text-light);
}
.info-prose a {
    color: var(--accent-green);
    text-decoration: none;
    transition: opacity 0.2s;
}
.info-prose a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Alert/warning box */
.info-alert {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-left: 4px solid #e74c3c;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}
.info-alert p {
    color: var(--text-light) !important;
    margin-bottom: 0 !important;
}

/* Link button style */
.info-link-btn {
    display: inline-block;
    background: rgba(78, 204, 163, 0.1);
    border: 1px solid rgba(78, 204, 163, 0.3);
    padding: 0.7rem 1.25rem;
    border-radius: 8px;
    color: var(--accent-green) !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    margin: 0.25rem 0;
}
.info-link-btn:hover {
    background: rgba(78, 204, 163, 0.2);
    opacity: 1 !important;
}

/* FAQ Accordion */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.faq-item {
    border-bottom: 2px solid var(--accent-green);
    overflow: hidden;
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0.5rem;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s;
    font-family: inherit;
}
.faq-question:hover {
    color: var(--accent-green);
}
.faq-question svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--accent-green);
}
.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 0.5rem;
}
.faq-item.open .faq-answer {
    max-height: 2000px;
    padding: 0 0.5rem 1.5rem;
}
.faq-answer p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}
.faq-answer p:last-child {
    margin-bottom: 0;
}
.faq-answer strong {
    color: var(--text-light);
}
.faq-answer a {
    color: var(--accent-green);
    text-decoration: none;
}
.faq-answer a:hover {
    text-decoration: underline;
}

/* Sidebar */
.info-sidebar {
    position: sticky;
    top: 100px;
}
.info-sidebar h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.info-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 2rem;
}
.info-sidebar-nav a {
    display: block;
    padding: 0.65rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.info-sidebar-nav a:hover {
    background: var(--bg-card);
    color: var(--accent-green);
}
.info-sidebar-nav a.active {
    background: var(--bg-card);
    color: var(--accent-green);
    border-left-color: var(--accent-green);
    font-weight: 600;
}

/* Sidebar contact box */
.info-sidebar-contact {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg, 12px);
    padding: 1.25rem;
}
.info-sidebar-contact h4 {
    color: var(--text-white);
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}
.info-sidebar-contact p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}
.info-sidebar-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}
.info-sidebar-phone:hover {
    opacity: 0.85;
}
.info-sidebar-contact > a:last-child {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    display: block;
}
.info-sidebar-contact > a:last-child:hover {
    color: var(--accent-green);
}

/* Loading spinner */
.info-content .loading {
    text-align: center;
    padding: 3rem;
}

/* Responsive */
@media (max-width: 900px) {
    .info-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .info-sidebar {
        position: static;
        order: -1;
    }
    .info-sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .info-sidebar-nav a {
        padding: 0.5rem 0.75rem;
        border-left: none;
        border-bottom: 2px solid transparent;
        font-size: 0.85rem;
    }
    .info-sidebar-nav a.active {
        border-left: none;
        border-bottom-color: var(--accent-green);
    }
}

@media (max-width: 768px) {
    .info-hero {
        padding: 6rem 1.5rem 3rem;
    }
    .faq-question {
        font-size: 0.95rem;
        padding: 1rem 0.25rem;
    }
}
