/* Global Styles */
:root {
    --gunkle-primary: #004953;
    --gunkle-secondary: #00a8cc;
    --gunkle-accent: #ff6b6b;
    --gunkle-dark: #1a1a1a;
    --gunkle-light: #f5f5f5;
    --gunkle-white: #ffffff;
    --header-height: 64px;
}

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

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100%;
    background-color: var(--gunkle-light);
    color: var(--gunkle-dark);
}

/* Header Styles */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--gunkle-primary);
    color: var(--gunkle-white);
    z-index: 1000;
    height: var(--header-height);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2vw;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: var(--gunkle-white);
    margin-right: 16px;
}

.desktop-nav {
    display: flex;
    gap: 2vw;
    align-items: center;
}

.nav-label {
    color: var(--gunkle-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1em;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.nav-label:hover,
.nav-label.active {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    height: 40px;
}

.hamburger-line {
    width: 28px;
    height: 4px;
    background: var(--gunkle-white);
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--gunkle-primary);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mobile-nav-label {
    color: var(--gunkle-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
    padding: 12px;
    border-radius: 4px;
    transition: background 0.2s;
}

.mobile-nav-label:hover,
.mobile-nav-label.active {
    background: rgba(255, 255, 255, 0.1);
}

/* Main Content */
.main-content {
    padding-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* Home Page Styles */
.home-container {
    width: 100%;
}

.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 5vw;
    max-width: 1400px;
    margin: 0 auto;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5em;
    font-weight: 700;
    color: var(--gunkle-primary);
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5em;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.app-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.store-button {
    height: 60px;
    width: auto;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.store-button:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

/* Section Styles */
.mission-section,
.features-section,
.faq-section,
.cta-section {
    padding: 80px 5vw;
    max-width: 1400px;
    margin: 0 auto;
}

.mission-section {
    background: var(--gunkle-white);
    text-align: center;
}

.mission-section h2,
.features-section h2,
.faq-section h2,
.cta-section h2 {
    font-size: 2.5em;
    color: var(--gunkle-primary);
    margin-bottom: 32px;
    font-weight: 700;
}

.mission-section p {
    font-size: 1.3em;
    color: #666;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

/* Features Grid */
.features-section {
    background: var(--gunkle-light);
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: var(--gunkle-white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5em;
    color: var(--gunkle-primary);
    margin-bottom: 16px;
    font-weight: 600;
}

.feature-card p {
    font-size: 1.1em;
    color: #666;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    background: var(--gunkle-white);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e0e0e0;
}

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

.faq-item h3 {
    font-size: 1.5em;
    color: var(--gunkle-primary);
    margin-bottom: 16px;
    font-weight: 600;
}

.faq-item p {
    font-size: 1.2em;
    color: #666;
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    background: var(--gunkle-primary);
    color: var(--gunkle-white);
    text-align: center;
}

.cta-section h2 {
    color: var(--gunkle-white);
}

.cta-section p {
    font-size: 1.3em;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* Explore Page Styles */
.explore-container {
    padding: 80px 5vw;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.explore-container h1 {
    font-size: 3em;
    color: var(--gunkle-primary);
    margin-bottom: 60px;
    font-weight: 700;
}

.carousel-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 20px;
}

.carousel-button {
    background-color: #444;
    color: var(--gunkle-white);
    border: none;
    padding: 16px 20px;
    font-size: 1.5em;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s, transform 0.2s;
}

.carousel-button:hover {
    background-color: var(--gunkle-primary);
    transform: scale(1.1);
}

.explore-carousel-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    max-height: 500px;
    border-radius: 16px;
    object-fit: contain;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.screenshot-description {
    margin-top: 40px;
    padding: 24px;
    background-color: #333;
    border-radius: 12px;
    color: var(--gunkle-white);
    width: 100%;
    max-width: 700px;
    font-size: 1.2em;
    line-height: 1.6;
}

/* Policy Pages */
.policy-container {
    padding: 80px 5vw;
    max-width: 900px;
    margin: 0 auto;
    background: var(--gunkle-white);
}

.policy-container h1 {
    font-size: 2.5em;
    color: var(--gunkle-primary);
    margin-bottom: 16px;
    font-weight: 700;
}

.last-updated {
    font-size: 1em;
    color: #999;
    margin-bottom: 40px;
}

.policy-section {
    margin-bottom: 40px;
}

.policy-section h2 {
    font-size: 1.8em;
    color: var(--gunkle-primary);
    margin-bottom: 16px;
    font-weight: 600;
}

.policy-section p,
.policy-section li {
    font-size: 1.1em;
    color: #666;
    line-height: 1.8;
    margin-bottom: 16px;
}

.policy-section ul {
    margin-left: 24px;
    margin-bottom: 16px;
}

.policy-section a {
    color: var(--gunkle-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.policy-section a:hover {
    color: var(--gunkle-primary);
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--gunkle-dark);
    color: var(--gunkle-white);
    padding: 40px 5vw;
    margin-top: 80px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--gunkle-white);
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--gunkle-secondary);
}

.copyright {
    font-size: 1em;
    opacity: 0.8;
}

/* New Sidebar Styles */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

.nav-item {
    width: 100%;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: #374151;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
}

.nav-link:hover {
    background: #f3f4f6;
    color: #111827;
}

.nav-link .icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.btn-signin {
    background: #667eea;
    color: white !important;
}

.btn-signin:hover {
    background: #5568d3;
}

.user-info {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
}

.sign-out-link {
    font-size: 12px;
    color: #6b7280;
    text-decoration: none;
}

.sign-out-link:hover {
    color: #374151;
    text-decoration: underline;
}

@media (prefers-color-scheme: dark) {
    .nav-link {
        color: #e5e7eb;
    }

    .nav-link:hover {
        background: #374151;
        color: #f9fafb;
    }

    .user-info {
        border-top-color: #374151;
    }

    .user-name {
        color: #f9fafb;
    }

    .sign-out-link {
        color: #9ca3af;
    }

    .sign-out-link:hover {
        color: #d1d5db;
    }
}

/* Responsive Design */
@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 60px 5vw;
    }

    .hero-title {
        font-size: 2.5em;
    }

    .hero-subtitle {
        font-size: 1.2em;
    }

    .app-buttons {
        justify-content: center;
    }

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

    .explore-carousel-image {
        max-width: 500px;
        max-height: 350px;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2em;
    }

    .hero-subtitle {
        font-size: 1.1em;
    }

    .store-button {
        height: 50px;
    }

    .mission-section h2,
    .features-section h2,
    .faq-section h2,
    .cta-section h2 {
        font-size: 2em;
    }

    .explore-carousel-image {
        max-width: 95vw;
        max-height: 300px;
    }

    .carousel-button {
        padding: 12px 16px;
        font-size: 1.2em;
    }

    .policy-container h1 {
        font-size: 2em;
    }

    .policy-section h2 {
        font-size: 1.5em;
    }
}

/* Blazor Error UI */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1001;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}