/**
 * GetSetLive Streaming - Features Page Styles
 * Created: 2025-11-25
 * Purpose: Styles for the detailed features page
 */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --accent-primary: #2196f3;
    --accent-secondary: #f44336;
    --gradient: linear-gradient(135deg, #2196f3 0%, #f44336 100%);
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border-color: #334155;
}

/* ============================================
   Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background 0.3s;
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.9);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

/* Logo switching based on theme */
.logo-color {
    display: block;
}
.logo-white {
    display: none;
}
[data-theme="dark"] .logo-color {
    display: none;
}
[data-theme="dark"] .logo-white {
    display: block;
}

.nav-brand-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 48px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-secondary);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.theme-toggle:hover {
    color: var(--accent-primary);
}

.auth-buttons,
.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-menu.hidden,
.auth-buttons.hidden {
    display: none;
}

.user-name {
    font-weight: 500;
    color: var(--text-primary);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(33, 150, 243, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
}

.btn-large {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ============================================
   Main Content
   ============================================ */
.main-content {
    padding-top: 72px;
}

/* ============================================
   Features Hero Section
   ============================================ */
.features-hero {
    padding: 100px 24px 80px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.features-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.features-hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.features-hero h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Feature Sections
   ============================================ */
.feature-section {
    padding: 100px 24px;
}

.feature-section.alt-bg {
    background: var(--bg-secondary);
}

.feature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-content.reverse {
    direction: rtl;
}

.feature-content.reverse > * {
    direction: ltr;
}

.feature-badge {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.feature-text h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.feature-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 1rem;
    color: var(--text-secondary);
}

.feature-list li svg {
    color: var(--success);
    flex-shrink: 0;
}

/* ============================================
   Feature Visual - Live Streaming
   ============================================ */
.feature-card-large {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.stream-preview {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-height: 300px;
}

.live-indicator {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--error);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.stream-icon {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0.8;
}

.stream-stats {
    display: flex;
    gap: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    justify-content: center;
}

.stream-stats .stat {
    text-align: center;
}

.stream-stats .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.stream-stats .stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   Feature Visual - Quality Ladder
   ============================================ */
.quality-ladder {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border-color);
}

.quality-rung {
    display: grid;
    grid-template-columns: 140px 1fr 80px;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.quality-rung:last-child {
    border-bottom: none;
}

.quality-rung.active .quality-label {
    color: var(--accent-primary);
    font-weight: 600;
}

.quality-label {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.quality-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.quality-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.quality-bitrate {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: right;
}

/* ============================================
   Feature Visual - Security
   ============================================ */
.security-visual {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 48px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.shield-icon {
    color: var(--success);
    margin-bottom: 32px;
}

.security-features {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.security-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.security-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-tertiary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.security-item span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ============================================
   Feature Visual - Analytics
   ============================================ */
.analytics-dashboard {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.analytics-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.analytics-title {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.analytics-trend {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.analytics-trend.up {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.analytics-trend.down {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.analytics-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.mini-chart {
    height: 30px;
    margin-top: 12px;
}

.mini-chart svg {
    width: 100%;
    height: 100%;
}

/* ============================================
   Feature Visual - Code Block
   ============================================ */
.code-block {
    background: #1e293b;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.code-header {
    background: #0f172a;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.code-dots {
    display: flex;
    gap: 6px;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dots span:nth-child(1) { background: #ef4444; }
.code-dots span:nth-child(2) { background: #f59e0b; }
.code-dots span:nth-child(3) { background: #10b981; }

.code-title {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.code-content {
    padding: 24px;
    margin: 0;
    overflow-x: auto;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.code-content code {
    color: #e2e8f0;
}

.code-keyword { color: #c084fc; }
.code-string { color: #4ade80; }
.code-comment { color: #64748b; }

/* ============================================
   Feature Visual - Globe
   ============================================ */
.globe-visual {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 48px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.globe-container {
    margin-bottom: 32px;
}

.globe {
    position: relative;
    display: inline-block;
}

.globe svg {
    color: var(--accent-primary);
    opacity: 0.3;
}

.edge-point {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: ping 2s infinite;
}

.edge-point::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: ping 2s infinite;
}

@keyframes ping {
    0% { transform: scale(1); opacity: 1; }
    75%, 100% { transform: scale(1.5); opacity: 0; }
}

.infra-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.infra-stat {
    text-align: center;
}

.infra-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.infra-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: 100px 24px;
    background: var(--gradient);
    text-align: center;
}

.cta-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.cta-section .btn-primary {
    background: white;
    color: var(--accent-primary);
}

.cta-section .btn-primary:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.cta-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 80px 24px 40px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 16px;
    font-size: 0.9375rem;
    max-width: 300px;
}

.footer-contact {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.footer-contact a {
    color: var(--accent-primary);
    font-weight: 600;
}

.phone-number {
    font-family: 'Michroma', sans-serif;
    font-weight: 800;
    font-size: 17px;
    color: var(--accent-primary);
}

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ============================================
   Modal Styles
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 24px;
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 40px;
    max-width: 420px;
    width: 100%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: 8px;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--error);
    color: white;
}

.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-logo {
    width: 60px;
    height: auto;
    margin-bottom: 16px;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    padding: 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.error-message.hidden {
    display: none;
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-spinner.hidden {
    display: none;
}

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

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .feature-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .feature-content.reverse {
        direction: ltr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .features-hero {
        padding: 80px 24px 60px;
    }

    .features-hero h1 {
        font-size: 2.25rem;
    }

    .feature-section {
        padding: 60px 24px;
    }

    .feature-text h2 {
        font-size: 1.75rem;
    }

    .analytics-dashboard {
        grid-template-columns: 1fr;
    }

    .stream-stats {
        flex-wrap: wrap;
        gap: 16px;
    }

    .quality-rung {
        grid-template-columns: 100px 1fr 60px;
        gap: 8px;
    }

    .security-features {
        flex-direction: column;
        gap: 16px;
    }

    .infra-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
