/* Space Kube Games - Static Site Styles */

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #0f3460;
    --highlight-color: #e94560;
    --text-color: #eaeaea;
    --text-muted: #a0a0a0;
    --link-color: #4da8da;
    --font-heading: 'Comfortaa', 'Segoe UI', sans-serif;
    --font-body: 'Roboto', 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Header & Navigation */
header {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo:hover {
    color: var(--highlight-color);
}

.logo-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav a:hover,
nav a.active {
    background-color: var(--highlight-color);
    color: white;
}

/* Games dropdown menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a.dropdown-toggle::after {
    content: " \25BE";
    font-size: 0.8em;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    list-style: none;
    background: var(--secondary-color);
    border-radius: 6px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    padding: 0.4rem 0;
    z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu li {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.6rem 1.25rem;
    border-radius: 0;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .nav-dropdown-menu {
        position: static;
        min-width: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(15, 52, 96, 0.75), rgba(26, 26, 46, 0.85)),
                url('../images/top-banner.png') center/cover repeat-x;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
}

.hero-with-icon {
    flex-direction: column;
}

.hero-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

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

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

section {
    margin-bottom: 3rem;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    color: var(--text-color);
}

h2 {
    font-size: 2rem;
    color: var(--highlight-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--link-color);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--highlight-color);
    text-decoration: underline;
}

/* Cards / Game Tiles */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--secondary-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(233, 69, 96, 0.2);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.game-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.card:hover .game-icon {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.card-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--highlight-color);
    color: white;
}

.btn-primary:hover {
    background: #c73e54;
    text-decoration: none;
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--link-color);
    border: 2px solid var(--link-color);
}

.btn-secondary:hover {
    background: var(--link-color);
    color: white;
    text-decoration: none;
}

/* Store Badges */
.store-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.store-badge {
    height: 50px;
    transition: transform 0.3s ease;
}

.store-badge:hover {
    transform: scale(1.05);
}

/* Features List */
.features-list {
    list-style: none;
    margin: 1.5rem 0;
}

.features-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid var(--accent-color);
}

.features-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--highlight-color);
    font-weight: bold;
}

/* Privacy Policy Specific */
.policy-content {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.policy-content h3 {
    margin-top: 2rem;
}

.policy-content h3:first-child {
    margin-top: 0;
}

.policy-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.policy-content li {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: var(--secondary-color);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--accent-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
}

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

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    main {
        padding: 2rem 1rem;
    }

    .store-badges {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .hero {
        min-height: 50vh;
        padding: 2rem 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}
