/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Шапка */
header {
    text-align: center;
    padding: 30px 0;
    border-bottom: 2px solid #e94560;
    margin-bottom: 30px;
}

header h1 {
    font-size: 3rem;
    background: linear-gradient(90deg, #e94560, #f39c12, #e94560);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 3s linear infinite;
    text-shadow: 0 0 30px rgba(233, 69, 96, 0.5);
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.tagline {
    color: #a0a0a0;
    font-size: 1.2rem;
    margin-top: 10px;
    font-style: italic;
}

/* Информация о рейсе */
.flight-info {
    background: linear-gradient(145deg, #1e2a4a, #2a3f5f);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.flight-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e94560, #f39c12);
}

.flight-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

.flight-badge.delayed {
    background: linear-gradient(135deg, #e94560, #c0392b);
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.flight-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #f39c12;
}

.route {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.city {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.city-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.airport {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.time {
    color: #f39c12;
    font-weight: bold;
    margin-top: 5px;
}

.arrow {
    font-size: 2rem;
    animation: fly 2s ease-in-out infinite;
}

@keyframes fly {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

.disclaimer {
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    margin-top: 20px;
    font-style: italic;
}

/* Секция ставок */
.betting-section {
    margin-bottom: 30px;
}

.betting-section h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #f39c12;
    text-align: center;
}

.betting-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.bet-card {
    background: linear-gradient(145deg, #1e2a4a, #2a3f5f);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.bet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.bet-card:hover::before {
    left: 100%;
}

.bet-card:hover {
    transform: translateY(-5px);
    border-color: #e94560;
    box-shadow: 0 15px 30px rgba(233, 69, 96, 0.3);
}

.bet-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
}

.bet-odds {
    font-size: 1.5rem;
    color: #f39c12;
    margin-bottom: 10px;
}

.odds-value {
    font-weight: bold;
    font-size: 1.8rem;
}

.bet-popularity {
    font-size: 0.9rem;
    color: #a0a0a0;
    margin-bottom: 15px;
}

.bet-btn {
    background: linear-gradient(135deg, #e94560, #c0392b);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.bet-btn:hover {
    background: linear-gradient(135deg, #c0392b, #e94560);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.4);
}

/* Статистика */
.stats-section {
    background: linear-gradient(145deg, #1e2a4a, #2a3f5f);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

.stats-section h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #f39c12;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #e94560;
    margin-bottom: 5px;
}

.stat-label {
    color: #a0a0a0;
    font-size: 0.9rem;
}

/* Комментарии */
.comments-section {
    background: linear-gradient(145deg, #1e2a4a, #2a3f5f);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

.comments-section h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #f39c12;
    text-align: center;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 20px;
    border-left: 4px solid #e94560;
}

.comment-author {
    font-weight: bold;
    color: #f39c12;
    display: block;
    margin-bottom: 10px;
}

.comment p {
    color: #d0d0d0;
    line-height: 1.5;
}

/* Футер */
footer {
    text-align: center;
    padding: 30px;
    border-top: 2px solid #e94560;
    margin-top: 30px;
}

footer p {
    color: #a0a0a0;
    margin-bottom: 10px;
}

.warning {
    background: rgba(233, 69, 96, 0.2);
    padding: 15px;
    border-radius: 10px;
    color: #e94560 !important;
    font-size: 0.9rem;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #1e2a4a, #2a3f5f);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    border: 2px solid #e94560;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #a0a0a0;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #e94560;
}

.modal-content h3 {
    color: #f39c12;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

#bet-description {
    color: #d0d0d0;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.bet-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bet-form label {
    color: #a0a0a0;
}

.bet-form input {
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #3a4a6a;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.3s;
}

.bet-form input:focus {
    border-color: #e94560;
}

.potential-win {
    font-size: 1.2rem;
    color: #f39c12;
    font-weight: bold;
}

.confirm-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.confirm-btn:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(46, 204, 113, 0.4);
}

/* Уведомления */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 20px 30px;
    border-radius: 15px;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateX(400px);
    transition: transform 0.5s ease;
    z-index: 1001;
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background: linear-gradient(135deg, #e94560, #c0392b);
}

/* Адаптивность */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .route {
        flex-direction: column;
    }
    
    .arrow {
        transform: rotate(90deg);
    }
    
    .betting-cards {
        grid-template-columns: 1fr;
    }
    
    .stat-value {
        font-size: 2rem;
    }
}

/* Декоративные элементы */
.bet-card:nth-child(1) { animation: cardFloat 3s ease-in-out infinite; }
.bet-card:nth-child(2) { animation: cardFloat 3s ease-in-out 0.5s infinite; }
.bet-card:nth-child(3) { animation: cardFloat 3s ease-in-out 1s infinite; }
.bet-card:nth-child(4) { animation: cardFloat 3s ease-in-out 1.5s infinite; }
.bet-card:nth-child(5) { animation: cardFloat 3s ease-in-out 2s infinite; }
.bet-card:nth-child(6) { animation: cardFloat 3s ease-in-out 2.5s infinite; }

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}