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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background: #fff;
}

a { color: #3b82f6; text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */
.header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

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

.nav a {
    color: #64748b;
    font-weight: 500;
    font-size: 14px;
}

.nav a:hover {
    color: #1e293b;
    text-decoration: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn:hover { text-decoration: none; }

.btn-primary {
    background: #3b82f6;
    color: #fff;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-outline {
    background: transparent;
    border: 2px solid #3b82f6;
    color: #3b82f6;
}

.btn-outline:hover {
    background: #3b82f6;
    color: #fff;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero h1 span {
    color: #60a5fa;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 32px;
}

.stat {
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 32px;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.hero .btn-outline {
    border-color: #fff;
    color: #fff;
}

.hero .btn-outline:hover {
    background: #fff;
    color: #1e293b;
}

/* Sections */
.section {
    padding: 64px 0;
}

.bg-light {
    background: #f8fafc;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

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

/* Cards */
.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.card-image {
    aspect-ratio: 3/4;
    background: #e2e8f0;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image .placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    color: #94a3b8;
    background: #f1f5f9;
}

.card-image .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #3b82f6;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-body p {
    color: #64748b;
    font-size: 14px;
}

/* Castings */
.castings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.casting-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.casting-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.casting-info p {
    color: #64748b;
    font-size: 14px;
}

.casting-meta {
    display: flex;
    gap: 8px;
}

.tag {
    padding: 4px 12px;
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
}

.tag.urgent {
    background: #fee2e2;
    color: #dc2626;
}

/* Utils */
.text-center { text-align: center; }
.mt { margin-top: 32px; }
.empty { text-align: center; color: #64748b; padding: 40px; }

/* Footer */
.footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 32px 0;
    text-align: center;
    font-size: 14px;
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    padding: 20px;
}

.auth-box {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.auth-box h1 {
    font-size: 24px;
    margin-bottom: 8px;
    text-align: center;
}

.auth-box p {
    color: #64748b;
    text-align: center;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-error {
    background: #fee2e2;
    color: #dc2626;
}

.alert-success {
    background: #dcfce7;
    color: #16a34a;
}

/* Dashboard */
.dashboard {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: #1e293b;
    color: #fff;
    padding: 24px;
}

.sidebar .logo {
    color: #fff;
    margin-bottom: 32px;
    display: block;
}

.sidebar-nav a {
    display: block;
    padding: 12px 16px;
    color: #94a3b8;
    border-radius: 8px;
    margin-bottom: 4px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: #334155;
    color: #fff;
    text-decoration: none;
}

.main-content {
    flex: 1;
    padding: 32px;
    background: #f8fafc;
}

.page-title {
    font-size: 24px;
    margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 32px; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .hero-actions { flex-direction: column; }
    .nav { display: none; }
    .casting-card { flex-direction: column; align-items: flex-start; gap: 12px; }
}
