/* ==============================================
   SINEMANIA — Sinematik Katalog Teması
   ============================================== */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #14141c;
    --bg-card: #1c1c28;
    --bg-elevated: #25252f;
    --accent: #e50914;
    --accent-hover: #f6121d;
    --gold: #d4af37;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #6c6c7a;
    --border: #2c2c3a;
    --success: #46d369;
    --danger: #e87c03;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

/* === NAVBAR === */
.navbar {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 3px;
    color: var(--accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links .admin-link {
    color: var(--gold);
}

.user-info {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.btn-primary, .btn-logout {
    background: var(--accent);
    color: white !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-primary:hover, .btn-logout:hover {
    background: var(--accent-hover);
    color: white !important;
}

.btn-logout {
    background: var(--bg-elevated);
}

.btn-logout:hover {
    background: #3a3a4a;
}

/* === MAIN CONTENT === */
.main-content {
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

/* === HERO === */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.1) 0%, transparent 100%);
    border-radius: 12px;
    margin-bottom: 3rem;
    border: 1px solid var(--border);
}

.hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: 4px;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--text-primary), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* === FILTER BAR === */
.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar input,
.filter-bar select {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.7rem 1rem;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
}

.filter-bar input {
    flex: 1;
    min-width: 200px;
}

.filter-bar input:focus,
.filter-bar select:focus {
    outline: none;
    border-color: var(--accent);
}

/* === MOVIE GRID === */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.movie-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border);
    cursor: pointer;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.movie-poster {
    width: 100%;
    height: 320px;
    object-fit: cover;
    background: var(--bg-elevated);
    display: block;
}

.movie-poster-placeholder {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-muted);
}

.movie-info {
    padding: 1rem;
}

.movie-title {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.movie-rating {
    color: var(--gold);
    font-weight: 600;
}

.movie-type {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: var(--bg-elevated);
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.movie-type.dizi {
    background: rgba(229, 9, 20, 0.2);
    color: var(--accent);
}

/* === AUTH FORMS === */
.auth-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-box {
    background: var(--bg-card);
    padding: 3rem 2.5rem;
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.auth-box h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 0.85rem 1.5rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
    font-size: 0.95rem;
}

.btn:hover {
    background: var(--accent-hover);
}

.btn:active {
    transform: translateY(1px);
}

.btn-block {
    width: 100%;
}

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

.btn-secondary:hover {
    background: #3a3a4a;
}

.btn-danger {
    background: var(--danger);
}

.btn-success {
    background: var(--success);
    color: var(--bg-primary);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* === FLASH MESSAGES === */
.flash {
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    border-left: 4px solid;
}

.flash-success {
    background: rgba(70, 211, 105, 0.1);
    color: var(--success);
    border-color: var(--success);
}

.flash-error {
    background: rgba(229, 9, 20, 0.1);
    color: var(--accent);
    border-color: var(--accent);
}

.flash-info {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    border-color: var(--gold);
}

/* === ADMIN PANEL === */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.admin-header h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 3px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
}

.stat-card .stat-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: var(--gold);
    line-height: 1;
}

.stat-card .stat-label {
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* === DATA TABLE === */
.data-table {
    width: 100%;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-collapse: collapse;
}

.data-table thead {
    background: var(--bg-elevated);
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    border-bottom: 2px solid var(--accent);
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.data-table tbody tr:hover {
    background: var(--bg-elevated);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.table-poster {
    width: 50px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-admin {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold);
}

.badge-user {
    background: rgba(70, 211, 105, 0.2);
    color: var(--success);
}

/* === MOVIE DETAIL === */
.movie-detail {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2.5rem;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.movie-detail-poster {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.movie-detail-info h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.movie-detail-meta {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0 1.5rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.movie-detail-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.movie-detail-info p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* === FOOTER === */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 2rem;
    margin-top: 4rem;
    text-align: center;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-small {
    font-size: 0.8rem !important;
    margin-top: 0.5rem;
    color: var(--text-muted);
}

/* === FORM PAGE === */
.form-page {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.form-page h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: var(--gold);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* === EMPTY STATE === */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }

    .movie-detail {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .data-table {
        font-size: 0.85rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.6rem;
    }
}
