/* Seishin Theme Base Styles */
:root {
    --bg-color: #0f0f0f;
    --card-bg: #1a1a2e;
    --primary: #e94560;
    --text: #eaeaea;
    --text-muted: #a0a0a0;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg-color);
    color: var(--text);
    line-height: 1.6;
}

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

/* Header */
.site-header {
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--primary);
}

.lang-switcher a {
    text-decoration: none;
    color: var(--text-muted);
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

.lang-switcher a.active {
    color: var(--primary);
    font-weight: bold;
}

/* Hero */
.hero-section {
    padding: 6rem 0;
    text-align: center;
    background: radial-gradient(circle at center, rgba(233, 69, 96, 0.1) 0%, transparent 70%);
}

.hero-content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-content 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;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

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

.app-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.app-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    margin-bottom: 1rem;
    object-fit: cover;
}

.app-card h3 {
    margin: 0 0 0.5rem 0;
    font-family: 'Outfit', sans-serif;
}

.app-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    height: 3em;
    overflow: hidden;
}

/* App Detail Layout */
.app-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

/* Footer */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--text-muted);
    margin-top: 1rem;
    display: inline-block;
}

/* --- RESPONSIVE DESIGN --- */

/* Tablet & Mobile (max-width: 1024px) */
@media (max-width: 1024px) {
    .app-grid-layout {
        grid-template-columns: 1fr;
        /* Stack layout on smaller screens */
        gap: 2rem;
    }

    .app-sidebar {
        order: -1;
        /* Move download buttons to top on mobile */
    }

    .download-card {
        position: static;
        /* Remove sticky on mobile */
    }
}

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

    .main-nav ul {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero-section {
        padding: 4rem 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .app-header-content {
        flex-direction: column;
        text-align: center;
        padding: 2rem 0;
    }

    .app-header-content img {
        margin-bottom: 1rem;
    }

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