/* Основные стили для body */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    background-image: url('https://bogatyr.club/uploads/posts/2021-11/1636946341_1-bogatyr-club-p-goluboi-razmitii-fon-1.jpg');
    background-size: cover;
    background-position: center;
    color: #2c3e50;
}

/* Стили для header */
header {
    background-color: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Основные стили для main */
main {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Стили для секций */
.upcoming-festivals,
.reviews-list,
.movies-list,
.wallet-info {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Заголовки */
.upcoming-festivals h2,
.reviews-list h2,
.movies-list h2,
.wallet-info h2 {
    color: #1f2d3d;
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 15px;
}

/* Стили для списков */
.upcoming-festivals ul,
.movies-list ul {
    list-style-type: none;
    padding: 0;
}

.upcoming-festivals li,
.movies-list li {
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
}

/* Ссылки */
.program-link {
    color: #ff5500;
    text-decoration: none;
    font-weight: 500;
}

.program-link:hover {
    text-decoration: underline;
    color: #ff3300;
}

/* Кнопки */
.authorization,
.upload-form {
    text-align: center;
}

.authorization button,
.upload-form button {
    background-color: #1f2d3d;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 35px;
    margin: 10px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.authorization button:hover,
.upload-form button:hover {
    background-color: #ff5500;
    color: #fff;
}

/* Поля формы */
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
}

.auth-form label {
    font-weight: 500;
    display: block;
    margin-top: 10px;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    margin-top: 40px;
    font-size: 14px;
}

/* Адаптивность для мобильных устройств */
@media screen and (max-width: 600px) {
    main {
        padding: 20px;
    }

    .auth-form input[type="text"],
    .auth-form input[type="email"],
    .auth-form input[type="password"] {
        font-size: 18px;
        padding: 14px;
    }

    .authorization button,
    .upload-form button {
        font-size: 18px;
        padding: 18px 30px;
    }

    header h1,
    h2 {
        font-size: 22px;
    }

    footer {
        font-size: 12px;
    }
}

/* --- Фирменный логотип Фестивалити --- */
.fest-logo {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #ff5500;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
    margin-bottom: 10px;
}

/* --- Современные объёмные кнопки --- */
button, .auth-form button, .upload-form button, .authorization button {
    background: linear-gradient(90deg, #ff5500 0%, #ff8800 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 16px 40px;
    margin: 10px;
    cursor: pointer;
    font-size: 18px;
    font-family: 'Montserrat', 'Roboto', sans-serif;
    font-weight: 700;
    box-shadow: 0 6px 24px rgba(255,85,0,0.15), 0 1.5px 4px rgba(0,0,0,0.10);
    transition: all 0.2s cubic-bezier(.4,0,.2,1);
    outline: none;
    position: relative;
}
button:hover, .auth-form button:hover, .upload-form button:hover, .authorization button:hover {
    background: linear-gradient(90deg, #ff8800 0%, #ff5500 100%);
    box-shadow: 0 8px 32px rgba(255,85,0,0.22), 0 2px 8px rgba(0,0,0,0.13);
    transform: translateY(-2px) scale(1.03);
}

/* Стили для модальных окон уведомлений */
.success-modal, .error-modal {
    display: block;
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff7f2;
    border-radius: 12px;
    box-shadow: 0 2px 8px #ff5500cc;
    padding: 30px 40px;
    z-index: 1000;
    font-size: 1.2rem;
    color: #ff5500;
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

.error-modal {
    color: #c00;
    background: #fff0f0;
    box-shadow: 0 2px 8px #cc0000cc;
}

@keyframes slideIn {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Стили для страницы фильмов */
.top-nav {
    background: #fff7f2;
    padding: 15px 0;
    box-shadow: 0 2px 8px #ff5500cc;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-nav-links a {
    color: #ff5500;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.top-nav-links a:hover {
    background: #ff5500;
    color: white;
}

.top-nav-links button {
    background: #ff5500;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.top-nav-links button:hover {
    background: #e64d00;
}

.movies-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 2.5rem;
    color: #333;
    margin: 0;
    font-weight: 700;
    background: linear-gradient(135deg, #ff5500, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.upload-btn {
    background: linear-gradient(135deg, #ff5500, #ff8c00);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255,85,0,0.2);
    text-decoration: none;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,85,0,0.3);
}

.upload-btn i {
    font-size: 1.2rem;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.movie-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.movie-poster {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.movie-card:hover .movie-poster {
    transform: scale(1.05);
}

.movie-info {
    padding: 20px;
    position: relative;
}

.movie-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #888;
}

.movie-genre {
    background: #fff7f2;
    color: #ff5500;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.movie-actions {
    display: flex;
    gap: 10px;
}

.edit-btn, .delete-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.edit-btn {
    background: #ff5500;
    color: white;
}

.edit-btn:hover {
    background: #e64d00;
}

.delete-btn {
    background: #ffebee;
    color: #f44336;
}

.delete-btn:hover {
    background: #ffcdd2;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff7f2;
    border-radius: 15px;
    margin-top: 40px;
}

.empty-state h3 {
    color: #ff5500;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.empty-state p {
    color: #666;
    margin-bottom: 25px;
}

.empty-state .upload-btn {
    margin: 0 auto;
}

.movie-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 0.9rem;
}

.stat-item i {
    color: #ff5500;
}

.movie-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pending {
    background: #fff3e0;
    color: #ff9800;
}

.status-approved {
    background: #e8f5e9;
    color: #4caf50;
}

.status-rejected {
    background: #ffebee;
    color: #f44336;
}

.error-state {
    text-align: center;
    padding: 60px 20px;
    background: #ffebee;
    border-radius: 15px;
    margin-top: 40px;
}

.error-state h3 {
    color: #f44336;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.error-state p {
    color: #666;
    margin-bottom: 25px;
}

.retry-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.retry-btn:hover {
    background: #d32f2f;
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .movies-grid {
        grid-template-columns: 1fr;
    }
}
