/* PixelHost - Moderni valkoinen */
:root {
    --white: #ffffff;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-light: #60a5fa;
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.navbar .logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--accent);
    background: rgba(59, 130, 246, 0.08);
}

.nav-links a.active {
    color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-btn {
    position: relative;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.cart-btn:hover {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
}

.lang-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

/* Hero */
.hero {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--white);
    border-radius: 24px;
    margin-bottom: 3rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -1px;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

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

.btn-outline:hover {
    background: var(--accent);
    color: white;
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin: 3rem 0 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Game Selection - Modern Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.game-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    border: 2px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
}

.game-card:hover::before {
    opacity: 1;
}

.game-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    box-shadow: var(--shadow-lg);
}

.game-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.game-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.game-image {
    width: 100%;
    height: 140px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.game-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.game-price {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.game-price span {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
}

.game-btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.game-card:hover .game-btn {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Features Section */
.features-section {
    margin-top: 4rem;
    padding: 3rem 0;
}

.features-section .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    text-align: center;
}

.product-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.product-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.product-card .category {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    margin: 1.5rem 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.specs {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
}

.specs li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.specs li:last-child {
    border-bottom: none;
}

.buy-now {
    background: var(--gradient);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    border: none;
}

.buy-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

/* Cart */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    height: 100vh;
    background: var(--white);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
    border-radius: 24px 0 0 24px;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.cart-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-cart:hover {
    background: var(--bg-light);
}

.cart-items {
    margin-bottom: 1.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.cart-item-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cart-item-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.2rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cart-item-remove:hover {
    background: #fef2f2;
}

.cart-total {
    padding: 1.5rem 0;
    border-top: 2px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1999;
    display: none;
    backdrop-filter: blur(4px);
}

.cart-overlay.open {
    display: block;
}

.page-header {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.back-btn {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.back-btn:hover {
    text-decoration: underline;
}

/* News */
.news-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.news-date {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.news-card h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.news-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.team-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.team-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.team-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3.5rem;
    color: white;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.team-card h3 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.team-card .role {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-card .bio {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.contact-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.contact-card h3 {
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.contact-card p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

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

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.checkout-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: var(--white);
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
}

.checkout-container h1 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

.order-summary {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.order-summary h3 {
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.order-total {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent);
}

.terms {
    margin: 1.5rem 0;
}

.terms label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.terms input[type="checkbox"] {
    width: auto;
}

.terms a {
    color: var(--accent);
}

/* Footer */
.footer {
    background: var(--text-primary);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-section p, .footer-section li {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .cart-sidebar {
        width: 100%;
    }
}