/**
 * QuickIn Website - Main Stylesheet
 * Version: 2.0 (i18n support)
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
    --primary-blue: #4A90E2;
    --secondary-green: #96C9B5;
    --dark-text: #2C3E50;
    --light-text: #6B7280;
    --white: #FFFFFF;
    --light-bg: #F9FAFB;
    --border: #E5E7EB;
    --warning-bg: #FFF3CD;
    --warning-border: #FFC107;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background: linear-gradient(135deg,
        rgba(74, 144, 226, 0.08) 0%,
        rgba(150, 201, 181, 0.08) 100%);
    min-height: 100vh;
}

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

/* ==========================================================================
   Language Switcher
   ========================================================================== */

#lang-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 5px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9em;
    color: var(--light-text);
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: var(--light-bg);
    color: var(--dark-text);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-green));
    color: var(--white);
}

/* ==========================================================================
   Header
   ========================================================================== */

header {
    background: linear-gradient(135deg,
        rgba(74, 144, 226, 0.8) 0%,
        rgba(150, 201, 181, 0.8) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.logo {
    width: 120px;
    height: 120px;
    background: var(--white);
    border-radius: 26px;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.logo img,
.logo svg {
    width: 100%;
    height: 100%;
}

h1 {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tagline {
    font-size: 1.4em;
    font-weight: 300;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Badges */
.badges {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.95em;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Main Content
   ========================================================================== */

main {
    padding: 60px 0;
}

section {
    margin-bottom: 80px;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-blue);
}

h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

/* ==========================================================================
   Features Grid
   ========================================================================== */

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

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(74, 144, 226, 0.15);
}

.feature-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.feature-card h4 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.feature-card p {
    color: var(--light-text);
    line-height: 1.6;
}

/* ==========================================================================
   Use Cases
   ========================================================================== */

.use-cases {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.use-case {
    margin-bottom: 30px;
}

.use-case h4 {
    font-size: 1.4em;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.use-case ul {
    list-style: none;
    padding-left: 0;
}

.use-case li {
    padding: 8px 0 8px 30px;
    position: relative;
    color: var(--light-text);
}

.use-case li:before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--secondary-green);
    font-weight: bold;
    font-size: 1.2em;
}

.warning-box {
    background: var(--warning-bg);
    border-left: 4px solid var(--warning-border);
    padding: 20px;
    margin-top: 30px;
    border-radius: 8px;
}

.warning-faq-link {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-green));
    color: var(--white);
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.warning-faq-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing-section {
    text-align: center;
}

.pricing-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 50px auto 0;
}

.pricing-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(74, 144, 226, 0.2);
}

.pricing-card.recommended {
    border: 3px solid var(--primary-blue);
}

.pricing-card.recommended::before {
    content: attr(data-recommended);
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-green));
    color: var(--white);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}

.plan-name {
    font-size: 1.8em;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 15px;
}

.plan-price {
    font-size: 3em;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.plan-price .currency {
    font-size: 0.5em;
    vertical-align: super;
}

.plan-period {
    color: var(--light-text);
    font-size: 1.1em;
    margin-bottom: 30px;
}

.plan-features {
    text-align: left;
    margin-bottom: 30px;
    list-style: none;
}

.plan-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--dark-text);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li.feature-disabled {
    color: var(--light-text);
    text-decoration: line-through;
    opacity: 0.5;
}

.plan-features .feature-subtext {
    font-size: 0.9em;
    color: var(--light-text);
    display: block;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-green));
    color: var(--white);
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.cta-button.secondary {
    background: linear-gradient(135deg, #6B7280, #9CA3AF);
}

.plan-note {
    margin-top: 15px;
    font-size: 0.9em;
    color: var(--light-text);
}

/* ==========================================================================
   Download Section
   ========================================================================== */

.download-section {
    text-align: center;
    background: var(--white);
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.download-section h2 {
    margin-bottom: 20px;
}

.download-section p {
    font-size: 1.2em;
    color: var(--light-text);
    margin-bottom: 30px;
}

.app-store-badge {
    display: inline-block;
    transition: transform 0.3s ease;
}

.app-store-badge:hover {
    transform: scale(1.05);
}

.app-store-badge img {
    height: 60px;
}

.requirements {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.requirements p {
    font-size: 0.95em;
    color: var(--light-text);
    margin-bottom: 5px;
}

.faq-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.faq-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    background: var(--dark-text);
    color: rgba(255, 255, 255, 0.8);
    padding: 40px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   FAQ Page Specific
   ========================================================================== */

.faq-header {
    padding: 40px 0;
}

.faq-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--white);
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: background 0.3s ease;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.3);
}

#loading {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.2em;
    color: var(--light-text);
}

.faq-section {
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.section-title {
    font-size: 2em;
    color: var(--primary-blue);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-blue);
}

.section-icon {
    margin-right: 10px;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1em;
    color: var(--dark-text);
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--light-bg);
}

.faq-question-text {
    flex: 1;
}

.faq-question::after {
    content: "\25BC";
    font-size: 0.8em;
    margin-left: 15px;
    transition: transform 0.3s ease;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.faq-question.active::after {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 25px;
    color: var(--light-text);
}

.faq-answer.active {
    max-height: 2000px;
    padding: 0 25px 20px 25px;
}

.faq-answer p {
    margin-bottom: 10px;
    white-space: pre-line;
}

.faq-answer strong {
    color: var(--dark-text);
}

.faq-answer ul {
    list-style: none;
    padding-left: 0;
    margin: 10px 0;
}

.faq-answer li {
    padding: 5px 0 5px 25px;
    position: relative;
}

.faq-answer li:before {
    content: "\2022";
    position: absolute;
    left: 10px;
    color: var(--secondary-green);
    font-weight: bold;
}

.faq-answer a {
    color: var(--primary-blue);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* FAQ Badges */
.badge-free {
    background: linear-gradient(135deg, #6B7280, #9CA3AF);
    color: var(--white);
}

.badge-standard {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-green));
    color: var(--white);
}

.faq-question .badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    margin-left: 10px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    .tagline {
        font-size: 1.1em;
    }

    h2 {
        font-size: 2em;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .use-cases {
        padding: 30px 20px;
    }

    #lang-switcher {
        top: 10px;
        right: 10px;
    }

    .lang-btn {
        padding: 6px 12px;
        font-size: 0.85em;
    }

    .faq-header h1 {
        font-size: 2em;
    }

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

    .faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

    .faq-question .badge {
        margin-left: 5px;
        padding: 3px 8px;
        font-size: 0.75em;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .pricing-cards {
        gap: 30px;
        padding: 0 20px;
    }
}
