/* ==========================================
   GIGRA GAME PORTAL - CSS
   ========================================== */

/* CSS Variables */
:root {
    --bg-primary: #020202;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #1a1a1a;
    --bg-hover: #2d2d2d;
    --accent-cyan: #00c7ec;
    --accent-cyan-bright: #00ffff;
    --accent-green: #00ff00;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --border-subtle: #2d2d2d;

    --font-display: 'Orbitron', monospace;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --shadow-neon: 0 0 10px rgba(0, 199, 236, 0.5);
    --shadow-neon-strong: 0 0 20px rgba(0, 199, 236, 0.7);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.5) 100%),
        url('../assets/bg-space.png') center center / cover no-repeat fixed;
    z-index: -1;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================
   HEADER
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(2, 2, 2, 0.95) 0%, rgba(2, 2, 2, 0.8) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 199, 236, 0.2);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo, .logo-small {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent-cyan);
    text-decoration: none;
    letter-spacing: 0.1em;
}

.logo span, .logo-small span {
    color: var(--text-primary);
    font-weight: 400;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.nav a:hover {
    color: var(--accent-cyan);
    text-shadow: var(--shadow-neon);
}

/* ==========================================
   SECTIONS
   ========================================== */
.section {
    padding: 6rem 0;
}

.section-dark {
    background: rgba(0, 0, 0, 0.5);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: var(--accent-cyan);
}

.section-intro {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
}

.neon-text {
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5), 0 0 20px rgba(0, 255, 255, 0.3);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
}

.hero-content {
    max-width: 600px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border: 1px solid rgba(0, 199, 236, 0.3);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.hero-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-subtext {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-style: italic;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.875rem 2rem;
    text-decoration: none;
    border: 1px solid var(--accent-cyan);
    transition: all 0.3s ease;
    cursor: pointer;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.btn-primary {
    background: var(--accent-cyan);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--accent-cyan-bright);
    box-shadow: var(--shadow-neon-strong);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-cyan);
}

.btn-secondary:hover {
    background: rgba(0, 199, 236, 0.1);
    box-shadow: var(--shadow-neon);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-disabled {
    background: var(--bg-tertiary);
    border-color: var(--border-subtle);
    color: var(--text-secondary);
    cursor: not-allowed;
}

/* ==========================================
   UNIVERSE CARDS
   ========================================== */
.universe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.universe-card {
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(0, 199, 236, 0.3);
    padding: 1.5rem;
    transition: all 0.3s ease;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.universe-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-neon);
}

.universe-card.coming-soon {
    opacity: 0.6;
}

.universe-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.universe-header h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.universe-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.universe-status.online {
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
}

.universe-status.offline {
    background: var(--text-secondary);
}

.universe-details {
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-row .label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.detail-row .value {
    color: var(--accent-cyan);
    font-family: var(--font-display);
    font-size: 0.9rem;
}

.universe-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.universe-actions {
    display: flex;
    gap: 0.75rem;
}

/* ==========================================
   SCREENSHOTS
   ========================================== */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.screenshot-placeholder {
    aspect-ratio: 16 / 10;
    background: rgba(26, 26, 26, 0.8);
    border: 1px dashed rgba(0, 199, 236, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.screenshot-placeholder:hover {
    border-color: var(--accent-cyan);
    background: rgba(26, 26, 26, 0.95);
}

.placeholder-icon {
    color: rgba(0, 199, 236, 0.4);
}

.screenshot-placeholder span {
    font-family: var(--font-display);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Screenshot images */
.screenshot-item {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid rgba(0, 199, 236, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.screenshot-item:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-neon);
    transform: scale(1.02);
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.screenshot-item:hover img {
    transform: scale(1.05);
}

.screenshot-item::after {
    content: attr(data-label);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    font-family: var(--font-display);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-cyan);
}

/* ==========================================
   DISCORD SECTION
   ========================================== */
.discord-card {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.4);
    padding: 2.5rem;
    max-width: 600px;
    clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
    transition: all 0.3s ease;
}

.discord-card:hover {
    border-color: #5865F2;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
}

.discord-icon {
    color: #5865F2;
    flex-shrink: 0;
}

.discord-content h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.discord-content p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #5865F2;
    border-color: #5865F2;
    color: white;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s ease;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.btn-discord:hover {
    background: #4752C4;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.6);
}

.btn-discord svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 600px) {
    .discord-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem;
    }
}

/* ==========================================
   TIMELINE
   ========================================== */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-cyan) 0%, rgba(0, 199, 236, 0.2) 100%);
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    background: var(--bg-primary);
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    transform: translateX(-5px);
}

.timeline-marker.active {
    background: var(--accent-cyan);
    box-shadow: var(--shadow-neon);
}

.timeline-content {
    background: rgba(10, 10, 10, 0.7);
    padding: 1.5rem;
    border: 1px solid rgba(0, 199, 236, 0.2);
    border-left: 3px solid var(--accent-cyan);
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.timeline-content h3 .year {
    color: var(--accent-cyan);
    font-weight: 400;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid rgba(0, 199, 236, 0.2);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

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

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        height: auto;
        padding: 1rem 1.5rem;
        gap: 1rem;
    }

    .nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding-top: 120px;
    }

    .hero-content {
        padding: 2rem;
    }

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

    .timeline {
        padding-left: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ==========================================
   IMPRINT / LEGAL PAGES
   ========================================== */
.legal-page {
    padding-top: 100px;
    min-height: 100vh;
}

.legal-content {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border: 1px solid rgba(0, 199, 236, 0.2);
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--accent-cyan);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.legal-content h2 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-content a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-cyan);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    text-shadow: var(--shadow-neon);
}
