/* static/slots_homepage/css/homepage.css */

/* =============================================================================
   СТИЛИ ГЛАВНОЙ СТРАНИЦЫ SLOT NADZOR - ОБНОВЛЕННАЯ ВЕРСИЯ
============================================================================= */

/* Hero секция - точно как на дизайне */
.hero {
    background: linear-gradient(135deg, #5A4FCF 0%, #6366F1 50%, #7C3AED 100%);
    color: var(--white);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero__content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    line-height: 1.1;
}

.hero__subtitle {
    font-size: 1.25rem;
    margin-bottom: 4rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Статистические карточки - точно как на дизайне */
.hero__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.stat-card__number {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.75rem;
    display: block;
}

.stat-card__label {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.3;
    font-weight: 500;
}

/* CTA кнопки - точно как на дизайне */
.hero__cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn__icon {
    font-size: 1.1rem;
    line-height: 1;
}

.btn--primary {
    background: var(--white);
    color: #5A4FCF;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn--primary:hover {
    background: var(--gray-50);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
    color: #5A4FCF;
}

.btn--secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn--secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
    color: var(--white);
    transform: translateY(-3px);
}

.btn--small {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* Секция поиска */
.search-section {
    background: #f8fafc;
    padding: 3rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.search-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    align-items: center;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1.1rem;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #5A4FCF;
    box-shadow: 0 0 0 3px rgba(90, 79, 207, 0.1);
}

.search-filters-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-filters-btn:hover {
    border-color: #5A4FCF;
    color: #5A4FCF;
}

.filter-icon {
    font-size: 1.1rem;
}

/* Общие стили секций */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-link {
    color: #5A4FCF;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.section-link:hover {
    color: #4338CA;
}

/* Live индикатор */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ef4444;
    font-weight: 600;
}

.live-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Секция последних проверок */
.latest-checks {
    background: var(--white);
    padding: 4rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.checks-feed {
    display: grid;
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #5A4FCF;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.check-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    background: white;
}

.check-item__status {
    font-size: 1.5rem;
    line-height: 1;
    min-width: 32px;
    text-align: center;
}

.check-item__content {
    flex: 1;
    min-width: 0;
}

.check-item__info {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.check-item__meta {
    font-size: 0.9rem;
    color: #64748b;
}

/* Секция провайдеров */
.featured-providers {
    background: #f8fafc;
    padding: 4rem 0;
}

.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.provider-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.provider-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.provider-card__header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.provider-card__logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    background: #f1f5f9;
}

.provider-card__logo-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, #5A4FCF, #7C3AED);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.5rem;
}

.provider-card__name {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
    line-height: 1.2;
}

.provider-card__stats {
    margin-bottom: 1.5rem;
}

.provider-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.provider-stat:last-child {
    border-bottom: none;
}

.provider-stat__label {
    color: #64748b;
    font-size: 0.9rem;
}

.provider-stat__value {
    font-weight: 600;
    color: var(--gray-900);
}

.provider-card__status {
    margin-bottom: 1.5rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge--verified {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.provider-card__footer {
    display: flex;
    justify-content: flex-end;
}

/* Секция API статуса */
.api-status {
    background: var(--white);
    padding: 4rem 0;
    border-top: 1px solid #e2e8f0;
}

.status-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #5A4FCF;
    transition: all 0.3s ease;
}

.status-item:hover {
    background: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.status-item__indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-item__indicator--operational {
    background: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

.status-item__content {
    flex: 1;
    min-width: 0;
}

.status-item__label {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.375rem;
}

.status-item__value {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 1.05rem;
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .hero__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .providers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 0 2.5rem;
        min-height: 60vh;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1.125rem;
        margin-bottom: 3rem;
    }

    .hero__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        margin-bottom: 3rem;
    }

    .stat-card {
        padding: 1.5rem 1rem;
    }

    .stat-card__number {
        font-size: 2.25rem;
    }

    .stat-card__label {
        font-size: 0.85rem;
    }

    .hero__cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .search-filters-btn {
        justify-content: center;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .section-title {
        font-size: 1.625rem;
    }

    .providers-grid {
        grid-template-columns: 1fr;
    }

    .status-dashboard {
        grid-template-columns: 1fr;
    }

    .check-item {
        padding: 1.25rem;
    }

    .latest-checks,
    .featured-providers,
    .api-status {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }

    .hero__stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card__number {
        font-size: 2rem;
    }

    .stat-card__label {
        font-size: 0.8rem;
    }

    .provider-card {
        padding: 1.5rem;
    }

    .provider-card__header {
        gap: 1rem;
    }

    .provider-card__logo,
    .provider-card__logo-placeholder {
        width: 48px;
        height: 48px;
    }

    .provider-card__name {
        font-size: 1.25rem;
    }
}

/* Добавить в static/slots_homepage/css/homepage.css */

/* =============================================================================
   СЕКЦИЯ "О НАШЕМ ПОДХОДЕ"
============================================================================= */

.about-approach {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.about-approach::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(90, 79, 207, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.approach-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.approach-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2rem;
    position: relative;
}

.approach-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #5A4FCF, #7C3AED);
    border-radius: 2px;
}

.approach-description {
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 2.5rem;
}

.approach-description p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.approach-lead {
    font-size: 1.2rem !important;
    color: var(--gray-800);
    font-weight: 500;
}

.approach-lead strong {
    color: #5A4FCF;
    font-weight: 700;
}

.approach-highlight {
    background: rgba(90, 79, 207, 0.05);
    border-left: 4px solid #5A4FCF;
    padding: 1.5rem 2rem;
    border-radius: 0 12px 12px 0;
    font-size: 1.1rem !important;
    color: var(--gray-800) !important;
    margin-top: 2rem !important;
}

.approach-highlight em {
    font-style: normal;
    font-weight: 600;
}

.approach-contact {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-icon {
    font-size: 1.25rem;
    filter: grayscale(0.3);
}

.contact-link {
    color: #5A4FCF;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.05rem;
    transition: all 0.2s ease;
}

.contact-link:hover {
    color: #4338CA;
    text-decoration: underline;
}

/* Визуальная часть */
.approach-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.approach-logo {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(90, 79, 207, 0.1);
    transition: all 0.3s ease;
}

.approach-logo:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.approach-logo-image {
    width: 120px !important;
    height: 120px !important;
    max-width: 120px !important;
    max-height: 120px !important;
    border-radius: 16px;
}

.approach-badges {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.approach-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid rgba(90, 79, 207, 0.1);
    transition: all 0.3s ease;
}

.approach-badge:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #5A4FCF;
}

.badge-icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.badge-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
    line-height: 1.2;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .approach-content {
        gap: 3rem;
    }

    .approach-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .about-approach {
        padding: 3rem 0;
    }

    .approach-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .approach-title {
        font-size: 2rem;
    }

    .approach-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .approach-description p {
        font-size: 1rem;
    }

    .approach-lead {
        font-size: 1.1rem !important;
    }

    .approach-contact {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .approach-badges {
        max-width: 300px;
        margin: 0 auto;
    }

    .approach-badge:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 480px) {
    .approach-title {
        font-size: 1.75rem;
    }

    .approach-description p {
        font-size: 0.95rem;
    }

    .approach-highlight {
        padding: 1.25rem 1.5rem;
        font-size: 1rem !important;
    }

    .approach-logo {
        padding: 1.5rem;
    }

    .approach-logo-image {
        width: 100px !important;
        height: 100px !important;
        max-width: 100px !important;
        max-height: 100px !important;
    }

    .approach-badge {
        padding: 0.875rem 1.25rem;
    }

    .badge-text {
        font-size: 0.85rem;
    }
}