/* ByteSkipper Website - Shared Styles
 * Common CSS used across all pages
 */

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* CSS Variables */
:root {
    --primary: #2B7FFF;
    --primary-dark: #1A5FCC;
    --secondary: #7B5EA7;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --nav-shadow: rgba(0,0,0,0.1);
    --card-bg: #ffffff;
    --text-muted: #666;
}

/* Dark Mode - keep nav light for readability */
@media (prefers-color-scheme: dark) {
    :root {
        --primary: #4D94FF;
        --primary-dark: #2B7FFF;
        --secondary: #9B7EC8;
    }
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Body */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
}

/* Links */
a {
    color: var(--primary);
}

/* Navigation */
nav {
    position: fixed;
    top: 44px;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 20px var(--nav-shadow);
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo span {
    color: var(--secondary);
}

.logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    margin-right: 8px;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

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

.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
    border-bottom: 2px solid var(--primary);
}

.logo.active {
    color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: 0.3s;
}

/* Footer */
footer {
    background: #0d0d1a;
    color: var(--white);
    padding: 60px 20px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--primary);
}

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

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 999;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

.back-to-top.visible {
    display: flex;
}

/* App Store Button */
.app-store-btn {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.app-store-btn:hover {
    transform: translateY(-3px);
}

.app-store-btn img {
    display: block;
}

/* Content Container (for inner pages) */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Typography for inner pages */
.page-content h1 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 32px;
}

.page-content h2 {
    color: var(--dark);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 22px;
}

.page-content h3 {
    color: var(--text-muted);
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
}

.page-content p {
    margin-bottom: 15px;
}

.page-content ul,
.page-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.page-content li {
    margin-bottom: 8px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 30px;
}

.updated {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 30px;
}

.highlight {
    background: var(--card-bg);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

/* FAQ Styles */
.faq {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.faq h3 {
    margin-top: 0;
    color: var(--primary);
    margin-bottom: 10px;
}

/* Contact Box */
.contact-box {
    background: var(--gradient);
    color: var(--white);
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    text-align: center;
}

.contact-box a {
    color: var(--white);
    font-size: 22px;
    text-decoration: none;
    font-weight: 600;
}

/* CTA Download Section (used on all pages) */
.download {
    padding: 100px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    color: white;
}

.download h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.download p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Download Section (shared style) */
.download-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 20px;
    color: white;
    margin-top: 104px;
    min-height: calc(100vh - 104px - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.download-section h1 {
    color: white;
    margin-bottom: 20px;
    font-size: 42px;
    font-weight: 700;
}

.download-section p {
    margin-bottom: 30px;
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .fade-in-left,
    .fade-in-right,
    .scale-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Print Stylesheet */
@media print {
    /* Hide non-essential elements */
    nav,
    .hamburger,
    .back-to-top,
    .app-store-btn,
    footer {
        display: none !important;
    }
    
    /* Reset backgrounds and colors for printing */
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
        line-height: 1.5;
    }
    
    /* Ensure text is readable */
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
        page-break-after: avoid;
    }
    
    p, li {
        orphans: 3;
        widows: 3;
    }
    
    /* Show URLs for links */
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }
    
    /* Remove shadows and gradients */
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    /* Ensure content sections print properly */
    .container,
    .section-container,
    main {
        margin: 0 !important;
        padding: 20px !important;
        max-width: 100% !important;
    }
    
    /* Avoid page breaks inside cards */
    .faq,
    .highlight {
        page-break-inside: avoid;
        background: #f5f5f5 !important;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    nav {
        top: 90px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--card-bg);
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        gap: 15px;
    }
}
