/**
 * Homepage layout — panels, stats band, activity cards, CTA
 * Brand green #8BC34A; complements sections-flat.css
 */

.ts-homepage .categories-section,
.ts-homepage .how-it-works,
.ts-homepage .premium-mechanics-section,
.ts-homepage .recent-requests,
.ts-homepage .recent-offers-section,
.ts-homepage .trust-indicators-section {
    padding: 2.5rem 0;
}

.ts-homepage .section-title {
    margin-bottom: 1.25rem;
}

.ts-homepage .section-title h2 {
    font-size: 1.625rem;
    margin-bottom: 0.35rem;
}

.ts-homepage .section-title p {
    font-size: 0.9375rem;
    color: var(--text-muted, #6c757d);
    margin-bottom: 0;
}

/* Shared panel */
.home-panel {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
}

@media (min-width: 768px) {
    .home-panel {
        padding: 2rem 1.75rem;
    }
}

/* Stats band (after hero) */
.home-stats-band {
    background: linear-gradient(90deg, rgba(139, 195, 74, 0.08) 0%, rgba(76, 175, 80, 0.06) 100%);
    border-top: 1px solid rgba(139, 195, 74, 0.15);
    border-bottom: 1px solid rgba(139, 195, 74, 0.15);
    padding: 0.875rem 0;
}

.home-stats-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2.5rem;
}

.home-stat-item {
    text-align: center;
    min-width: 5rem;
}

.home-stat-item strong {
    display: block;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--primary, #8BC34A);
    line-height: 1.2;
}

.home-stat-item span {
    font-size: 0.8125rem;
    color: var(--text-muted, #6c757d);
}

/* Popular chips in hero */
.home-popular-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.home-popular-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-right: 0.25rem;
}

.home-popular-chip {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    font-size: 0.8125rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.home-popular-chip:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
}

/* KPU strip */
.home-kpu-strip {
    padding: 0.75rem 0;
    background: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.home-kpu-strip-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    font-size: 0.875rem;
}

.home-kpu-strip-inner strong {
    display: block;
    color: var(--text-dark, #212529);
    margin-bottom: 0.15rem;
}

.home-kpu-strip-inner span {
    color: var(--text-muted, #6c757d);
}

.home-kpu-link {
    font-weight: 600;
    color: var(--primary, #8BC34A);
    text-decoration: none;
    white-space: nowrap;
}

.home-kpu-link:hover {
    color: var(--secondary, #4CAF50);
}

/* Category cards */
.home-category-card {
    text-align: center;
    padding: 1rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 10px;
    background: #fafafa;
    cursor: pointer;
    height: 100%;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.home-category-card:hover {
    border-color: rgba(139, 195, 74, 0.45);
    background: rgba(139, 195, 74, 0.04);
}

.home-category-card .category-icon-armut {
    margin-bottom: 0.5rem;
}

.home-category-card h6 {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Step cards */
.home-step-card {
    padding: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    background: #fafafa;
    height: 100%;
}

.home-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--primary, #8BC34A);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.home-step-card h4 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.home-step-card p {
    font-size: 0.875rem;
    color: var(--text-muted, #6c757d);
    margin-bottom: 0;
}

/* Tech cards */
.home-tech-card {
    display: block;
    text-align: center;
    padding: 1.25rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    position: relative;
    height: 100%;
    transition: border-color 0.15s ease;
}

.home-tech-card:hover {
    border-color: rgba(139, 195, 74, 0.45);
    color: inherit;
}

.home-tech-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    color: var(--accent, #FF9800);
    font-size: 0.875rem;
}

.home-tech-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #8BC34A, #4CAF50);
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.65rem;
}

.home-tech-card h5 {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.home-tech-card small {
    color: var(--text-muted, #6c757d);
    font-size: 0.8125rem;
}

/* Activity cards */
.home-activity-card {
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 10px;
    background: #fafafa;
}

.home-activity-chip {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: rgba(139, 195, 74, 0.12);
    color: #558B2F;
}

.home-offer-price {
    font-weight: 700;
    color: var(--primary, #8BC34A);
    white-space: nowrap;
    font-size: 0.9375rem;
}

/* Trust grid */
.home-panel-trust {
    background: linear-gradient(180deg, #fff 0%, rgba(139, 195, 74, 0.04) 100%);
}

.home-trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .home-trust-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.home-trust-item {
    text-align: center;
    padding: 0.75rem 0.5rem;
}

.home-trust-item i {
    font-size: 1.5rem;
    color: var(--primary, #8BC34A);
    margin-bottom: 0.5rem;
}

.home-trust-item h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.35rem;
}

.home-trust-item p {
    font-size: 0.8125rem;
    color: var(--text-muted, #6c757d);
    margin-bottom: 0;
}

/* Bottom CTA */
.home-cta-band {
    padding: 2.5rem 0 3rem;
}

.home-cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(139, 195, 74, 0.12) 0%, rgba(76, 175, 80, 0.08) 100%);
    border: 1px solid rgba(139, 195, 74, 0.2);
}

.home-cta-inner h2 {
    font-size: 1.375rem;
    margin-bottom: 0.35rem;
}

.home-cta-inner p {
    font-size: 0.9375rem;
    color: var(--text-muted, #6c757d);
    margin-bottom: 0;
}

@media (max-width: 575px) {
    .home-cta-inner {
        text-align: center;
        justify-content: center;
    }

    .home-cta-inner .btn {
        width: 100%;
    }
}
