@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary: #f02540;
    --primary-hover: #ff4d6d;
    --background: #0a0a0b;
    --surface: #141415;
    --card: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --text-muted: #94a3b8;
    --glass: rgba(10, 10, 11, 0.8);
    --shadow: 0 4px 24px -2px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .brand {
    font-family: 'Outfit', sans-serif;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Nav */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: 72px;
    display: flex;
    align-items: center;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

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

.nav-links a {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-muted);
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px var(--primary);
}

/* Hero Section */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(240, 37, 64, 0.15) 0%, transparent 70%);
    z-index: -1;
}

/* Global Dark Input Fix */
.form-control, .form-select, input, textarea, select {
    background-color: #1a1a1b !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    transition: all 0.3s ease !important;
}

.form-control:focus, .form-select:focus, input:focus, textarea:focus, select:focus {
    background-color: #212122 !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 15px -5px var(--primary) !important;
    color: #ffffff !important;
    outline: none !important;
}

/* Fix for disabled/readonly states */
.form-control:disabled, .form-control[readonly] {
    background-color: #0e0e0f !important;
    opacity: 0.6;
    color: rgba(255,255,255,0.5) !important;
}

/* Fix for Browser Autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #1a1a1b inset !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Movie Grid */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
}

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

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.8);
}

.card-img {
    aspect-ratio: 2/3;
    position: relative;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img img {
    scale: 1.1;
}

.card-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.7);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    backdrop-filter: blur(4px);
    font-weight: 600;
}

.card-body {
    padding: 16px;
}

.card-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Footer */
footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
    margin-top: 100px;
    background: #050505;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-about .brand {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-about p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-col h4 {
    margin-bottom: 24px;
    font-size: 18px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
}

/* Glassmorphism Class */
.glass {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
}

/* Admin Styles */
.admin-sidebar {
    width: 280px;
    height: 100vh;
    position: fixed;
    border-right: 1px solid var(--border);
    padding: 40px 24px;
    background: var(--surface);
}

.admin-main {
    margin-left: 280px;
    padding: 40px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

input, textarea, select {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 12px 16px;
    border-radius: 10px;
    color: white;
    outline: none;
    transition: var(--transition);
}

input:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(240, 37, 64, 0.2);
}

.btn-delete {
    background: #dc2626;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
}
