/* ==========================================================================
   QRflex Website Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, #f9fafb, #ffffff);
    color: #111827;
    line-height: 1.6;
}

main {
    flex: 1;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 50;
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0ea5e9;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: none;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #0ea5e9;
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.lang-link {
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    color: #6b7280;
}

.lang-link:hover {
    background: #f3f4f6;
}

.lang-link--active {
    background: #0ea5e9;
    color: white;
}

.lang-link--active:hover {
    background: #0ea5e9;
}

.btn-login {
    background: #0ea5e9;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-login:hover {
    background: #0284c7;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: #111827;
    color: #9ca3af;
    padding: 3rem 0;
    margin-top: 4rem;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-brand-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
}

.footer-description {
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-heading {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: white;
}

.footer-copyright {
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Sections (Common)
   -------------------------------------------------------------------------- */
.section {
    padding: 4rem 0;
}

.section--hero {
    padding: 3rem 0 2rem;
}

.section--widget {
    padding: 0 0 4rem;
}

.section--white {
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #111827;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* --------------------------------------------------------------------------
   Widget Loading
   -------------------------------------------------------------------------- */
.widget-container {
    min-height: 600px;
}

.widget-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    background: #f9fafb;
    border-radius: 1rem;
}

.widget-loading-inner {
    text-align: center;
    color: #6b7280;
}

.widget-spinner {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

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

.feature-card {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    background: #e0f2fe;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111827;
}

.feature-desc {
    color: #6b7280;
    font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111827;
}

.cta-desc {
    color: #6b7280;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    display: inline-block;
    background: #0ea5e9;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: background 0.2s;
}

.btn-cta:hover {
    background: #0284c7;
}

/* --------------------------------------------------------------------------
   Pricing Page
   -------------------------------------------------------------------------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
}

.pricing-card--featured {
    border: 2px solid #0ea5e9;
    transform: scale(1.02);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #0ea5e9;
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.pricing-price-container {
    margin-bottom: 1.5rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: #111827;
}

.pricing-period {
    color: #6b7280;
}

.pricing-limit {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #374151;
}

.btn-plan {
    display: block;
    text-align: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    background: #f3f4f6;
    color: #374151;
}

.btn-plan:hover {
    background: #e5e7eb;
}

.btn-plan--featured {
    background: #0ea5e9;
    color: white;
}

.btn-plan--featured:hover {
    background: #0284c7;
}

/* --------------------------------------------------------------------------
   FAQ Section
   -------------------------------------------------------------------------- */
.faq-container {
    max-width: 700px;
    margin: 4rem auto 0;
}

.faq-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: #111827;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
}

.faq-question {
    font-weight: 600;
    color: #111827;
    cursor: pointer;
}

.faq-answer {
    margin-top: 0.75rem;
    color: #6b7280;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   About Page
   -------------------------------------------------------------------------- */
.about-container {
    max-width: 800px;
}

.about-section {
    margin-bottom: 3rem;
}

.about-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.about-text {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-text:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Offer List (About Page)
   -------------------------------------------------------------------------- */
.offer-list {
    display: grid;
    gap: 1.5rem;
}

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

.offer-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: #e0f2fe;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-title {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.offer-desc {
    color: #6b7280;
    font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Contact CTA Box
   -------------------------------------------------------------------------- */
.contact-box {
    background: #f9fafb;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.contact-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.contact-text {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.btn-contact {
    display: inline-block;
    background: #0ea5e9;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-contact:hover {
    background: #0284c7;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.text-center {
    text-align: center;
}
