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

:root {
    --bg-primary: #000000;
    --bg-secondary: #0d0d0d;
    --bg-card: #1a1a1a;
    --border-color: #262626;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #525252;
}

.theme-amber {
    --text-primary: #fbbf24;
    --text-secondary: #d97706;
    --text-muted: #92400e;
}

.theme-green {
    --text-primary: #34d399;
    --text-secondary: #059669;
    --text-muted: #065f46;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
}

/* Header */
#main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.header-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--text-primary);
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.btn:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-primary);
}

.btn-outline {
    border-color: var(--text-primary);
}

/* Inputs */
.search-input,
.theme-selector,
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
    font-size: 0.875rem;
}

.search-input {
    min-width: 200px;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

/* Main Content */
main {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Carousel */
.carousel-wrapper {
    padding: 2rem 0;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.carousel {
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.carousel-track-container {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 1rem;
}

.carousel-item {
    min-width: 100%;
    cursor: pointer;
}

.carousel-item img,
.carousel-item video {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 6px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
}

.carousel-btn:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.carousel-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
}

.carousel-dot.active {
    background: var(--text-primary);
}

/* Filters */
.filters {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-pill {
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.category-pill:hover,
.category-pill.active {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    padding: 2rem 0;
}

.content-card {
    background: var(--bg-card);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
    border: 1px solid var(--border-color);
}

.content-card:hover {
    transform: scale(1.02);
    border-color: var(--text-primary);
}

.content-card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: var(--bg-secondary);
}

.content-card-body {
    padding: 1rem;
}

.content-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.content-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 1rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Responsive */
@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .carousel-item {
        min-width: 50%;
    }
}

@media (min-width: 1024px) {
    .carousel-item {
        min-width: 33.333%;
    }
}

/* Form Elements */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

/* Error State */
.error {
    background: #7f1d1d;
    color: #fecaca;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}

/* Play Overlay and Inline Video */
.card-thumbnail-wrapper {
    position: relative;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
}

.play-overlay:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-player-inline {
    width: 100%;
}

.video-player-inline iframe,
.video-player-inline video {
    width: 100%;
    border-radius: 0;
}

.content-card-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-height: 2rem;
}
