/* Yanickflix Wunschliste - Stylesheet */

:root {
    --primary-color: #e50914;
    --secondary-color: #221f1f;
    --dark-bg: #141414;
    --light-bg: #f5f5f5;
    --text-light: #ffffff;
    --text-dark: #333333;
    --border-color: #ddd;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-bg));
    color: var(--text-light);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo-placeholder {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.admin-link {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.admin-link:hover {
    background: #b8070f;
    color: white;
    text-decoration: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* News Section */
.news-section {
    background: white;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.news-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: center;
}

.news-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.news-item {
    background: var(--light-bg);
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.news-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.news-item .date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-item .type-badge {
    display: inline-block;
    background: var(--info-color);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.news-item .type-badge.movie {
    background: var(--primary-color);
}

.news-item .type-badge.series {
    background: var(--info-color);
}

/* Form Section */
.form-section {
    background: white;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.form-header {
    background: var(--secondary-color);
    color: white;
    padding: 1rem;
    text-align: center;
}

.form-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.form-tabs {
    display: flex;
    background: var(--dark-bg);
}

.tab-button {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1rem;
}

.tab-button.active {
    background: var(--primary-color);
}

.tab-button:hover {
    background: rgba(255,255,255,0.1);
}

.tab-content {
    padding: 2rem;
}

.tab-pane {
    display: none;
}

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

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 5px 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-result-item {
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.search-result-item:hover {
    background: var(--light-bg);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-weight: 600;
    color: var(--text-dark);
}

.search-result-year {
    color: #666;
    font-size: 0.9rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
    background: #b8070f;
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--secondary-color);
}

.btn-secondary:hover {
    background: #1a1717;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    border-color: var(--success-color);
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border-color: var(--danger-color);
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    border-color: var(--info-color);
    color: #0c5460;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Admin Styles */
.admin-header {
    background: var(--dark-bg);
    color: white;
    padding: 1rem 0;
}

.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-title {
    font-size: 1.5rem;
    margin: 0;
}

.logout-btn {
    background: var(--danger-color);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background: #c82333;
    text-decoration: none;
    color: white;
}

.admin-tabs {
    display: flex;
    background: var(--secondary-color);
    margin-top: 1rem;
}

.admin-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.admin-tab.active {
    background: var(--primary-color);
}

.admin-content {
    padding: 2rem 0;
}

.requests-list {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.request-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.request-item:hover {
    background: var(--light-bg);
}

.request-item:last-child {
    border-bottom: none;
}

.request-item.completed {
    opacity: 0.6;
    text-decoration: line-through;
}

.request-poster {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 1rem;
}

.request-info {
    flex: 1;
}

.request-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.request-meta {
    color: #666;
    font-size: 0.9rem;
}

.request-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .form-tabs {
        flex-direction: column;
    }
    
    .admin-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .admin-tabs {
        flex-direction: column;
    }
    
    .request-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .request-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--text-light);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer p {
    margin: 0;
    opacity: 0.8;
}
