/* Main page styles - for index.html and index-cs.html */

/* Override container for main pages */
.container {
    max-width: 1200px;
}

/* Navigation */
nav {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--primary-color);
}

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

nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

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

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

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

/* Language Switcher */
.lang-switch {
    background: var(--dark-bg);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -25%;
    left: -25%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 214, 0, 0.3) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
}

#features,
#screenshots,
#guide,
.about-origin,
.download-section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero .container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-icon {
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(255, 214, 0, 0.3);
}

.hero-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

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

/* New classes for inline styles conversion */
.hero-slogan {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.screenshots-intro,
.download-intro {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.svg-icon-inline {
    vertical-align: middle;
    margin-right: 8px;
}

.link-primary {
    color: var(--primary-color);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--darker-bg);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 20px rgba(255, 214, 0, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 214, 0, 0.6);
}

/* Section */
section {
    padding: 4rem 2rem;
}

section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* About Origin Section */
.about-origin .container {
    max-width: 800px;
}

.about-origin p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

/* Town Hall Photo */
.town-hall-photo {
    margin: 2.5rem 0;
    text-align: center;
}

.town-hall-photo img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(255, 214, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.town-hall-photo img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(255, 214, 0, 0.3);
}

.town-hall-photo figcaption {
    margin-top: 1rem;
    color: var(--text-gray);
    font-size: 0.95rem;
    font-style: italic;
}

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

.feature-card {
    background: var(--dark-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 214, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 214, 0, 0.2);
}

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

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.feature-card p {
    color: var(--text-gray);
}

/* User Guide Section */
.guide-section {
    background: var(--dark-bg);
}

.guide-content {
    max-width: 800px;
    margin: 0 auto;
}

.guide-item {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 214, 0, 0.1);
}

.guide-item:last-child {
    border-bottom: none;
}

.guide-item h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.guide-item h4 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--secondary-color);
}

.guide-item p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.guide-item ul {
    margin-left: 2rem;
    color: var(--text-gray);
}

.guide-item ul li {
    margin-bottom: 0.5rem;
}

.guide-item code {
    background: var(--darker-bg);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    color: var(--secondary-color);
    font-family: 'Courier New', monospace;
}

/* Download Section */
.download-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    text-align: center;
}

.download-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--darker-bg);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: bold;
}

.badge:hover {
    background: var(--primary-color);
    color: var(--darker-bg);
}

/* Screenshots Section */
.screenshots-section {
    background: var(--darker-bg);
}

.screenshots-container {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 2rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--dark-bg);
}

.screenshots-container::-webkit-scrollbar {
    height: 8px;
}

.screenshots-container::-webkit-scrollbar-track {
    background: var(--dark-bg);
    border-radius: 10px;
}

.screenshots-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.screenshot-item {
    flex: 0 0 auto;
    scroll-snap-align: center;
    text-align: center;
}

.screenshot-item img {
    height: 500px;
    width: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
}

.screenshot-item img:hover {
    transform: scale(1.05);
}

.screenshot-caption {
    margin-top: 1rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 968px) {
    nav .container {
        flex-wrap: wrap;
    }

    nav .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0;
        text-align: center;
    }

    nav .nav-links.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .lang-switch {
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }

    .hero {
        padding: 3rem 1rem;
    }

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

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

    .hero p.slogan {
        font-size: 1.2rem;
    }

    .hero-icon {
        width: 120px;
        height: 120px;
    }

    section {
        padding: 3rem 1rem;
    }

    section h2 {
        font-size: 1.75rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .screenshot-item img {
        height: 350px;
    }

    .guide-item h3 {
        font-size: 1.5rem;
    }

    .guide-item h4 {
        font-size: 1.1rem;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

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

    section h2 {
        font-size: 1.5rem;
    }

    .screenshot-item img {
        height: 300px;
    }

    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

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

    nav .logo {
        font-size: 1.25rem;
    }
}
