/* src/main/resources/static/css/material-theme.css */

/* CSS Variables */
:root {
    /* Colors */
    --primary-color: #17153B;  /* Updated primary color for nav */
    --primary-light: #2d2a5f;  /* Lighter shade of primary */
    --primary-dark: #0d0b24;   /* Darker shade of primary */
    --surface-color: #ffffff;
    --background-color: #f5f7fa;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --accent-color: #ff4081;

    /* Typography */
    --font-primary: 'Lexend Deca', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --spacing-unit: 8px;
    --container-width: 1000px;

    /* Shadows */
    --shadow-small: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-large: 0 10px 15px rgba(0,0,0,0.1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--background-color);
    min-height: 100vh;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem;
}

/* Header & Navigation */
.header {
    background: var(--primary-color);  /* Using solid color instead of gradient */
    padding: 1rem 0;
    box-shadow: var(--shadow-small);
    margin-bottom: 2rem;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
}

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

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Content Layout */
.content-section {
    padding: 2rem;
    margin: 0 auto;
    max-width: var(--container-width);
}

/* Terms of Service Styling */
.terms-container {
    background: var(--surface-color);
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-small);
}

.terms-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.terms-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.terms-section {
    margin-top: 2rem;
}

.terms-section h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.page-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Lists */
.terms-list {
    list-style: none;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.terms-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.terms-list li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

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

/* Utility Classes */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.bg-primary { background-color: var(--primary-color); }
.bg-surface { background-color: var(--surface-color); }

.mt-1 { margin-top: calc(var(--spacing-unit)); }
.mt-2 { margin-top: calc(var(--spacing-unit) * 2); }
.mt-4 { margin-top: calc(var(--spacing-unit) * 4); }
.mb-1 { margin-bottom: calc(var(--spacing-unit)); }
.mb-2 { margin-bottom: calc(var(--spacing-unit) * 2); }
.mb-4 { margin-bottom: calc(var(--spacing-unit) * 4); }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .terms-container {
        padding: 1.5rem;
    }

    .nav-list {
        gap: 1rem;
    }

    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-list {
        gap: 0.5rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* Navigation Styles */
.header {
    background: var(--primary-color);
    padding: 1rem 0;
    box-shadow: var(--shadow-small);
    margin-bottom: 2rem;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    font-weight: 500;
    text-decoration: none;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: white;
    transition: all 0.3s;
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background: var(--primary-color);
    padding: 2rem;
    transition: right 0.3s ease;
    z-index: 1000;
}

.nav-menu.active {
    right: 0;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    margin-top: 3rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: block;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.close-menu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}

.overlay.active {
    display: block;
}

/* Content Container */
.content-wrapper {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 0;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

.floating-phone {
    max-width: 300px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* App Store Buttons */
.app-store-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.store-button img {
    height: 40px;
    transition: transform 0.2s ease;
}

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

/* Features Section */
.section {
    padding: 4rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

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

.section-subtitle {
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}


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

.feature-card {
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-small);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

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

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 600;
}

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

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-small);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    color: var(--text-secondary);
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: var(--background-color);
    padding: 4rem 0;
}

.cta-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 0;
    }

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

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

    .floating-phone {
        max-width: 250px;
        margin-top: 2rem;
    }

    .section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Store Buttons */
.app-store-buttons {
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.store-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #000;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.store-button:hover {
    transform: translateY(-2px);
}

.store-icon {
    width: 24px;
    height: 24px;
}

.store-button span {
    font-size: 0.8rem;
    line-height: 1.2;
}

.store-button strong {
    font-size: 1.1rem;
}

/* Phone Mockup */
.phone-mockup {
    width: 280px;
    height: 560px;
    background: #000;
    border-radius: 36px;
    position: relative;
    padding: 8px;
    animation: float 6s ease-in-out infinite;
}

.phone-screen {
    background: var(--primary-color);
    width: 100%;
    height: 100%;
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-screen img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(50%); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .phone-mockup {
        width: 220px;
        height: 440px;
    }

    .store-button {
        padding: 6px 12px;
    }

    .store-icon {
        width: 20px;
        height: 20px;
    }
}

/* Language switcher */

.language-switch {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.language-switch .nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-switch .nav-link::before {
    content: '🌐';
    font-size: 1.2em;
}