/* ============================================
   ARCLITE WEBSITE - SPACE THEME
   ============================================ */

/* CSS Variables */
:root {
    --bg-dark: #050810;
    --bg-mid: #0a1628;
    --bg-light: #152238;
    --bg-card: rgba(21, 34, 56, 0.8);
    
    --accent-cyan: #00d4ff;
    --accent-teal: #0a8a8a;
    --accent-blue: #1e90ff;
    --accent-purple: #8a2be2;
    
    --text-light: #e8f0f8;
    --text-dim: #6888a8;
    --text-muted: #3a4a5a;
    
    --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.4);
    --glow-cyan-strong: 0 0 40px rgba(0, 212, 255, 0.6);
    
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Exo 2', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-med: 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Page Wrapper */
.page-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Animated Backgrounds */
.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    background: 
        radial-gradient(2px 2px at 20px 30px, white, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, white, transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 230px 80px, white, transparent),
        radial-gradient(2px 2px at 300px 150px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 350px 200px, white, transparent),
        radial-gradient(2px 2px at 420px 90px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 500px 180px, white, transparent),
        radial-gradient(2px 2px at 580px 50px, rgba(255,255,255,0.9), transparent);
    background-size: 600px 250px;
    animation: stars-move 60s linear infinite;
}

@keyframes stars-move {
    from { background-position: 0 0; }
    to { background-position: 600px 250px; }
}

.nebula-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(138, 43, 226, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 80%, rgba(10, 138, 138, 0.08) 0%, transparent 45%);
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(5, 8, 16, 0.95), rgba(5, 8, 16, 0.8));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.2em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dim);
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-cyan);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: width var(--transition-med);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 101;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text-light);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(5, 8, 16, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.mobile-nav.open {
    max-height: 300px;
    padding: 1rem 0;
}

.mobile-nav-link {
    display: block;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dim);
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.05);
    border-left-color: var(--accent-cyan);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-nav {
        display: block;
    }
}

/* Main Content */
.main-content {
    flex: 1;
    padding-top: 80px;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 700px;
    text-align: center;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-cyan);
    letter-spacing: 0.2em;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--accent-cyan);
    border-radius: 50px;
    margin-bottom: 2rem;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(0, 212, 255, 0.3); }
    50% { box-shadow: 0 0 25px rgba(0, 212, 255, 0.6); }
}

.hero-title {
    margin-bottom: 1.5rem;
}

.title-main {
    display: block;
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    background: linear-gradient(135deg, var(--text-light), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(0, 212, 255, 0.3);
}

.title-sub {
    display: block;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.4em;
    color: var(--text-dim);
    margin-top: 0.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-version {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.version-number {
    color: var(--accent-cyan);
    margin-left: 0.5rem;
}

.hero-visual {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    opacity: 0.3;
}

.planet {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #2a4a6a, #0a1628);
    box-shadow: 
        inset -30px -20px 40px rgba(0,0,0,0.6),
        0 0 60px rgba(0, 212, 255, 0.2);
    right: 50px;
    top: 100px;
}

.planet-ring {
    position: absolute;
    width: 300px;
    height: 80px;
    border: 3px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    transform: rotateX(70deg);
    right: 0;
    top: 160px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-med);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-cyan-strong);
}

.btn-glow {
    box-shadow: var(--glow-cyan);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--text-muted);
}

.btn-secondary:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.btn-danger {
    background: linear-gradient(135deg, #ff4444, #cc2222);
    color: white;
}

.btn-icon {
    font-size: 0.8em;
}

/* Section Titles */
.section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    margin-bottom: 3rem;
    text-align: center;
}

.title-accent {
    color: var(--accent-cyan);
    margin-right: 0.5rem;
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 8px;
    padding: 2rem;
    transition: all var(--transition-med);
}

.feature-card:hover {
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.feature-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-status {
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    white-space: nowrap;
}

.status-wip {
    background: rgba(255, 170, 0, 0.15);
    color: #ffaa00;
    border: 1px solid rgba(255, 170, 0, 0.4);
}

.status-heavy-wip {
    background: rgba(255, 85, 85, 0.15);
    color: #ff5555;
    border: 1px solid rgba(255, 85, 85, 0.4);
}

.status-coming {
    background: rgba(136, 136, 255, 0.15);
    color: #8888ff;
    border: 1px solid rgba(136, 136, 255, 0.4);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.feature-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Quick Start Section */
.quickstart {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, transparent, rgba(0, 212, 255, 0.03), transparent);
}

.quickstart-content {
    max-width: 800px;
    margin: 0 auto;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.step-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-cyan);
    opacity: 0.5;
    min-width: 80px;
}

.step-content h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-dim);
}

/* Page Hero (for subpages) */
.downloads-hero,
.changelog-hero,
.about-hero,
.admin-hero {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.05), transparent);
}

.page-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
}

.page-subtitle {
    color: var(--text-dim);
    font-size: 1.1rem;
}

/* Downloads Page */
.downloads-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all var(--transition-med);
}

.download-card.featured {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.card-icon {
    font-size: 2.5rem;
}

.card-badge {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-cyan);
    letter-spacing: 0.1em;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--accent-cyan);
    border-radius: 50px;
}

.download-card h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-description {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.card-details {
    margin-bottom: 2rem;
}

.detail {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.detail-value {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* System Requirements */
.system-requirements {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.requirements-column h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
}

.requirements-column ul {
    list-style: none;
}

.requirements-column li {
    padding: 0.5rem 0;
    color: var(--text-dim);
    font-size: 0.95rem;
}

.requirements-column li strong {
    color: var(--text-light);
}

/* Changelog Page */
.changelog-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.changelog-timeline {
    position: relative;
}

.changelog-entry {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.entry-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.marker-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-mid);
    border: 3px solid var(--text-muted);
}

.changelog-entry.latest .marker-dot {
    border-color: var(--accent-cyan);
    background: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
}

.marker-line {
    flex: 1;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
}

.entry-content {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
}

.changelog-entry.latest .entry-content {
    border-color: rgba(0, 212, 255, 0.3);
}

.entry-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.entry-version {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
}

.entry-badge {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--accent-cyan);
    letter-spacing: 0.1em;
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--accent-cyan);
    border-radius: 3px;
}

.entry-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: auto;
}

.entry-body {
    color: var(--text-dim);
}

.entry-changelog h3,
.entry-changelog h4 {
    color: var(--text-light);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.entry-changelog ul {
    list-style: none;
    margin: 0.5rem 0;
}

.entry-changelog li {
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.entry-changelog li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
}

.entry-actions {
    margin-top: 1.5rem;
}

/* About Page */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.about-section {
    margin-bottom: 3rem;
}

.about-section h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: var(--accent-cyan);
}

.about-section p {
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-section ul {
    list-style: none;
    margin: 1rem 0;
}

.about-section li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    color: var(--text-dim);
    position: relative;
}

.about-section li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-dim);
    transition: all var(--transition-fast);
}

.social-link:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* Admin Page */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.admin-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.admin-card h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
    font-family: monospace;
}

.form-input-file {
    padding: 1rem;
    border-style: dashed;
}

.upload-progress {
    margin-top: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    height: 24px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-cyan));
    transition: width 0.3s ease;
}

.upload-progress span {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
}

.file-info {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--accent-cyan);
}

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
}

.alert-error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff4444;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-table th {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.admin-table td {
    color: var(--text-dim);
}

/* Loading */
.loading {
    text-align: center;
    padding: 3rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 212, 255, 0.2);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer */
.main-footer {
    background: var(--bg-mid);
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    padding: 3rem 2rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--text-light);
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   LEGAL PAGES (Privacy Policy, Terms)
   ============================================ */

.legal-hero {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.05), transparent);
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.legal-container {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 3rem;
}

.legal-intro {
    font-size: 1.1rem;
    color: var(--text-dim);
    line-height: 1.8;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.legal-section h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-section p {
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section ul {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.legal-section li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.5rem;
    color: var(--text-dim);
    line-height: 1.7;
}

.legal-section li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: bold;
}

.legal-section li strong {
    color: var(--text-light);
}

.contact-box {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-top: 1rem;
}

.contact-box p {
    margin: 0;
    color: var(--text-light);
}

.legal-agreement {
    background: rgba(0, 212, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
}

.legal-agreement p {
    margin: 0;
    font-style: italic;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet - 1024px and below */
@media (max-width: 1024px) {
    .hero {
        padding: 3rem 1.5rem;
    }
    
    .hero-visual {
        opacity: 0.15;
        right: 5%;
    }
    
    .title-main {
        font-size: 3.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .download-cards {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .requirements-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-content {
        padding: 1.5rem;
    }
}

/* Mobile - 768px and below */
@media (max-width: 768px) {
    /* Navigation */
    .nav-container {
        padding: 0.75rem 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .logo-text {
        font-size: 1.2rem;
        letter-spacing: 0.15em;
    }
    
    .logo-img {
        height: 32px;
    }
    
    /* Hero Section */
    .hero {
        min-height: auto;
        padding: 2rem 1rem 3rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-badge {
        font-size: 0.65rem;
        padding: 0.4rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .title-main {
        font-size: 2.2rem;
        letter-spacing: 0.1em;
    }
    
    .title-sub {
        font-size: 0.7rem;
        letter-spacing: 0.2em;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    /* Buttons */
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.8rem;
    }
    
    .btn-large {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
    
    /* Sections */
    .section-title {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .features {
        padding: 3rem 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .feature-card h3 {
        font-size: 1rem;
    }
    
    /* Quick Start */
    .quickstart {
        padding: 3rem 1rem;
    }
    
    .step {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-number {
        font-size: 1.5rem;
        min-width: auto;
    }
    
    /* Page Headers */
    .downloads-hero,
    .changelog-hero,
    .about-hero,
    .admin-hero {
        padding: 2rem 1rem;
    }
    
    .page-title {
        font-size: 2rem;
        letter-spacing: 0.15em;
    }
    
    .page-subtitle {
        font-size: 0.95rem;
    }
    
    /* Downloads Page */
    .downloads-content {
        padding: 1rem;
    }
    
    .download-cards {
        grid-template-columns: 1fr;
    }
    
    .download-card {
        padding: 1.5rem;
    }
    
    .download-card h2 {
        font-size: 1.25rem;
    }
    
    .system-requirements {
        padding: 1.5rem;
    }
    
    .requirements-grid {
        gap: 2rem;
    }
    
    /* Changelog */
    .changelog-content {
        padding: 1rem;
    }
    
    .changelog-entry {
        gap: 1rem;
    }
    
    .entry-content {
        padding: 1rem;
    }
    
    .entry-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .entry-date {
        margin-left: 0;
    }
    
    /* About */
    .about-content {
        padding: 1rem;
    }
    
    .social-links {
        flex-direction: column;
    }
    
    /* Admin */
    .admin-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .admin-content {
        padding: 1rem;
    }
    
    .admin-card {
        padding: 1.25rem;
    }
    
    .admin-card h2 {
        font-size: 1.1rem;
    }
    
    .admin-table {
        font-size: 0.85rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
    }
    
    /* Footer */
    .main-footer {
        padding: 2rem 1rem;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Legal Pages */
    .legal-hero {
        padding: 2rem 1rem;
    }
    
    .legal-content {
        padding: 1rem;
    }
    
    .legal-container {
        padding: 1.5rem;
    }
    
    .legal-intro {
        font-size: 1rem;
    }
    
    .legal-section h2 {
        font-size: 1.1rem;
    }
}

/* Small Mobile - 480px and below */
@media (max-width: 480px) {
    .nav-container {
        padding: 0.5rem 0.75rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .logo-img {
        height: 28px;
    }
    
    .title-main {
        font-size: 1.75rem;
        letter-spacing: 0.05em;
    }
    
    .title-sub {
        font-size: 0.6rem;
        letter-spacing: 0.1em;
    }
    
    .hero-badge {
        font-size: 0.6rem;
        padding: 0.3rem 0.75rem;
    }
    
    .page-title {
        font-size: 1.5rem;
        letter-spacing: 0.1em;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .download-card {
        padding: 1.25rem;
    }
    
    .card-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .detail {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.5rem 0;
    }
    
    .changelog-entry {
        flex-direction: column;
    }
    
    .entry-marker {
        flex-direction: row;
        align-items: center;
    }
    
    .marker-line {
        height: 2px;
        width: 100%;
        margin-top: 0;
        margin-left: 0.5rem;
    }
    
    .form-group label {
        font-size: 0.8rem;
    }
    
    .form-input {
        padding: 0.625rem 0.875rem;
        font-size: 0.9rem;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 1.5rem 2rem;
    }
    
    .hero-badge {
        margin-bottom: 1rem;
    }
    
    .title-main {
        font-size: 2rem;
    }
    
    .hero-description {
        margin-bottom: 1.5rem;
    }
}

/* High DPI / Retina adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .stars-bg {
        background-size: 1200px 500px;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .stars-bg {
        animation: none;
    }
}

/* Print styles */
@media print {
    .stars-bg,
    .nebula-bg,
    .main-nav,
    .main-footer,
    .hero-visual,
    .btn {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .page-wrapper {
        background: white;
    }
}

