/*
Theme Name: KaupunkiRP Teema
Author: Sinun Nimesi
Description: KaupunkiRP-sivuston pohjalta luotu kustomoitu WordPress-teema.
Version: 1.0
*/

/* --- CSS-MUUTTUJAT JA YLEISET TYYLIT --- */
:root {
    --primary-color: #FF7700;
    --dark-bg: #111111;
    --card-bg: #1a1a1a;
    --text-light: #f0f0f0;
    --text-gray: #aaaaaa;
    --border-color: #2a2a2a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
}

/* --- APULUOKAT --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 40px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

section {
    padding: 100px 0;
}

/* --- PAINIKKEET --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-light);
    background-color: var(--primary-color);
    border-radius: 5px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 119, 0, 0.2);
}

/* --- NAVIGAATIO --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-light);
    text-decoration: none;
}

.nav-logo span {
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--text-light);
    cursor: pointer;
}

/* --- HERO-OSIO --- */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(17, 17, 17, 0.7), rgba(17, 17, 17, 1)), url('https://images.unsplash.com/photo-1593481190533-31f018d9e2b4?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
}

.hero-logo {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1;
}

.hero-logo span {
    color: var(--primary-color);
}

.hero-slogan {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text-gray);
    font-weight: 400;
}

/* --- TIETOA MEISTÄ --- */
#about .container {
    display: flex;
    gap: 50px;
    align-items: center;
}

#about-text {
    flex: 1;
}

#about-image {
    flex: 1;
    max-width: 500px;
}

#about-image img {
    width: 100%;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

/* --- OMINAISUUDET --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease-in-out;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.feature-card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-gray);
}

/* --- LIITY MUKAAN --- */
#join {
    background-color: var(--card-bg);
    text-align: center;
}

#join p {
    max-width: 600px;
    margin: 0 auto 30px auto;
    color: var(--text-gray);
}

/* --- FOOTER --- */
footer {
    background-color: var(--dark-bg);
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.social-links {
    margin-bottom: 20px;
}

.social-links a {
    color: var(--text-gray);
    font-size: 1.5rem;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-info, .copyright {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-info a {
    color: var(--text-light);
    text-decoration: none;
}

.copyright {
    margin-top: 10px;
}

/* --- ANIMAATIOT SCROLLAUKSESSA --- */
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-in-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIIVISUUS --- */
@media (max-width: 768px) {
    h2 {
        font-size: 2.2rem;
    }

    .menu-toggle {
        display: block;
        z-index: 1001; /* Varmista, että on päällimmäisenä */
    }
    
    .nav-links {
        position: fixed;
        top: 0; /* Aseta ylös */
        left: -100%;
        width: 100%;
        height: 100vh; /* Koko näytön korkeus */
        background-color: var(--dark-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: left 0.3s ease-in-out;
        padding-top: 85px; /* Tilaa yläreunaan */
    }
    
    .nav-links.active {
        left: 0;
    }
    
    #hero {
        height: 80vh;
    }

    .hero-logo {
        font-size: 3.5rem;
    }
    
    .hero-slogan {
        font-size: 1.2rem;
    }

    #about .container {
        flex-direction: column;
    }
}