/**
 * Main Stylesheet - KimonoKat.net
 * Purple & Pink Theme with Dark/Light Mode
 */

:root {
    /* Light Mode Colors */
    --primary-purple: #667eea;
    --primary-pink: #f093fb;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --shadow: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    /* Dark Mode Colors */
    --primary-purple: #764ba2;
    --primary-pink: #f093fb;
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --text-primary: #eaeaea;
    --text-secondary: #b0b0b0;
    --border-color: #2d3748;
    --shadow: rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.main-nav {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-pink) 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navigation container already has flex styles above */

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-pink) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
}

/* Live Badge */
.live-badge {
    display: inline-block;
    background: #ff0000;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    animation: pulse 2s infinite;
}

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

/* Home Page */
.page-home {
    text-align: center;
}

.hero {
    padding: 3rem 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.live-indicator {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Gallery */
.page-gallery {
    text-align: center;
}

.page-gallery h1 {
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    justify-items: center;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--shadow);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.videos-section {
    margin-top: 4rem;
    text-align: center;
}

.videos-section h2 {
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    justify-items: center;
}

.video-item {
    width: 100%;
    max-width: 600px;
}

.video-item iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
}

/* Twitch Page */
.page-twitch {
    text-align: center;
}

.page-twitch h1 {
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stream-live,
.stream-offline {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.stream-info {
    margin-bottom: 1.5rem;
}

.stream-info h2 {
    margin: 1rem 0;
    color: var(--text-primary);
}

.game-name {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.twitch-embed-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 2rem auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow);
}

.twitch-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
}

.stream-info {
    text-align: center;
    margin-bottom: 2rem;
}

.stream-info h2 {
    margin: 1rem 0;
    color: var(--text-primary);
}

.game-name {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.stream-actions {
    text-align: center;
    margin-top: 2rem;
}

.stream-offline {
    text-align: center;
    padding: 3rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.offline-message {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* About Page */
.page-about {
    text-align: center;
}

.page-about h1 {
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
    align-items: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.profile-image-container {
    text-align: center;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 6px var(--shadow);
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    text-align: left;
    max-width: 600px;
}

/* 404 Page */
.page-404 {
    text-align: center;
    padding: 4rem 0;
}

.page-404 h1 {
    font-size: 6rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Maintenance Page */
.page-maintenance {
    padding: 4rem 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maintenance-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: var(--bg-secondary);
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow);
}

.maintenance-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.maintenance-message {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 10px;
    border-left: 4px solid var(--primary-purple);
}

.maintenance-note {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    font-style: italic;
}

.no-content {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* Footer */
.main-footer {
    background-color: var(--bg-secondary);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

.main-footer p {
    margin: 0.5rem 0;
}

.admin-link {
    margin-top: 1rem;
}

.admin-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-pink) 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.admin-btn:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow);
}

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

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

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        flex-direction: column;
    }

    .about-text {
        text-align: center;
    }

    .twitch-embed-container {
        margin: 1rem 0;
    }

    .about-content {
        flex-direction: column;
    }

    .about-text {
        text-align: center;
    }

    .profile-image {
        max-width: 200px;
    }

    .twitch-embed-container {
        margin: 1rem 0;
    }
}
