/* 
* Literate Chinese Flashcards Website Styles
* Using color scheme from the app
*/

/* Color Variables */
:root {
    /* Tab-specific colors */
    --profile-color: #66bb66;    /* More vibrant green for tab */
    --lists-color: #fd986b;      /* Orange */
    --study-color: #ffd46c;      /* Yellow */
    --settings-color: #60ccf4;   /* Blue */

    /* Core UI Colors */
    --primary: #60ccf4;         /* New blue */
    --success: #99dd99;         /* Soft green (for progress bars, charts) */
    --action-success: #66bb66;  /* More vibrant green for buttons */
    --error: #FF6B6B;           /* Soft red */
    
    /* Potential Semantic Colors */
    --warning: #FFC107;         /* Soft yellow - for warnings/cautions */
    --info: #9C27B0;            /* Purple - for tips/information */
    --review: #FF9800;          /* Orange - for review indicators */

    /* Neutral colors */
    --text: #000000;
    --text-secondary: #666666;
    --background: #FFFFFF;
    --surface: #FFFFFF;
    --border: #EEEEEE;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--action-success);
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 80px 0;
}

/* Header Styles */
header {
    background-color: var(--background);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.app-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: contain;
}

.app-icon-small {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav ul li a {
    color: var(--text-secondary);
    font-weight: 600;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    padding: 100px 0 80px;
    background: linear-gradient(145deg, rgba(96, 204, 244, 0.1) 0%, rgba(102, 187, 102, 0.1) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.cta-buttons, .download-buttons {
    display: flex;
    gap: 20px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.app-store-link img {
    width: 220px;
    height: auto;
}

.play-store-link img {
    height: 73px;
    width: auto;
}

.phone-mockup {
    position: relative;
    max-width: 280px;
    margin: 0 auto;
    border-radius: 30px;
    background-color: var(--background);
    box-shadow: none;
    padding: 0;
    border: 10px solid #333;
    overflow: hidden;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.screenshot-placeholder {
    height: 500px;
    background-color: var(--primary);
    border-radius: 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.screenshot-placeholder .character {
    font-size: 6rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.screenshot-placeholder p {
    font-size: 1.2rem;
    margin: 0;
}

/* Features Section */
.features {
    background-color: var(--background);
    text-align: center;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 30px;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

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

/* Download Section */
.download {
    background: linear-gradient(145deg, rgba(253, 152, 107, 0.1) 0%, rgba(255, 212, 108, 0.1) 100%);
    text-align: center;
}

.download h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--lists-color);
}

.download p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-secondary);
}

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

/* About Section */
.about {
    background-color: var(--background);
    text-align: center;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text);
}

.about p {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    color: var(--text-secondary);
}

/* Footer */
footer {
    background-color: #f8f9fa;
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo p {
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-secondary);
}

.footer-contact p {
    margin-bottom: 10px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 60px 0 40px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .cta-buttons, .download-buttons {
        justify-content: center;
    }
    
    .phone-mockup {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero {
        padding: 30px 0 20px;
    }
    
    .features h2, .download h2, .about h2 {
        font-size: 2rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons, .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .app-store-link, .play-store-link {
        width: 100%;
        max-width: 220px;
        text-align: center;
    }
    
    .app-store-link img, .play-store-link img {
        width: 100%;
        height: auto;
        max-width: 220px;
    }

    /* Reorder hero section for mobile */
    .hero .container {
        display: flex;
        flex-direction: column-reverse;
    }
    
    .hero-image {
        margin-bottom: 20px;
    }
    
    .phone-mockup {
        max-width: 260px;
        height: 520px;
    }
}

@media (max-width: 576px) {
    header .container {
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }
    
    .logo h1 {
        font-size: 1.1rem;
    }
    
    .app-icon {
        width: 40px;
        height: 40px;
    }
    
    nav ul {
        gap: 10px;
    }
    
    nav ul li a {
        font-size: 0.9rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .app-store-link, .play-store-link {
        max-width: 200px;
    }
    
    .app-store-link img, .play-store-link img {
        max-width: 200px;
    }
    
    .hero {
        padding: 20px 0 15px;
    }
    
    .phone-mockup {
        max-width: 240px;
        height: 480px;
    }
}

/* Policy Pages (Privacy/Terms) */
.policy {
    padding: 120px 0 80px;
    background-color: var(--background);
}

.policy h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.last-updated {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 2rem;
}

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

.policy-content h2 {
    color: var(--text);
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.policy-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.policy-content ul {
    margin-bottom: 1.5rem;
    margin-left: 2rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.policy-content ul li {
    margin-bottom: 0.7rem;
}

.policy-content strong {
    color: var(--text);
} 