/**
 * MetaScope Features Page Styles
 *
 * Dark theme with glassmorphism matching the MetaScope design system.
 */

/* ============================================
   PAGE LAYOUT
   ============================================ */

.features-page {
    min-height: 100vh;
    padding-top: 80px; /* Account for fixed header */
}

/* ============================================
   BREADCRUMBS
   ============================================ */

.breadcrumbs {
    padding: 1rem 0;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.breadcrumbs .container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #00b0cf;
}

.breadcrumbs .separator {
    color: rgba(255, 255, 255, 0.3);
}

.breadcrumbs .current {
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   HERO SECTION
   ============================================ */

.features-hero {
    text-align: center;
    padding: 4rem 0 3rem;
}

.features-title {
    font-size: 3rem;
    font-weight: 700;
    color: #F7F9FC;
    margin-bottom: 0.5rem;
}

.features-subtitle {
    font-size: 1.5rem;
    color: #00b0cf;
    margin-bottom: 1rem;
    font-weight: 500;
}

.features-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Stats */
.features-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #00b0cf;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.25rem;
}

/* ============================================
   JUMP LINKS
   ============================================ */

.jump-links-section {
    padding: 1.5rem 0;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.jump-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.jump-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.jump-link:hover {
    background: rgba(0, 176, 207, 0.2);
    border-color: rgba(0, 176, 207, 0.4);
    color: #00b0cf;
    transform: translateY(-2px);
}

.jump-link-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jump-link-icon svg {
    width: 100%;
    height: 100%;
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */

.categories-section {
    padding: 3rem 0;
}

.feature-category {
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    scroll-margin-top: 100px;
    transition: all 0.3s ease;
}

.feature-category:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.feature-category.collapsed .category-toggle .toggle-icon {
    transform: rotate(-90deg);
}

/* Category Header */
.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.category-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.category-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, #00b0cf, #006374);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.category-icon svg {
    width: 100%;
    height: 100%;
    color: white;
}

.category-info {
    flex: 1;
}

.category-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #F7F9FC;
    margin: 0 0 0.25rem 0;
}

.category-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.5;
}

.category-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.toggle-icon {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.3s ease;
}

/* Category Content */
.category-content {
    padding: 0 2rem 1.5rem;
    max-height: 5000px;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease, opacity 0.3s ease;
}

.category-content.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ============================================
   FEATURE ENTRIES
   ============================================ */

.feature-entry {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    scroll-margin-top: 100px;
    transition: background 0.3s ease;
}

.feature-entry:last-child {
    border-bottom: none;
}

.feature-entry:hover {
    background: rgba(255, 255, 255, 0.02);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.feature-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #F7F9FC;
    margin: 0;
}

/* Badges */
.badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-pro {
    background: linear-gradient(135deg, #F5A623, #E09400);
    color: #1C1C1E;
}

.feature-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 176, 207, 0.05) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: #F7F9FC;
    margin-bottom: 0.5rem;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(-3px);
}

.cta-secondary svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   FOOTER
   ============================================ */

.page-footer {
    padding: 2rem 0;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #00b0cf;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .features-page {
        padding-top: 70px;
    }

    .features-hero {
        padding: 2.5rem 0 2rem;
    }

    .features-title {
        font-size: 2.25rem;
    }

    .features-subtitle {
        font-size: 1.2rem;
    }

    .features-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .jump-links {
        gap: 0.5rem;
    }

    .jump-link {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .jump-link-text {
        display: none;
    }

    .jump-link-icon {
        width: 22px;
        height: 22px;
    }

    .category-header {
        padding: 1rem 1.25rem;
    }

    .category-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        padding: 8px;
    }

    .category-title {
        font-size: 1.15rem;
    }

    .category-description {
        font-size: 0.85rem;
    }

    .category-content {
        padding: 0 1.25rem 1rem;
    }

    .feature-entry {
        padding: 1rem;
    }

    .feature-name {
        font-size: 1rem;
    }

    .feature-description {
        font-size: 0.9rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .footer-links {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .features-title {
        font-size: 1.75rem;
    }

    .features-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .jump-links {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }

    .jump-link {
        justify-content: center;
        padding: 0.6rem;
    }

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

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .jump-link,
    .feature-category,
    .feature-entry,
    .category-content,
    .toggle-icon,
    .cta-secondary {
        transition: none;
    }
}
