@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ═══════════════════════════════════════════════════════
   IZMIR SİNEMA KULÜBÜ — DESIGN SYSTEM
   Renkler korundu, tipografi & kompozisyon yenilendi.
═══════════════════════════════════════════════════════ */

:root {
    --primary-color: #e50914;
    --primary-hover: #b20710;
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --text-main: #ffffff;
    --text-muted: #b3b3b3;
    --border-color: #333333;
    --success: #28a745;
    --danger: #dc3545;

    --sidebar-width: 240px;
    --navbar-height: 66px;
    --radius: 4px;
    --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    line-height: 1.65;
    font-size: 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', 'Arial Black', sans-serif;
    letter-spacing: 0.05em;
    line-height: 1.1;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* ─── NAVBAR ──────────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: var(--navbar-height);
    background-color: rgba(10, 10, 10, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(229, 9, 20, 0.12);
}

.navbar .logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.45rem;
    font-weight: 400;
    color: var(--text-main);
    letter-spacing: 0.12em;
    display: flex;
    align-items: center;
    gap: 11px;
}

/* Film frame icon */
.navbar .logo::before {
    content: '';
    display: inline-block;
    flex-shrink: 0;
    width: 20px;
    height: 14px;
    background: var(--primary-color);
    clip-path: polygon(
        0% 0%, 18% 0%, 18% 28%, 82% 28%, 82% 0%, 100% 0%,
        100% 100%, 82% 100%, 82% 72%, 18% 72%, 18% 100%, 0% 100%
    );
}

.nav-links a {
    color: var(--text-muted);
    margin-left: 24px;
    font-weight: 500;
    font-size: 0.88rem;
    letter-spacing: 0.03em;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--text-main);
}

/* ─── HAMBURGER ───────────────────────────────────────── */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    padding: 6px 10px;
    border-radius: var(--radius);
    transition: border-color var(--transition);
}

.menu-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ─── BUTTONS ─────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 9px 22px;
    border-radius: var(--radius);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

/* Button shimmer sweep */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.13), transparent);
    transform: skewX(-18deg);
    transition: left 0.45s ease;
}

.btn:hover::after {
    left: 160%;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(229, 9, 20, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ─── HERO ────────────────────────────────────────────── */
.hero {
    min-height: calc(100vh - var(--navbar-height));
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    overflow: hidden;
    background:
        linear-gradient(165deg, rgba(0, 0, 0, 0.88) 0%, rgba(20, 0, 0, 0.72) 50%, rgba(0, 0, 0, 0.92) 100%),
        url('https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?q=80&w=2070&auto=format&fit=crop') no-repeat center center / cover;
}

/* Film grain texture */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.038;
    pointer-events: none;
    z-index: 1;
}

/* Vertical red accent line */
.hero::after {
    content: '';
    position: absolute;
    top: 15%;
    bottom: 15%;
    left: 6%;
    width: 3px;
    background: linear-gradient(to bottom, transparent, var(--primary-color) 25%, var(--primary-color) 75%, transparent);
    opacity: 0.5;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: heroReveal 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.8rem, 8vw, 5.8rem);
    font-weight: 400;
    letter-spacing: 0.07em;
    line-height: 1.0;
    margin-bottom: 0;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.7);
}

.hero h1 .accent {
    color: var(--primary-color);
}

.hero-divider {
    width: 52px;
    height: 3px;
    background: var(--primary-color);
    margin: 22px auto;
    border-radius: 2px;
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 34px;
    font-weight: 300;
    line-height: 1.75;
}

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

/* ─── AUTH FORMS ──────────────────────────────────────── */
.auth-container {
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    position: relative;
}

.auth-container::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 15% 60%, rgba(229, 9, 20, 0.04) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.auth-card {
    position: relative;
    z-index: 1;
    background-color: var(--bg-card);
    padding: 42px 40px;
    border-radius: 6px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    animation: cardReveal 0.45s ease forwards;
}

.auth-card.wide {
    max-width: 820px;
}

.auth-card h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.9rem;
    letter-spacing: 0.07em;
    margin-bottom: 28px;
    text-align: center;
    font-weight: 400;
    color: var(--text-main);
}

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

/* ─── FORMS ───────────────────────────────────────────── */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background-color: #242424;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: var(--radius);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    transition: border-color var(--transition), background-color var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #291818;
}

.form-control:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

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

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

/* ─── ALERTS ──────────────────────────────────────────── */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.88rem;
    font-weight: 500;
}

.alert-error {
    background-color: rgba(220, 53, 69, 0.08);
    border-left: 3px solid var(--danger);
    color: #ff7b7b;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.08);
    border-left: 3px solid var(--success);
    color: #5ddb76;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.08);
    border-left: 3px solid #ffc107;
    color: #ffd34e;
}

.alert-info {
    background-color: rgba(0, 123, 255, 0.08);
    border-left: 3px solid #007bff;
    color: #66b0ff;
}

/* ─── PANEL LAYOUT ────────────────────────────────────── */
.panel-container {
    display: flex;
    min-height: calc(100vh - var(--navbar-height));
}

/* ─── SIDEBAR ─────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-width);
    background-color: #161616;
    border-right: 1px solid var(--border-color);
    padding: 26px 0 20px;
    transition: all var(--transition);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 0 20px 18px;
    border-bottom: 1px solid rgba(51, 51, 51, 0.8);
    margin-bottom: 10px;
}

.sidebar-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.05rem;
    letter-spacing: 0.12em;
    color: var(--primary-color);
    font-weight: 400;
    margin-bottom: 4px;
    display: block;
}

.sidebar-user {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.sidebar-menu {
    list-style: none;
    flex: 1;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: var(--text-muted);
    font-size: 0.87rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}

.sidebar-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.04);
    border-left-color: rgba(229, 9, 20, 0.4);
    color: var(--text-main);
}

.sidebar-menu li a.active {
    background-color: rgba(229, 9, 20, 0.07);
    border-left-color: var(--primary-color);
    color: var(--text-main);
}

.sidebar-icon {
    font-size: 0.95rem;
    width: 17px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.8;
}

.sidebar-menu li.sidebar-logout {
    margin-top: 10px;
    border-top: 1px solid rgba(51, 51, 51, 0.6);
    padding-top: 6px;
}

.sidebar-menu li.sidebar-logout a {
    color: rgba(220, 53, 69, 0.65);
}

.sidebar-menu li.sidebar-logout a:hover {
    color: var(--danger);
    border-left-color: var(--danger);
    background-color: rgba(220, 53, 69, 0.05);
}

/* ─── CONTENT AREA ────────────────────────────────────── */
.content {
    flex: 1;
    padding: 32px 5%;
    min-width: 0;
}

.content > h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.75rem;
    letter-spacing: 0.05em;
    font-weight: 400;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.content > h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.35rem;
    letter-spacing: 0.05em;
    font-weight: 400;
    margin-bottom: 16px;
}

/* ─── CARDS ───────────────────────────────────────────── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 22px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    animation: cardIn 0.4s ease backwards;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
    border-color: rgba(229, 9, 20, 0.18);
}

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

/* Staggered card entrance */
.card-grid .card:nth-child(1) { animation-delay: 0.04s; }
.card-grid .card:nth-child(2) { animation-delay: 0.09s; }
.card-grid .card:nth-child(3) { animation-delay: 0.14s; }
.card-grid .card:nth-child(4) { animation-delay: 0.19s; }
.card-grid .card:nth-child(5) { animation-delay: 0.24s; }
.card-grid .card:nth-child(6) { animation-delay: 0.29s; }

.card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
    color: var(--text-main);
    font-weight: 400;
}

.card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.75;
}

/* Card cover images */
.card img {
    width: 100%;
    height: 175px;
    object-fit: cover;
    border-radius: 3px;
    margin-bottom: 14px;
    display: block;
    transition: opacity var(--transition);
}

.card:hover img {
    opacity: 0.9;
}

/* ─── BADGES ──────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 3px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.badge-info {
    background-color: rgba(0, 123, 255, 0.14);
    color: #66b0ff;
}

.badge-success {
    background-color: rgba(40, 167, 69, 0.14);
    color: #5ddb76;
}

.badge-warning {
    background-color: rgba(255, 193, 7, 0.14);
    color: #ffc107;
}

/* ─── TABLES ──────────────────────────────────────────── */
.table-responsive {
    overflow-x: auto;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    margin-top: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 13px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(51, 51, 51, 0.6);
}

th {
    background-color: rgba(22, 22, 22, 0.95);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    border-bottom: 1px solid var(--border-color);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: rgba(255, 255, 255, 0.018);
}

/* ─── STAT CARDS (Admin Dashboard) ───────────────────── */
.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 22px;
    transition: transform var(--transition), box-shadow var(--transition);
    animation: cardIn 0.4s ease backwards;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.stat-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.6rem;
    letter-spacing: 0.04em;
    line-height: 1;
    color: var(--text-main);
}

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
    }

    .nav-links {
        display: none;
    }

    /* Public pages (anasayfa, login, register): linkleri hep göster */
    .navbar--public .nav-links {
        display: flex;
        gap: 6px;
        align-items: center;
    }

    /* Mobilde public butonları küçült */
    .navbar--public .nav-links .btn {
        padding: 6px 12px !important;
        font-size: 0.78rem !important;
    }

    .navbar--public .menu-toggle {
        display: none;
    }

    /* Logo'nun sarmalanmasını engelle */
    .navbar .logo {
        font-size: 1rem;
        white-space: nowrap;
        letter-spacing: 0.06em;
    }

    .navbar .logo::before {
        width: 16px;
        height: 11px;
    }

    .menu-toggle {
        display: block;
    }

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

    .panel-container {
        flex-direction: column;
    }

    .sidebar {
        display: none;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 12px 0;
        flex-direction: column;
    }

    .sidebar.show {
        display: flex;
    }

    .sidebar-menu li a {
        padding: 12px 20px;
        font-size: 0.92rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }

    .content {
        padding: 20px 16px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 28px 20px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .fc {
        font-size: 0.8rem;
    }

    .fc-toolbar {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 400px) {
    .navbar .logo {
        font-size: 0.85rem;
        letter-spacing: 0.04em;
    }

    .navbar--public .nav-links .btn {
        padding: 5px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* ─── FULLCALENDAR OVERRIDES ──────────────────────────── */
.fc {
    --fc-border-color: var(--border-color);
    --fc-page-bg-color: var(--bg-card);
    --fc-neutral-bg-color: #1a1a1a;
    --fc-list-event-hover-bg-color: rgba(229, 9, 20, 0.06);
    --fc-today-bg-color: rgba(229, 9, 20, 0.06);
    --fc-event-bg-color: var(--primary-color);
    --fc-event-border-color: var(--primary-hover);
    font-family: 'DM Sans', sans-serif;
}

.fc .fc-toolbar-title {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.05em;
    font-size: 1.3rem;
}

.fc .fc-button {
    background-color: #2a2a2a;
    border-color: var(--border-color);
    color: var(--text-muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all var(--transition);
}

.fc .fc-button:hover {
    background-color: rgba(229, 9, 20, 0.12);
    border-color: var(--primary-color);
    color: var(--text-main);
}

.fc .fc-button-primary:not(:disabled).fc-button-active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.fc .fc-col-header-cell-cushion,
.fc .fc-daygrid-day-number {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    color: var(--primary-color);
    font-weight: 700;
}
