/* Специфичные стили для страницы мероприятий */

/* Переопределение h1 для страницы мероприятий */
.events-page h1 {
    text-align: left;
}

.tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: flex-start;
}

.tab {
    font-family: 'Roboto Mono', monospace;
    font-size: 16px;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid #4a4a4a;
    color: #a0a0a0;
    text-decoration: none;
    border-radius: 3px;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    cursor: pointer;
}

.tab:hover {
    background: #1f1f1f;
    border-color: #666;
    color: #fff;
}

.tab.active {
    background: #ff3333;
    border-color: #ff3333;
    color: #fff;
}

.sort-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.sort-options select {
    background: #222;
    color: #d4d4d4;
    border: 1px solid #333;
    border-radius: 3px;
    padding: 5px 10px;
    font-size: 13px;
    font-family: 'Roboto Mono', monospace;
}

.sort-options select:focus {
    outline: none;
    border-color: #ff3333;
}

.sort-options.hidden {
    display: none;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.event {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #2a2a2a;
    transition: border-color 0.3s;
    text-align: center;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event.online {
    background: rgba(51, 51, 255, 0.1);
}

.event.offline {
    background: rgba(255, 51, 51, 0.1);
}

.event:hover {
    border-color: #ff3333;
}

.event-image {
    width: 100%;
    height: 150px;
    background: #333;
    border-radius: 5px;
    margin-bottom: 10px;
    background-size: cover;
    background-position: center;
}

.event h3 {
    font-family: 'EB Garamond', serif;
    font-size: 16px;
    margin: 0 0 10px;
    color: #fff;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event p {
    font-size: 13px;
    color: #a0a0a0;
    margin: 5px 0;
}

.event .btn {
    display: inline-block;
    padding: 8px 15px;
    background: #ff3333;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 400;
    margin-top: 10px;
    transition: background 0.3s, transform 0.2s;
}

.event .btn:hover {
    background: #ff4d4d;
    transform: translateY(-2px);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.calendar {
    width: 100%;
    max-width: 1000px; /* Увеличено с 800px */
    margin: 0 auto;
    border-collapse: collapse;
    font-family: 'Roboto Mono', monospace;
}

.calendar th, .calendar td {
    border: 1px solid #2a2a2a;
    padding: 15px; /* Увеличено с 10px */
    text-align: center;
    font-size: 16px; /* Увеличено с 14px */
    color: #a0a0a0;
}

.calendar th {
    background: #1a1a1a;
    color: #fff;
    font-weight: 700;
}

.calendar td {
    background: #141414;
}

.calendar td.event-day {
    background: #ff3333;
    color: #fff;
}

.calendar td.empty {
    background: #0a0a0a;
}

/* Анимации */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-in forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}