/* Media Center Styles - Professional Flat Version */

.page-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 20px 0 30px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
}

/* Tabs */
.media-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--gray-100);
}

.tab-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: var(--transition-base);
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: var(--bg-soft);
    padding: 1.25rem;
    border-radius: 4px;
}

.search-box {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: white;
    min-width: 150px;
}

/* Grids */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.media-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
}

.media-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.media-item:hover img {
    transform: scale(1.08);
}

.media-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    padding: var(--space-md);
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 40%, rgba(0,0,0,0.4) 70%, transparent 100%);
    color: #fff;
    opacity: 0;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.media-info h4,
.media-info p {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8), 0 2px 6px rgba(0,0,0,0.6);
    margin: 0.25rem 0;
}

.media-info h4 {
    font-size: 1rem;
    font-weight: 600;
}

.media-info p {
    font-size: 0.875rem;
    opacity: 0.9;
}

.media-item:hover .media-info {
    opacity: 1;
}

/* Video Items */
.video-item {
    background: white;
    border: 1px solid var(--border-color);
}

.video-thumb {
    position: relative;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(45, 106, 79, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.video-info {
    padding: var(--space-md);
    background: white;
}

.video-info h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-main);
}

/* Albums */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.album-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.album-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.album-cover {
    height: 240px;
    background: var(--gray-100);
}

.album-details {
    padding: var(--space-lg);
}

.album-details h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.album-details p { color: var(--text-muted); font-size: 0.9rem; }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    padding: 40px;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.lightbox .close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
}

.media-content {
    display: none;
}

.media-content.active {
    display: block;
}
