/* ========================================
   Stargate Fan Hub - Main Stylesheet
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #1a4d7a;
    --secondary-color: #2c7ab8;
    --accent-color: #4a9fd8;
    --dark-bg: #0a1929;
    --darker-bg: #05101f;
    --text-light: #e0e7ef;
    --text-dark: #1a1a1a;
    --card-bg: #1e3a52;
    --hover-color: #6bb5f0;
    --border-color: #2d5373;
    --success-color: #4caf50;
    --warning-color: #ff9800;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    color: var(--accent-color);
}

h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--hover-color);
}

code {
    background: var(--card-bg);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Navigation */
.navbar {
    background: rgba(10, 25, 41, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--card-bg);
    color: var(--hover-color);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(180deg, rgba(42, 122, 184, 0.1) 0%, transparent 100%);
}

.hero-small {
    padding: 2.5rem 0;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(74, 159, 216, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    opacity: 0.9;
}

.chevron-symbol {
    font-size: 5rem;
    color: var(--secondary-color);
    margin: 2rem 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Content Section */
.content-section {
    padding: 3rem 0;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 159, 216, 0.2);
    border-color: var(--accent-color);
}

.card.featured {
    border: 2px solid var(--accent-color);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(42, 122, 184, 0.2) 100%);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 159, 216, 0.3);
}

.btn-primary {
    background: var(--accent-color);
}

.btn-primary:hover {
    background: var(--hover-color);
}

/* About Section */
.about-section {
    background: rgba(30, 58, 82, 0.3);
    padding: 3rem 0;
    margin: 3rem 0;
    border-radius: 12px;
}

.gate-address {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    font-size: 2rem;
}

.glyph {
    color: var(--accent-color);
    animation: glyphGlow 3s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.2s);
}

.glyph:nth-child(1) { animation-delay: 0s; }
.glyph:nth-child(2) { animation-delay: 0.2s; }
.glyph:nth-child(3) { animation-delay: 0.4s; }
.glyph:nth-child(4) { animation-delay: 0.6s; }
.glyph:nth-child(5) { animation-delay: 0.8s; }
.glyph:nth-child(6) { animation-delay: 1s; }
.glyph:nth-child(7) { animation-delay: 1.2s; }

@keyframes glyphGlow {
    0%, 100% { opacity: 0.5; text-shadow: none; }
    50% { opacity: 1; text-shadow: 0 0 20px var(--accent-color); }
}

/* Comparison Styles */
.intro-text {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    border-left: 4px solid var(--accent-color);
}

.comparison-block {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}

.comparison-desc {
    color: var(--text-light);
    opacity: 0.9;
    margin-bottom: 2rem;
}

.image-comparison-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.comparison-item {
    background: var(--darker-bg);
    padding: 1.5rem;
    border-radius: 8px;
}

/* Image Slider */
.image-slider {
    margin: 1rem 0;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 16/9;
    background: #000;
}

.slider-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
}

.img-before {
    z-index: 1;
}

.img-after {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
    z-index: 3;
    cursor: ew-resize;
    transform: translateX(-2px);
}

.slider-line {
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    box-shadow: 0 0 10px rgba(74, 159, 216, 0.5);
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 0 20px rgba(74, 159, 216, 0.8);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Audio Comparison */
.audio-comparison {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--darker-bg);
    border-radius: 8px;
}

.audio-players {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 1.5rem 0;
}

.audio-player-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.audio-player-item label {
    font-weight: 500;
    color: var(--accent-color);
}

.audio-player-item audio {
    width: 100%;
    height: 40px;
}

.audio-notes {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 6px;
    border-left: 3px solid var(--warning-color);
}

/* Upload Instructions */
.upload-instructions {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 2px dashed var(--border-color);
    margin-top: 3rem;
}

.upload-instructions h3 {
    color: var(--accent-color);
}

.upload-instructions ol {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.upload-instructions li {
    margin-bottom: 0.5rem;
}

/* Watch Order */
.watch-order {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.order-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
}

.order-item:hover {
    transform: translateX(10px);
    border-left-color: var(--hover-color);
}

.watch-links {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
}

.watch-links ul {
    list-style: none;
    margin-top: 1rem;
}

.watch-links li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.watch-links li:last-child {
    border-bottom: none;
}

/* Show Blocks */
.show-block {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.show-details {
    margin-top: 1rem;
}

.show-details p {
    margin-bottom: 0.75rem;
}

/* Resource Lists */
.resource-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.resource-list {
    list-style: none;
    margin-top: 1rem;
}

.resource-list li {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.resource-list li:last-child {
    border-bottom: none;
}

.resource-list li:hover {
    background: rgba(74, 159, 216, 0.1);
}

/* Footer */
footer {
    background: var(--darker-bg);
    border-top: 2px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

footer p {
    color: var(--text-light);
    opacity: 0.7;
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .chevron-symbol {
        font-size: 3rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .gate-address {
        font-size: 1.5rem;
    }

    .slider-wrapper {
        max-width: 100%;
    }

    .audio-players {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-brand h1 {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    .card {
        padding: 1.5rem;
    }
}
