/* Основные стили для покерного календаря */
#poker-calendar-frontend {
    max-width: 1250px;
    margin: 0 auto;
    font-family: 'Montserrat', sans-serif;
    background: #1a1a1a;
    color: #ffffff;
    padding: 20px;
    border-radius: 15px;
}

.poker-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin: 30px 0;
    padding: 0 10px;
}

.poker-nav-btn {
    background: #F8A134;
    color: #1a1a1a;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.poker-nav-btn:hover {
    background: #e6912b;
    transform: scale(1.05);
}

#current-month {
    margin: 0;
    color: #ffffff;
    min-width: 250px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
}

.poker-calendar {
    background: #2d2d2d;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid #404040;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #F8A134;
    color: #1a1a1a;
}

.day-header {
    padding: 20px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    border-right: 1px solid #e6912b;
}

.day-header:last-child {
    border-right: none;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #404040;
}

.calendar-day {
    background: #2d2d2d;
    min-height: 140px;
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: none;
}

.calendar-day:hover {
    background: #3a3a3a;
    transform: translateY(-2px);
}

.calendar-day.other-month {
    background: #252525;
    color: #666;
}

.calendar-day.today {
    background: rgba(248, 161, 52, 0.1);
    border: 2px solid #F8A134;
}

.calendar-day.selected {
    background: #F8A134;
    color: #1a1a1a;
}

.calendar-day.selected .day-number {
    color: #1a1a1a;
}

.calendar-day.selected .event-item-small {
    background: rgba(26, 26, 26, 0.9);
    color: #ffffff;
}

.day-number {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 16px;
    color: #ffffff;
}

.day-events {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.event-item-small {
    background: #4CAF50;
    color: #ffffff;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 10px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    transition: all 0.3s ease;
}

.daily-events {
    background: #2d2d2d;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border: 1px solid #404040;
}

#selected-date {
    color: #F8A134;
    margin-bottom: 25px;
    border-bottom: 2px solid #F8A134;
    padding-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.daily-event-item {
    border: 1px solid #404040;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    background: #363636;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.daily-event-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #F8A134;
}

.daily-event-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(248, 161, 52, 0.2);
    border-color: #F8A134;
}

.daily-event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.event-time-badge {
    background: #F8A134;
    color: #1a1a1a;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 16px;
    min-width: 80px;
    text-align: center;
}

.event-game-badge {
    background: #4CAF50;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.daily-event-details {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
    align-items: center;
}

.daily-event-detail {
    background: #2d2d2d;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 25px;
    border: 1px solid #404040;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.daily-event-detail:hover {
    border-color: #F8A134;
    transform: translateY(-1px);
}

.register-btn {
    background: #F8A134;
    color: #1a1a1a;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 140px;
}

.register-btn:hover {
    background: #e6912b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(248, 161, 52, 0.3);
    color: #1a1a1a;
    text-decoration: none;
}

.event-notes {
    background: #2d2d2d;
    color: #cccccc;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #F8A134;
    margin-top: 15px;
    font-style: italic;
    border: 1px solid #404040;
}

.no-events {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 50px 20px;
    background: #2d2d2d;
    border-radius: 10px;
    border: 2px dashed #404040;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 16px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 1024px) {
    #poker-calendar-frontend {
        padding: 15px;
        margin: 0 10px;
    }
    
    .calendar-day {
        min-height: 120px;
        padding: 10px 6px;
    }
    
    .event-item-small {
        font-size: 9px;
        padding: 3px 5px;
    }
    
    .register-btn {
        padding: 10px 20px;
        font-size: 13px;
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    #poker-calendar-frontend {
        padding: 10px;
        margin: 0 5px;
    }
    
    .poker-calendar-nav {
        gap: 15px;
        margin: 20px 0;
    }
    
    .poker-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    #current-month {
        font-size: 20px;
        min-width: 200px;
    }
    
    .calendar-header {
        grid-template-columns: repeat(7, 1fr);
    }
    
    .day-header {
        padding: 15px 5px;
        font-size: 12px;
    }
    
    .calendar-days {
        grid-template-columns: repeat(7, 1fr);
        gap: 1px;
    }
    
    .calendar-day {
        min-height: 100px;
        padding: 8px 4px;
    }
    
    .day-number {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .event-item-small {
        font-size: 8px;
        padding: 2px 4px;
        border-radius: 3px;
    }
    
    .daily-events {
        padding: 20px;
        margin: 0 5px;
    }
    
    .daily-event-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .event-time-badge {
        font-size: 14px;
        padding: 8px 16px;
    }
    
    .event-game-badge {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .daily-event-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .daily-event-detail {
        font-size: 13px;
        padding: 8px 15px;
        text-align: center;
    }
    
    #selected-date {
        font-size: 18px;
        text-align: center;
    }
    
    .register-btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    #poker-calendar-frontend {
        padding: 5px;
        margin: 0 2px;
    }
    
    .poker-calendar-nav {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    #current-month {
        font-size: 18px;
        min-width: 180px;
        order: -1;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .calendar-day {
        min-height: 80px;
        padding: 6px 3px;
    }
    
    .day-number {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .event-item-small {
        font-size: 7px;
        padding: 1px 3px;
        border-radius: 2px;
    }
    
    .daily-events {
        padding: 15px;
    }
    
    .daily-event-item {
        padding: 20px;
    }
    
    .event-time-badge {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .daily-event-detail {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .event-notes {
        font-size: 13px;
        padding: 12px;
    }
    
    .register-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 360px) {
    .calendar-day {
        min-height: 70px;
        padding: 4px 2px;
    }
    
    .event-item-small {
        font-size: 6px;
        padding: 1px 2px;
    }
    
    .day-header {
        padding: 12px 3px;
        font-size: 11px;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.daily-event-item {
    animation: fadeIn 0.5s ease;
}

.calendar-day {
    animation: fadeIn 0.3s ease;
}

/* Скроллбар для мобильных */
@media (max-width: 768px) {
    .poker-calendar {
        overflow-x: auto;
    }
    
    .calendar-header,
    .calendar-days {
        min-width: 700px;
    }
}

/* Подключение шрифта Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');