/* MediaLog - Shared Styles for All Pages */

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 30px;
}

/* Cards */
.card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.card-title {
    font-size: 1.5em;
    font-weight: 700;
    color: #1a1a1a;
}

.card-icon {
    font-size: 2em;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-card.highlight {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.stat-number {
    font-size: 2.5em;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 10px;
}

.stat-card.highlight .stat-number {
    color: white;
}

.stat-label {
    font-size: 0.95em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.stat-card.highlight .stat-label {
    color: rgba(255,255,255,0.9);
}

/* Page Headers */
h1 {
    font-size: 3em;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

h2 {
    font-size: 1.8em;
    font-weight: 700;
    color: white;
    margin: 40px 0 20px;
}

.subtitle {
    font-size: 1.2em;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

/* Media Items */
.media-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.media-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.media-poster {
    width: 60px;
    height: 85px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.media-info {
    flex: 1;
}

.media-title {
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
    font-size: 0.95em;
}

.media-meta {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 5px;
}

.media-stars {
    color: #d4af37;
    font-size: 0.85em;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-book {
    background: #1976d2;
    color: white;
}

.badge-movie {
    background: #c2185b;
    color: white;
}

.badge-gold {
    background: #d4af37;
    color: white;
}

/* Grids */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state-icon {
    font-size: 5em;
    margin-bottom: 20px;
    opacity: 0.5;
}

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

.empty-state p {
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}
