/* Sambhota Tutor - Styles */
/* Open Education Resource for Tibetan Script Learning */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Tibetan:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #8B4513;
    --primary-dark: #5D2E0C;
    --primary-light: #D4A574;
    --accent-color: #C9302C;
    --accent-light: #E67E7A;
    --bg-color: #FFF8F0;
    --bg-light: #FFFFFF;
    --text-color: #2C1810;
    --text-light: #6B5344;
    --border-color: #E8DDD4;
    --shadow-color: rgba(139, 69, 19, 0.1);
    --gradient-start: #FFF8F0;
    --gradient-end: #FFE8D4;
    --tibetan-font: 'Noto Sans Tibetan', 'Jomolhari', serif;
    --heading-font: 'Inter', sans-serif;
    --body-font: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--text-color);
    min-height: 100vh;
    line-height: 1.6;
}

/* Navigation */
nav {
    background: var(--bg-light);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-family: var(--tibetan-font);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-tibetan {
    font-family: var(--tibetan-font);
    font-size: 2rem;
}

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

.nav-links a {
    font-family: var(--heading-font);
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-light);
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px var(--shadow-color);
}

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

.hero .tibetan-title {
    font-family: var(--tibetan-font);
    font-size: 3.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--heading-font);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-light);
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-family: var(--heading-font);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-header .tibetan-subtitle {
    font-family: var(--tibetan-font);
    font-size: 1.8rem;
    color: var(--text-light);
}

/* Alphabet Grid */
.alphabet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.letter-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow-color);
    text-decoration: none;
    color: inherit;
}

.letter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
    border: 2px solid var(--primary-light);
}

.letter-card .tibetan {
    font-family: var(--tibetan-font);
    font-size: 3rem;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.letter-card .romanization {
    font-family: var(--body-font);
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Numbers Grid */
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.number-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.number-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.number-card .tibetan-number {
    font-family: var(--tibetan-font);
    font-size: 3.5rem;
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.5rem;
}

.number-card .value {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 600;
}

.number-card .tibetan-word {
    font-family: var(--tibetan-font);
    font-size: 1.2rem;
    color: var(--text-light);
    margin-top: 0.3rem;
}

.number-card .pronunciation {
    font-family: var(--body-font);
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

/* Letter Detail Page */
.letter-detail {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 4px 20px var(--shadow-color);
    max-width: 800px;
    margin: 0 auto;
}

.letter-display {
    text-align: center;
    margin-bottom: 2rem;
}

.letter-display .main-letter {
    font-family: var(--tibetan-font);
    font-size: 8rem;
    color: var(--primary-color);
    line-height: 1.2;
}

.letter-display .romanization {
    font-family: var(--heading-font);
    font-size: 2rem;
    color: var(--text-light);
    font-weight: 500;
}

.letter-info {
    display: grid;
    gap: 1.5rem;
}

.info-item {
    background: var(--gradient-start);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.info-item h3 {
    font-family: var(--heading-font);
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item p {
    font-size: 1.1rem;
    color: var(--text-color);
}

.info-item .tibetan-example {
    font-family: var(--tibetan-font);
    font-size: 1.5rem;
    color: var(--primary-dark);
}

/* Navigation between letters */
.letter-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.letter-nav a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.letter-nav a:hover {
    background: var(--primary-light);
}

.letter-nav a.disabled {
    opacity: 0.3;
    pointer-events: none;
}

.letter-nav .nav-letter {
    font-family: var(--tibetan-font);
    font-size: 1.5rem;
}

/* Progress Bar */
.progress-container {
    background: var(--border-color);
    border-radius: 10px;
    height: 8px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Vowels Section */
.vowels-section {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.vowels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.vowel-card {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid var(--border-color);
}

.vowel-card .tibetan-vowel {
    font-family: var(--tibetan-font);
    font-size: 3rem;
    color: var(--accent-color);
}

.vowel-card .romanization {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0.5rem 0;
}

.vowel-card .description {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* AI Tutor Chat */
.ai-tutor {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.chat-container {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 1rem;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--gradient-start);
}

.message {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 12px;
    max-width: 80%;
}

.message.user {
    background: var(--primary-color);
    color: white;
    margin-left: auto;
}

.message.assistant {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
}

.chat-input-container {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.chat-input-container input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--body-font);
    font-size: 1rem;
}

.chat-input-container input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.chat-input-container button {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: var(--heading-font);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.chat-input-container button:hover {
    background: var(--primary-dark);
}

/* Settings Modal */
.settings-toggle {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.settings-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--body-font);
    color: var(--text-light);
    transition: all 0.3s ease;
}

.settings-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.api-settings {
    background: var(--gradient-start);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
}

.api-settings.show {
    display: block;
}

.api-settings label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.api-settings input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--body-font);
}

.api-settings small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-light);
}

.api-settings a {
    color: var(--primary-color);
}

/* About Page */
.about-content {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.about-content h1 {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.about-content .tibetan-title {
    font-family: var(--tibetan-font);
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.about-content h2 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

.about-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-content ul {
    margin: 1rem 0 1rem 2rem;
}

.about-content li {
    margin-bottom: 0.5rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 10px var(--shadow-color);
    transition: transform 0.3s ease;
}

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

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

.feature-card h3 {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Tab Navigation */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    font-family: var(--heading-font);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

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

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

    .alphabet-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .letter-detail {
        padding: 1.5rem;
    }

    .letter-display .main-letter {
        font-size: 5rem;
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Loading State */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Settings Icon in Nav */
.settings-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 8px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.settings-icon:hover,
.settings-icon.active {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Setup Section - AI Tutor Page */
.setup-section {
    margin-bottom: 2rem;
}

.setup-card {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px var(--shadow-color);
    position: relative;
}

.setup-badge {
    position: absolute;
    top: -12px;
    left: 2rem;
    background: var(--accent-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.setup-card h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0.5rem 0 1rem;
}

.setup-card > p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* API Key Status */
.api-key-status {
    margin-bottom: 1.5rem;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.status-indicator.not-configured {
    background: #FEF3C7;
    color: #92400E;
}

.status-indicator.configured {
    background: #D1FAE5;
    color: #065F46;
}

.remove-key-btn {
    background: none;
    border: none;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    margin-left: 0.5rem;
    font-size: 0.85rem;
}

/* Setup Steps */
.setup-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

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

.step-content {
    flex: 1;
}

.step-content strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.step-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* API Input Group */
.api-input-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.api-input-group input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--body-font);
    font-size: 1rem;
}

.api-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.api-key-feedback {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.api-key-feedback .success {
    color: #065F46;
}

.api-key-feedback .error {
    color: #DC2626;
}

/* Chat Section - Enhanced */
.chat-section {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 4px 20px var(--shadow-color);
    overflow: hidden;
}

.chat-section .chat-container {
    border: none;
    border-radius: 0;
    margin-top: 0;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--primary-color);
    color: white;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.clear-chat-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    color: white;
    transition: background 0.3s ease;
}

.clear-chat-btn:hover {
    background: rgba(255,255,255,0.3);
}

.chat-section .chat-messages {
    height: 350px;
}

.message-content {
    line-height: 1.6;
}

.message-content ul {
    margin: 0.5rem 0 0 1rem;
}

.chat-section .chat-input-container {
    padding: 1rem;
}

.chat-section .chat-input-container input {
    flex: 1;
    padding: 0.875rem 1rem;
}

.chat-section .chat-input-container button {
    padding: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-section .chat-input-container button:disabled {
    background: var(--border-color);
    cursor: not-allowed;
}

.chat-disabled-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #FEF3C7;
    color: #92400E;
    font-size: 0.9rem;
}

/* Loading Dots Animation */
.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Example Questions */
.examples-section {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.examples-section h3 {
    font-family: var(--heading-font);
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.example-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.example-btn {
    background: var(--gradient-start);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: var(--body-font);
    font-size: 0.9rem;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.example-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

/* Instructions Page */
.instructions-content {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.instructions-content h1 {
    font-family: var(--heading-font);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.instructions-content .tibetan-title {
    font-family: var(--tibetan-font);
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.info-banner {
    display: flex;
    gap: 1rem;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.info-banner svg {
    flex-shrink: 0;
    color: #3B82F6;
}

.info-banner strong {
    display: block;
    color: #1E40AF;
    margin-bottom: 0.25rem;
}

.info-banner p {
    color: #1E3A8A;
    margin: 0;
    font-size: 0.95rem;
}

.instruction-section {
    margin-bottom: 2rem;
}

.instruction-section h2 {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.instruction-card {
    background: var(--gradient-start);
    border-radius: 12px;
    padding: 1.5rem;
}

.instruction-card .note {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.step-visual {
    margin: 1.5rem 0;
}

.visual-box {
    background: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.visual-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.fake-button {
    display: inline-block;
    background: #4285F4;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
}

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

.option {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
}

.option.recommended {
    border-color: var(--primary-color);
}

.option-badge {
    position: absolute;
    top: -10px;
    left: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.2rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.option h4 {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.option p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.info-note {
    background: #FEF3C7;
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.9rem;
    color: #92400E;
}

.key-example {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

.key-example code {
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--primary-color);
    word-break: break-all;
}

.key-example .key-note {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.warning-note {
    display: flex;
    gap: 1rem;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.warning-note svg {
    flex-shrink: 0;
    color: #DC2626;
}

.warning-note strong {
    display: block;
    color: #991B1B;
    margin-bottom: 0.25rem;
}

.warning-note p {
    color: #7F1D1D;
    margin: 0;
    font-size: 0.9rem;
}

.final-step {
    text-align: center;
    margin: 1.5rem 0;
}

.faq-section {
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.faq-section h2 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h4 {
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

.help-section {
    background: var(--gradient-start);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.help-section h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.help-section ul {
    margin: 0.75rem 0 0 1.5rem;
}

.help-section a {
    color: var(--primary-color);
}

/* Settings Page */
.settings-container {
    max-width: 700px;
    margin: 0 auto;
}

.settings-section {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.settings-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--heading-font);
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.settings-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.settings-item {
    margin-top: 1rem;
}

.settings-item label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.input-with-button {
    display: flex;
    gap: 0.5rem;
}

.input-with-button input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--body-font);
    font-size: 1rem;
}

.input-with-button input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.toggle-visibility {
    background: var(--gradient-start);
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-light);
}

.toggle-visibility:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.settings-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-danger {
    background: #DC2626;
    color: white;
}

.btn-danger:hover {
    background: #B91C1C;
}

.settings-help {
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

.settings-help a {
    color: var(--primary-color);
}

.settings-feedback {
    margin-top: 1rem;
}

.settings-feedback .success {
    color: #065F46;
    background: #D1FAE5;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
}

.settings-feedback .error {
    color: #DC2626;
    background: #FEE2E2;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
}

/* Responsive adjustments for new pages */
@media (max-width: 768px) {
    .setup-card {
        padding: 1.5rem;
    }

    .api-input-group {
        flex-direction: column;
    }

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

    .instructions-content {
        padding: 1.5rem;
    }

    .instructions-content h1 {
        font-size: 1.5rem;
    }

    .info-banner {
        flex-direction: column;
    }

    .settings-section {
        padding: 1.25rem;
    }

    .settings-actions {
        flex-direction: column;
    }
}
