/**
 * Homepage V8 Styles
 * AutavCesku.cz - Redesign homepage
 */

/* ===== HERO V8 ===== */
.hero-v8 {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 60px 0 80px;
}
.hero-v8 .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-v8 .hero-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 100px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin: 0 0 20px 0 !important;
    border: none !important;
    box-shadow: none !important;
}
.hero-v8 h1 {
    font-size: clamp(32px, 4vw, 46px) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    color: #0f172a !important;
}
.hero-v8 h1 .highlight {
    color: #2563eb !important;
}
.hero-v8 .hero-subtitle {
    font-size: 18px !important;
    color: #64748b !important;
    margin: 0 0 32px 0 !important;
    padding: 0 !important;
    max-width: 500px;
}

/* ===== SEARCH BOX ===== */
.hero-v8 .hero-search,
.hero-v8 .hero-search:focus-within,
.hero-v8 .hero-search:focus,
.hero-v8 .hero-search:active {
    background: white !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1) !important;
    border: 1px solid #e2e8f0 !important;
    margin: 0 !important;
    outline: none !important;
}
.hero-v8 .search-tabs {
    display: flex !important;
    gap: 8px !important;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    flex-wrap: wrap;
    justify-content: flex-start;
    list-style: none !important;
}
.hero-v8 .search-tab {
    padding: 10px 18px !important;
    border: none !important;
    background: #f1f5f9 !important;
    color: #64748b !important;
    border-radius: 8px !important;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
    margin: 0 !important;
    box-shadow: none !important;
}
.hero-v8 .search-tab:hover {
    background: #e2e8f0 !important;
}
.hero-v8 .search-tab.active {
    background: #2563eb !important;
    color: white !important;
}
.hero-v8 .search-input-group,
.hero-v8 .search-input-group:focus-within {
    display: flex !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}
.hero-v8 .search-input {
    flex: 1;
    padding: 14px 18px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-size: 15px;
    transition: border-color 0.2s;
    background: white !important;
    box-shadow: none !important;
    margin: 0 !important;
}
.hero-v8 .search-input:focus {
    outline: none !important;
    border-color: #2563eb !important;
    box-shadow: none !important;
}
.hero-v8 .btn-search {
    padding: 14px 28px !important;
    background: #2563eb !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: none !important;
    margin: 0 !important;
}
.hero-v8 .btn-search:hover {
    background: #1d4ed8 !important;
}

/* ===== QUESTION BOX ===== */
.question-box {
    background: #f8fafc;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #e2e8f0;
}
.question-box-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 24px;
}
.question-list {
    list-style: none;
    padding: 0;
    margin: 0;
    min-height: 232px;
    overflow: hidden;
}
.question-list li {
    padding: 14px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 15px;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.question-list li:last-child {
    border-bottom: none;
}
.question-list li::before {
    content: '→';
    color: #2563eb;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}
.question-list li .question-text {
    flex: 1;
    min-height: 1.4em;
}

/* Hero Stats */
.hero-v8 .hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}
.hero-v8 .hero-stat {
    text-align: center;
}
.hero-v8 .hero-stat strong {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
}
.hero-v8 .hero-stat span {
    color: #64748b;
    font-size: 13px;
}

/* ===== USP SECTION ===== */
.usp-section {
    background: #0f172a;
    color: white;
    padding: 48px 0;
}
.usp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.usp-item {
    text-align: center;
    padding: 24px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}
.usp-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}
.usp-item strong {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
    color: #3b82f6;
}
.usp-item p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
    margin: 0;
}

/* ===== KILLER FEATURES ===== */
.killer-section {
    padding: 100px 0;
    background: white;
}
.killer-section .section-header {
    text-align: center;
    margin-bottom: 64px;
}
.section-badge {
    display: inline-block;
    background: #dbeafe;
    color: #2563eb;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}
.killer-grid {
    display: grid;
    gap: 32px;
}
.killer-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 48px;
    background: #f8fafc;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
}
.killer-card.reverse {
    direction: rtl;
}
.killer-card.reverse > * {
    direction: ltr;
}
.killer-card.featured {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    border: none;
}
.killer-card.featured .killer-badge {
    background: rgba(255,255,255,0.2);
    color: white;
}
.killer-card.featured .killer-text p {
    color: rgba(255,255,255,0.8);
}
.killer-badge {
    display: inline-block;
    background: #dcfce7;
    color: #16a34a;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.killer-text h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #0f172a;
}
.killer-card.featured .killer-text h3 {
    color: white;
}
.killer-text p {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.7;
}
.killer-example {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.killer-card.featured .killer-example {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    box-shadow: none;
}
.example-header {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.killer-card.featured .example-header {
    color: rgba(255,255,255,0.6);
}

/* Flow diagram */
.flow-diagram {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.flow-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #2563eb;
}
.killer-card.featured .flow-step {
    background: rgba(255,255,255,0.15);
    border-left-color: #3b82f6;
}
.flow-step-icon {
    font-size: 20px;
}
.flow-step-label {
    font-weight: 600;
    font-size: 14px;
}
.flow-step-badge {
    margin-left: auto;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}
.badge-dealer { background: #dbeafe; color: #1d4ed8; }
.badge-leasing { background: #fef3c7; color: #92400e; }
.badge-firma { background: #dcfce7; color: #16a34a; }
.badge-bazar { background: #fce7f3; color: #be185d; }
.badge-soukroma { background: #f3e8ff; color: #7c3aed; }
.badge-vy { background: #2563eb; color: white; }

/* Gantt chart */
.gantt-preview {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
}
.killer-card.featured .gantt-preview {
    background: rgba(255,255,255,0.1);
}
.gantt-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}
.gantt-label {
    width: 80px;
    font-size: 12px;
    color: #64748b;
}
.killer-card.featured .gantt-label {
    color: rgba(255,255,255,0.7);
}
.gantt-bar-container {
    flex: 1;
    height: 24px;
    background: #e2e8f0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}
.killer-card.featured .gantt-bar-container {
    background: rgba(255,255,255,0.2);
}
.gantt-bar {
    position: absolute;
    height: 100%;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding-left: 8px;
    font-size: 10px;
    font-weight: 600;
    color: white;
}
.gantt-bar.skoda { background: #2563eb; left: 0; width: 25%; }
.gantt-bar.octavia { background: #10b981; left: 15%; width: 35%; }
.gantt-bar.fabia { background: #f59e0b; left: 40%; width: 30%; }
.gantt-bar.superb { background: #8b5cf6; left: 60%; width: 40%; }

/* Example stats */
.example-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.example-stat {
    text-align: center;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
}
.killer-card.featured .example-stat {
    background: rgba(255,255,255,0.1);
}
.example-stat strong {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #2563eb;
}
.killer-card.featured .example-stat strong {
    color: #3b82f6;
}
.example-stat span {
    font-size: 12px;
    color: #64748b;
}
.killer-card.featured .example-stat span {
    color: rgba(255,255,255,0.6);
}

/* ===== USE CASES ===== */
.usecase-section {
    padding: 100px 0;
    background: #f8fafc;
}
.usecase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.usecase-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}
.usecase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}
.usecase-icon {
    width: 56px;
    height: 56px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}
.usecase-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0f172a;
}
.usecase-card p {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 20px;
}
.usecase-features {
    list-style: none;
    padding: 0;
    margin: 0;
}
.usecase-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #334155;
    margin-bottom: 8px;
}
.usecase-features li::before {
    content: '✓';
    color: #10b981;
    font-weight: 700;
}

/* ===== SOCIAL PROOF ===== */
.proof-section {
    padding: 80px 0;
    background: #0f172a;
    color: white;
}
.proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    text-align: center;
}
.proof-item strong {
    display: block;
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.proof-item span {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

/* ===== PRICING V8 ===== */
.pricing-section-v8 {
    padding: 100px 0;
    background: white;
}
.pricing-grid-v8 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.pricing-card-v8 {
    background: #f8fafc;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    border: 1px solid #e2e8f0;
}
.pricing-card-v8.featured {
    background: #0f172a;
    color: white;
    border: none;
}
.pricing-card-v8.featured h3 {
    color: white !important;
    text-align: center !important;
}
.pricing-card-v8.featured .pricing-price-v8 {
    color: white !important;
    text-align: center !important;
}
.pricing-card-v8.featured .pricing-price-v8 span {
    color: rgba(255,255,255,0.6) !important;
}
.pricing-card-v8.featured .pricing-features-v8 li {
    color: rgba(255,255,255,0.8) !important;
    font-size: 14px !important;
}
.pricing-popular-v8 {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #f59e0b;
    color: white;
    padding: 6px 20px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
}
.pricing-card-v8 h3 {
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    text-align: center !important;
}
.pricing-price-v8 {
    font-size: 48px !important;
    font-weight: 800 !important;
    margin-bottom: 24px !important;
    text-align: center !important;
}
.pricing-price-v8 span {
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #64748b !important;
}
.pricing-features-v8 {
    list-style: none !important;
    margin-bottom: 32px !important;
    padding: 0 !important;
}
.pricing-features-v8 li {
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(128,128,128,0.1) !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}
.pricing-features-v8 li::before {
    content: '✓' !important;
    color: #10b981 !important;
    font-weight: 700 !important;
    flex-shrink: 0 !important;
}
.btn-pricing {
    display: block !important;
    width: 100% !important;
    padding: 16px !important;
    text-align: center !important;
    text-decoration: none !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    transition: all 0.2s !important;
}
.btn-pricing.primary {
    background: #2563eb;
    color: white;
}
.btn-pricing.primary:hover {
    background: #1d4ed8;
}
.btn-pricing.outline {
    background: transparent;
    border: 2px solid #cbd5e1;
    color: #334155;
}
.pricing-card-v8.featured .btn-pricing.outline {
    border-color: rgba(255,255,255,0.3);
    color: white;
}

/* ===== CTA V8 ===== */
.cta-section-v8 {
    padding: 100px 0;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    text-align: center;
}
.cta-section-v8 h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 16px;
    color: white;
}
.cta-section-v8 p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    color: white;
}
.btn-cta {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    background: white;
    color: #2563eb;
    transition: all 0.2s;
}
.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ===== FAQ V8 ===== */
.faq-section-v8 {
    padding: 80px 0;
    background: white;
}
.faq-grid-v8 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}
.faq-item-v8 {
    background: #f8fafc;
    border-radius: 16px;
    padding: 32px 28px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}
.faq-item-v8:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.faq-icon-v8 {
    font-size: 40px;
    display: block;
    margin-bottom: 16px;
}
.faq-question-v8 {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}
.faq-answer-v8 {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
}
.faq-link-v8 {
    display: block;
    text-align: center;
    margin-top: 32px;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
}
.faq-link-v8:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .usp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 900px) {
    .hero-v8 .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .question-box {
        order: 1;
    }
    .question-list {
        min-height: 280px;
    }
    .killer-card {
        grid-template-columns: 1fr;
        padding: 32px;
    }
    .killer-card.reverse {
        direction: ltr;
    }
    .hero-v8 .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .proof-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .faq-grid-v8 {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .usp-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .hero-v8 .search-input-group {
        flex-direction: column;
    }
    .hero-v8 .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .proof-grid {
        grid-template-columns: 1fr 1fr;
    }
}
