/*
 * QTable - Main Stylesheet
 * Developed by InsightTech Bilişim Sanayi ve Ticaret A.Ş.
 */

/* ========== Variables ========== */
:root {
    --qt-primary: #E63946;
    --qt-secondary: #1D3557;
    --qt-accent: #F1FAEE;
    --qt-light: #A8DADC;
    --qt-dark: #457B9D;
}

/* ========== Base ========== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333;
}

/* ========== Landing Page ========== */

/* Navbar */
.landing-page #mainNav {
    background: transparent;
    transition: all 0.3s ease;
    padding: 15px 0;
}

.landing-page #mainNav.scrolled {
    background: var(--qt-secondary) !important;
    padding: 8px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Hero */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--qt-secondary) 0%, #0d1f3c 100%);
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: var(--qt-primary);
    border-radius: 50%;
    opacity: 0.1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: var(--qt-light);
    border-radius: 50%;
    opacity: 0.08;
}

.text-gradient {
    background: linear-gradient(135deg, var(--qt-primary), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Phone Mockup */
.phone-mockup {
    width: 280px;
    margin: 0 auto;
    background: #1a1a2e;
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #1a1a2e;
    border-radius: 0 0 15px 15px;
    z-index: 10;
}

.phone-screen {
    background: white;
    border-radius: 24px;
    min-height: 400px;
    overflow: hidden;
}

.menu-preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9em;
    color: #333;
}

.menu-preview-item:last-child {
    border-bottom: none;
}

/* Features */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    font-size: 1.5rem;
}

/* Steps */
.step-number {
    width: 60px;
    height: 60px;
    background: var(--qt-primary);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Pricing */
.pricing-card {
    border-radius: 12px;
    transition: transform 0.3s ease;
}

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

.pricing-featured {
    border: 2px solid var(--qt-primary) !important;
    position: relative;
}

/* ========== Menu Page (QR) ========== */
.menu-page {
    background: #f8f9fa;
}

.menu-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.menu-item-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 12px;
}

.menu-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
}

/* ========== Admin Panel ========== */
.admin-panel {
    background: #f4f6f9;
    min-height: 100vh;
}

.admin-panel .card {
    border-radius: 12px;
}

/* ========== Forms ========== */
.form-control,
.form-select {
    border-radius: 8px;
    padding: 10px 14px;
    border: 1px solid #dee2e6;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--qt-primary);
    box-shadow: 0 0 0 0.2rem rgba(230, 57, 70, 0.15);
}

/* ========== Buttons ========== */
.btn-primary {
    background: var(--qt-primary);
    border-color: var(--qt-primary);
}

.btn-primary:hover {
    background: #cf2f3d;
    border-color: #cf2f3d;
}

.btn-outline-primary {
    color: var(--qt-primary);
    border-color: var(--qt-primary);
}

.btn-outline-primary:hover {
    background: var(--qt-primary);
    border-color: var(--qt-primary);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 80px;
        text-align: center;
    }

    .hero-section .d-flex.gap-3 {
        justify-content: center;
    }

    .hero-section .d-flex.gap-4 {
        justify-content: center;
    }

    .phone-mockup {
        width: 240px;
    }

    .phone-screen {
        min-height: 320px;
    }
}

/* ========== Trust Strip ========== */
.trust-strip {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    padding: 20px 0;
}

.trust-strip-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #adb5bd;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.trust-logos {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    align-items: center;
}

.trust-logo-item {
    font-size: 0.82rem;
    font-weight: 700;
    color: #adb5bd;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

/* ========== Features Section ========== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

@media (max-width: 992px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .feature-grid { grid-template-columns: 1fr; }
}

.feature-card-v2 {
    background: #fff;
    border-radius: 12px;
    padding: 24px 20px;
    border: 1px solid #f0f0f0;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
    border-color: transparent;
}

.feature-icon-v2 {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.feature-card-v2 h6 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.feature-card-v2 p {
    font-size: 0.8rem;
    color: #8892a4;
    line-height: 1.5;
    margin: 0;
}

/* ========== Steps ========== */
.steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

.steps-row::before {
    content: '';
    position: absolute;
    top: 30px;
    left: calc(16.66% + 20px);
    right: calc(16.66% + 20px);
    height: 2px;
    background: linear-gradient(to right, var(--qt-primary), transparent);
    opacity: 0.25;
}

@media (max-width: 768px) {
    .steps-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .steps-row::before { display: none; }
}

.step-item {
    text-align: center;
}

.step-badge {
    display: inline-flex;
    width: 56px;
    height: 56px;
    background: var(--qt-primary);
    color: #fff;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 16px;
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.3);
}

/* ========== Single Pricing Card ========== */
.pricing-single {
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,.12);
    overflow: hidden;
    border: 2px solid var(--qt-primary);
    position: relative;
}

.pricing-single-header {
    background: linear-gradient(135deg, var(--qt-secondary) 0%, #0d1f3c 100%);
    padding: 32px 36px 28px;
    text-align: center;
    color: #fff;
}

.pricing-single-header .plan-badge {
    display: inline-block;
    background: var(--qt-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.pricing-single-header .price-amount {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
}

.pricing-single-header .price-period {
    font-size: 0.95rem;
    color: rgba(255,255,255,.65);
    margin-top: 4px;
}

.pricing-single-body {
    padding: 28px 36px 32px;
}

.pricing-checklist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 24px;
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

@media (max-width: 576px) {
    .pricing-checklist { grid-template-columns: 1fr; }
    .pricing-single-body, .pricing-single-header { padding-left: 24px; padding-right: 24px; }
}

.pricing-checklist li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #334155;
    font-weight: 500;
}

.pricing-checklist li i {
    color: #22c55e;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.pricing-perks {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
    margin-top: 4px;
}

.pricing-perk {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
}

.pricing-perk i {
    color: var(--qt-primary);
    font-size: 0.82rem;
}

/* ========== FAQ ========== */
.faq-section .accordion-button {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1a1a2e;
    background: #fff;
}

.faq-section .accordion-button:not(.collapsed) {
    color: var(--qt-primary);
    background: #fff5f5;
    box-shadow: none;
}

.faq-section .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23E63946'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.faq-section .accordion-item {
    border: 1px solid #f0f0f0;
    border-radius: 12px !important;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-section .accordion-body {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.65;
}

/* ========== CTA Banner ========== */
.cta-banner {
    background: linear-gradient(135deg, var(--qt-secondary) 0%, #0d1f3c 100%);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -10%;
    width: 480px;
    height: 480px;
    background: var(--qt-primary);
    border-radius: 50%;
    opacity: 0.08;
}

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -70%;
    left: -5%;
    width: 320px;
    height: 320px;
    background: var(--qt-light);
    border-radius: 50%;
    opacity: 0.07;
}

/* ========== Contact Cards ========== */
.contact-card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    color: #fff;
    transition: background 0.2s;
}

.contact-card:hover {
    background: rgba(255,255,255,.12);
}

.contact-card i {
    font-size: 1.6rem;
    margin-bottom: 10px;
    display: block;
    opacity: 0.85;
}

.contact-card h6 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,.5);
    margin-bottom: 6px;
}

.contact-card a, .contact-card p {
    font-size: 0.85rem;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    margin: 0;
    line-height: 1.45;
}

/* ========== Footer ========== */
.site-footer {
    background: #0a0f1e;
    color: rgba(255,255,255,.55);
}

.site-footer .footer-brand {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}

.site-footer a {
    color: rgba(255,255,255,.45);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.15s;
}

.site-footer a:hover {
    color: rgba(255,255,255,.8);
}

/* ========== Navbar CTA ========== */
.nav-cta-start {
    background: var(--qt-primary);
    border-color: var(--qt-primary);
    color: #fff !important;
    border-radius: 8px !important;
    padding: 7px 18px !important;
    font-weight: 600;
    font-size: 0.82rem;
}

.nav-cta-start:hover {
    background: #cf2f3d !important;
    border-color: #cf2f3d !important;
}
