/* File: assets/css/style.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* Landing Page */
.landing-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

.hero-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
}

.hero-section h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #667eea;
}

.hero-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #666;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Form Wrapper */
.container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
}

.form-wrapper h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #667eea;
    font-size: 2em;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.help-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #888;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 14px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    background: #5568d3;
}

.btn-primary {
    background: #667eea;
    padding: 15px 40px;
    width: auto;
}

.btn-primary:hover {
    background: #5568d3;
}

.btn-secondary {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 15px 40px;
    width: auto;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

.btn-download {
    width: auto;
    padding: 10px 20px;
    font-size: 14px;
    margin-top: 10px;
}

.btn-logout {
    background: #dc3545;
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-logout:hover {
    background: #c82333;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.text-center {
    text-align: center;
    margin-top: 20px;
}

.text-center a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.text-center a:hover {
    text-decoration: underline;
}

/* Admin Wrapper */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background: #f5f5f5;
}

.admin-nav {
    width: 250px;
    background: #2c3e50;
    color: white;
    padding: 30px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-nav h2 {
    padding: 0 30px;
    margin-bottom: 30px;
    color: #667eea;
}

.admin-nav ul {
    list-style: none;
}

.admin-nav ul li {
    margin-bottom: 5px;
}

.admin-nav ul li a {
    display: block;
    padding: 15px 30px;
    color: #ecf0f1;
    text-decoration: none;
    transition: background 0.3s;
}

.admin-nav ul li a:hover,
.admin-nav ul li a.active {
    background: #34495e;
    border-left: 4px solid #667eea;
}

.admin-content {
    margin-left: 250px;
    padding: 40px;
    flex: 1;
    background: #f5f5f5;
}

.admin-content h1 {
    margin-bottom: 30px;
    color: #2c3e50;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card h3 {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #667eea;
}

/* Content Section */
.content-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.content-section h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

/* Table */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead {
    background: #f8f9fa;
}

table th,
table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

table th {
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

table tbody tr:hover {
    background: #f8f9fa;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    background: #667eea;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    text-transform: capitalize;
}

/* Upload Form */
.upload-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* User Wrapper */
.user-wrapper {
    min-height: 100vh;
    background: #f5f5f5;
}

.user-nav {
    background: white;
    padding: 20px 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.user-nav h2 {
    color: #667eea;
    font-size: 1.5em;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-right span {
    font-weight: 500;
    color: #555;
}

.user-content {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.user-content h1 {
    margin-bottom: 30px;
    color: #2c3e50;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.content-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.content-type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #667eea;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    text-transform: capitalize;
    font-weight: 600;
}

.content-card h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.3em;
}

.content-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.media-player {
    width: 100%;
    border-radius: 8px;
    margin: 15px 0;
}

.text-content {
    line-height: 1.8;
    color: #555;
    margin: 15px 0;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}

.read-more:hover {
    text-decoration: underline;
}

.content-meta {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.content-meta small {
    color: #888;
    font-size: 12px;
}

.no-content {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    grid-column: 1 / -1;
}

.no-content p {
    color: #888;
    font-size: 1.2em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-nav {
        width: 200px;
    }
    
    .admin-content {
        margin-left: 200px;
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .user-content {
        padding: 20px;
    }
    
    .user-nav {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .hero-section {
        padding: 40px 20px;
    }
    
    .hero-section h1 {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .admin-nav {
        display: none;
    }
    
    .admin-content {
        margin-left: 0;
    }
}