/* =====================================================
   HORROR PODCAST ADMIN PANEL - STYLES
   ===================================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #f5f5f7;
    color: #1a1a1a;
    line-height: 1.6;
    min-height: 100vh;
}

/* =====================================================
   LOGIN PAGE
   ===================================================== */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a1518 100%);
}

.login-box {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo-icon {
    width: 72px;
    height: 72px;
    background: #c41e3a;
    border-radius: 16px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 28px;
}

.login-logo h1 {
    color: #1a1a1a;
    font-size: 24px;
    margin-bottom: 4px;
}

.login-logo p {
    color: #666;
    font-size: 13px;
}

/* =====================================================
   LAYOUT (Dashboard, Stories, etc)
   ===================================================== */

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background: #1a1a1a;
    padding: 24px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-logo {
    padding: 0 24px 24px;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-logo-icon {
    width: 36px;
    height: 36px;
    background: #c41e3a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.sidebar-logo-text {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.sidebar-nav {
    padding: 16px 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.sidebar-nav a:hover {
    color: #fff;
    background: #2a2a2a;
}

.sidebar-nav a.active {
    color: #fff;
    background: #c41e3a;
}

.sidebar-nav a svg {
    width: 18px;
    height: 18px;
}

.main-content {
    flex: 1;
    margin-left: 240px;
    padding: 24px 32px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
}

.page-title {
    font-size: 24px;
    color: #1a1a1a;
    font-weight: 600;
}

.page-subtitle {
    color: #666;
    font-size: 13px;
    margin-top: 4px;
}

/* =====================================================
   STAT CARDS
   ===================================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #eaeaea;
}

.stat-card-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-card-value {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.stat-card-meta {
    font-size: 12px;
    color: #666;
}

.stat-card-meta.positive {
    color: #16a34a;
}

.stat-card-meta.negative {
    color: #dc2626;
}

.stat-card-revenue .stat-card-value {
    color: #c41e3a;
}

/* =====================================================
   FORMS
   ===================================================== */

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

.form-label {
    display: block;
    font-size: 13px;
    color: #444;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border 0.2s;
    background: #fff;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #c41e3a;
}

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

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

.form-help {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

/* =====================================================
   BUTTONS
   ===================================================== */

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

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

.btn-primary:hover {
    background: #a01a31;
}

.btn-primary:disabled {
    background: #999;
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #f5f5f5;
}

.btn-danger {
    background: transparent;
    color: #dc2626;
    border: 1px solid #dc2626;
}

.btn-danger:hover {
    background: #dc2626;
    color: #fff;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* =====================================================
   CARDS & TABLES
   ===================================================== */

.card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #eaeaea;
    margin-bottom: 16px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

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

.table th {
    text-align: left;
    padding: 12px;
    font-size: 11px;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #eaeaea;
}

.table td {
    padding: 14px 12px;
    font-size: 14px;
    color: #444;
    border-bottom: 1px solid #f5f5f5;
}

.table tr:hover {
    background: #fafafa;
}

.table-actions {
    display: flex;
    gap: 6px;
}

.table-actions .btn {
    padding: 6px 12px;
    font-size: 12px;
}

/* =====================================================
   BADGES
   ===================================================== */

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.badge-free { background: #e8f5e9; color: #2e7d32; }
.badge-standard { background: #e3f2fd; color: #1565c0; }
.badge-premium { background: #f3e5f5; color: #6a1b9a; }
.badge-vip { background: #fff3e0; color: #e65100; }

.badge-published { background: #e8f5e9; color: #2e7d32; }
.badge-draft { background: #f5f5f5; color: #666; }

.badge-active { background: #e8f5e9; color: #2e7d32; }
.badge-suspended { background: #ffebee; color: #c62828; }

.badge-video { background: #ffebee; color: #c41e3a; }
.badge-audio { background: #fff3e0; color: #f57c00; }
.badge-text { background: #fff8e1; color: #f9a825; }

/* =====================================================
   ERROR & SUCCESS MESSAGES
   ===================================================== */

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

.alert-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.alert-info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

/* =====================================================
   TOAST NOTIFICATIONS
   ===================================================== */

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s;
    max-width: 360px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success { background: #2e7d32; }
.toast-error { background: #c62828; }
.toast-info { background: #1565c0; }

/* =====================================================
   LOADING SPINNER
   ===================================================== */

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #c41e3a;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}

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

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state h3 {
    color: #666;
    margin-bottom: 8px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 100;
        transition: transform 0.3s;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 16px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}
