/* Custom styles for Generation Ship website - Gaming Theme */

/* Root variables for consistent theming - Using actual game colors */
:root {
    --scifi-1: rgb(0,36,57);      /* Dark blue */
    --scifi-2: rgb(0,80,102);     /* Medium blue */
    --scifi-3: rgb(78,121,136);   /* Light blue */
    --scifi-4: rgb(120,204,226);  /* Bright cyan */
    --scifi-5: rgb(228,239,240);  /* Very light cyan */

    --primary-color: var(--scifi-4);    /* Bright cyan */
    --secondary-color: var(--scifi-2);  /* Medium blue */
    --accent-color: var(--scifi-3);     /* Light blue */
    --dark-bg: var(--scifi-1);          /* Dark blue background */
    --darker-bg: rgb(0,20,35);          /* Even darker blue */
    --card-bg: rgba(0, 80, 102, 0.1);  /* Semi-transparent medium blue */
    --text-primary: var(--scifi-5);     /* Very light cyan text */
    --text-secondary: var(--scifi-3);   /* Light blue secondary text */
    --border-color: rgba(120, 204, 226, 0.3); /* Semi-transparent bright cyan */
    --glow-shadow: 0 0 20px rgba(120, 204, 226, 0.3); /* Cyan glow */
}

/* Global styles */
body {
    background: var(--dark-bg);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* Animated background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 128, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 255, 128, 0.05) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes backgroundShift {
    0% { transform: translateX(-10px) translateY(-10px); }
    100% { transform: translateX(10px) translateY(10px); }
}

/* Hero Section - Gaming Style */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--scifi-1) 0%, var(--scifi-2) 50%, var(--scifi-1) 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('img/background.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    filter: brightness(0.3) contrast(1.2);
}

@keyframes twinkle {
    0% { opacity: 0.2; }
    100% { opacity: 0.4; }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 100px 0;
}

/* Trailer Container */
.trailer-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--glow-shadow), 0 0 60px rgba(0, 255, 255, 0.1);
    border: 2px solid var(--border-color);
    background: rgba(0, 0, 0, 0.5);
}

.trailer-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 18px;
}

/* Gaming-style buttons */
.btn-gaming {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 2px solid var(--primary-color);
    color: var(--dark-bg);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--glow-shadow);
    transition: all 0.3s ease;
}

.btn-gaming:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
    transform: translateY(-2px);
}

.btn-outline-gaming {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--glow-shadow);
    transition: all 0.3s ease;
}

.btn-outline-gaming:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* Features Section - Gaming Style */
.features-section {
    background: var(--scifi-1);
    position: relative;
}

.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--glow-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 255, 255, 0.3);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: var(--glow-shadow);
}

.feature-icon i {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(120, 204, 226, 1));
}

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

.feature-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li:before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Roadmap Section - Gaming Style */
.roadmap-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.roadmap-timeline:before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--scifi-4), var(--scifi-2), var(--scifi-3));
    box-shadow: var(--glow-shadow);
}

.roadmap-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 80px;
}

.roadmap-item.current-phase {
    animation: highlightPulse 3s ease-in-out infinite;
}

@keyframes highlightPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.roadmap-marker {
    position: absolute;
    left: 20px;
    top: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--dark-bg);
    box-shadow: var(--glow-shadow);
    animation: pulse 2s ease-in-out infinite;
}

.roadmap-marker.current-marker {
    background: var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 255, 128, 0.8);
    animation: currentPulse 1.5s ease-in-out infinite;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.spaceship-marker {
    font-size: 18px !important;
    animation: spaceshipFloat 2s ease-in-out infinite;
}

@keyframes spaceshipFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes currentPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 128, 0.8);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 255, 128, 1);
        transform: scale(1.1);
    }
}

@keyframes pulse {
    0%, 100% { box-shadow: var(--glow-shadow); }
    50% { box-shadow: 0 0 30px rgba(0, 255, 255, 0.8); }
}

.roadmap-content {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--glow-shadow);
}

.roadmap-content h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    text-shadow: var(--glow-shadow);
}

/* Highscores Section - Gaming Style */
.highscore-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--glow-shadow);
    height: 100%;
}

/* Ensure highscore tables have proper background */
.highscore-card .table {
    --bs-table-bg: var(--card-bg) !important;
    background: var(--card-bg) !important;
    color: var(--text-primary) !important;
}

.highscore-card .table thead th {
    --bs-table-bg: rgba(0, 80, 102, 0.3) !important;
    background: rgba(0, 80, 102, 0.3) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

.highscore-card .table tbody tr {
    --bs-table-bg: transparent !important;
    background: transparent !important;
    border-color: var(--border-color) !important;
}

.highscore-card .table tbody tr:hover {
    --bs-table-bg: rgba(120, 204, 226, 0.1) !important;
    background: rgba(120, 204, 226, 0.1) !important;
}

.highscore-card .table td,
.highscore-card .table th {
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

/* Style highscore images with glow effect instead of white border */
.highscore-card .img-thumbnail {
    border: 2px solid var(--border-color) !important;
    border-radius: 10px !important;
    box-shadow: var(--glow-shadow) !important;
    transition: all 0.3s ease !important;
    background: rgba(0, 0, 0, 0.3) !important;
}

.highscore-card .img-thumbnail:hover {
    box-shadow: 0 0 20px rgba(120, 204, 226, 0.8) !important;
    transform: scale(1.05) !important;
}

.highscore-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: var(--glow-shadow);
}

/* Discord Section - Beautiful Gaming Style */
.discord-card {
    background: linear-gradient(135deg, var(--scifi-2), var(--scifi-3));
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 3rem 2rem;
    border: 2px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0, 204, 226, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.discord-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.discord-card:hover::before {
    left: 100%;
}

.discord-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 255, 255, 0.4);
    border-color: var(--primary-color);
}

.discord-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
    height: 100%;
}

.discord-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.discord-icon {
    font-size: 5rem;
    color: #5865F2;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(88, 101, 242, 0.5));
    transition: all 0.3s ease;
}

.discord-card:hover .discord-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 30px rgba(88, 101, 242, 0.8));
}

.discord-header h4 {
    color: var(--scifi-5);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.discord-description {
    color: var(--scifi-4);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.discord-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--scifi-4);
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(0, 80, 102, 0.3);
    border-radius: 20px;
    border: 1px solid rgba(120, 204, 226, 0.3);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(0, 80, 102, 0.5);
    color: var(--scifi-5);
    transform: translateY(-2px);
}

.stat-item i {
    color: var(--primary-color);
}

/* Newsletter Section - Gaming Style */
.newsletter-section {
    background: linear-gradient(135deg, var(--scifi-1), var(--scifi-2));
    color: var(--text-primary);
    position: relative;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--glow-shadow);
}


/* Impressum Section - Gaming Style */
.impressum-section {
    position: relative;
}

.impressum-card {
    background: linear-gradient(135deg, var(--scifi-1), var(--scifi-2));
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 3rem;
    border: 2px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0, 204, 226, 0.2);
    color: var(--scifi-5);
    line-height: 1.7;
}

.impressum-card h3, .impressum-card h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--scifi-4);
}

.impressum-card p {
    margin-bottom: 1rem;
}

.impressum-card a {
    color: var(--primary-color);
    text-decoration: none;
}

.impressum-card a:hover {
    text-decoration: underline;
}

/* Footer - Gaming Style */
.footer {
    background: var(--scifi-1);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -5px 20px rgba(120, 204, 226, 0.1);
}

/* Navigation - Gaming Style */
.navbar {
    background: rgba(10, 10, 10, 0.9) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--glow-shadow);
}

.navbar-brand {
    font-weight: bold;
    text-shadow: var(--glow-shadow);
}

.nav-link {
    color: var(--text-secondary) !important;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    text-shadow: var(--glow-shadow);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        padding: 80px 0;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    .roadmap-timeline:before {
        left: 20px;
    }

    .roadmap-item {
        padding-left: 60px;
    }

    .roadmap-marker {
        left: 10px;
    }

    .feature-card {
        margin-bottom: 2rem;
    }
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--scifi-1);
}

::-webkit-scrollbar-thumb {
    background: var(--scifi-4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scifi-3);
}

/* Loading spinner */
.spinner-border {
    color: #007bff;
}

/* Button hover effects */
.btn:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Card animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card, .community-card, .highscore-card {
    animation: fadeInUp 0.6s ease-out;
}

/* TODO: Add background images for hero section */
/* TODO: Add feature showcase images/screenshots */
/* TODO: Add roadmap timeline graphics */
/* TODO: Add community platform logos */
/* TODO: Add highscore achievement badges */
/* TODO: Add Steam integration graphics */
/* TODO: Add player login section placeholder */
/* TODO: Add contact form modal */
/* TODO: Add impressum section */

/* Placeholder for future player login section */
.player-login-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    margin: 2rem 0;
}

.player-login-placeholder h3 {
    margin-bottom: 1rem;
}

.player-login-placeholder p {
    opacity: 0.9;
    font-size: 1.1rem;
}