﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #172138 0%, #1a1a1a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
}

.main-title {
    color: #ffffff;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 60px;
    text-transform: uppercase;
}

.operators-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.operator-card {
    background: #ffffff;
    border: 2px solid rgb(0, 0, 0);
    border-radius: 16px;
    padding: 30px 25px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 120px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 450px;
}

.operator-card-priority {
    grid-column: 1 / -1;
}

.operator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 45%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.operator-card:hover {
    transform: translateY(-4px);
    background: #172138;
    border-color: rgba(0,0, 0, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

    .operator-card:hover::before {
        opacity: 1;
    }

.operator-logo {
    max-width: 140px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.operator-card:hover .operator-logo {
    transform: scale(1.05);
}

.operator-name {
    color: rgb(0, 0, 0);
    font-size: 1.5rem;
    font-weight: 400;
    text-align: left;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.operator-arrow {
    width: 50px;
    height: 50px;
    border: 2px solid #172138;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(0, 0, 0);
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.operator-card:hover .operator-arrow {
    border-color: #172138;
    background: rgba(255, 255, 255, 1);
    transform: translateX(5px);
}

.loading {
    color: #ffffff;
    text-align: center;
    font-size: 1.5rem;
}

#distribusion-search {
    background-color: white;
    padding: 15px;
    border-radius: 16px;
    margin-bottom: 65px;
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .operators-grid {
        gap: 20px;
        grid-template-columns: 1fr;
    }

    .operator-card {
        padding: 25px 30px;
        height: 100px;
    }

    .operator-logo {
        max-width: 100px;
        max-height: 50px;
    }

    .operator-name {
        font-size: 1rem;
    }

    .operator-arrow {
        width: 40px;
        height: 40px;
    }

        .operator-arrow svg {
            width: 20px;
            height: 20px;
        }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .operators-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) and (max-width: 1400px) {
    .operators-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}