/**
 * Component Styles
 * 
 * Reusable component styles for channel cards, video player, chat, etc.
 * 
 * @package Gobuxx
 * @version 1.0.0
 */

/* ========================================
   Font Faces
   ======================================== */

@font-face {
    font-family: 'GT Zirkon';
    src: url('../fonts/GTZirkon-Light.woff2') format('woff2'),
        url('../fonts/GTZirkon-Light.woff') format('woff'),
        url('../fonts/GTZirkon-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GT Zirkon Book';
    src: url('../fonts/GTZirkon-Book.woff2') format('woff2'),
        url('../fonts/GTZirkon-Book.woff') format('woff'),
        url('../fonts/GTZirkon-Book.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GT Zirkon';
    src: url('../fonts/GTZirkon-Regular.woff2') format('woff2'),
        url('../fonts/GTZirkon-Regular.woff') format('woff'),
        url('../fonts/GTZirkon-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GT Zirkon';
    src: url('../fonts/GTZirkon-Bold.woff2') format('woff2'),
        url('../fonts/GTZirkon-Bold.woff') format('woff'),
        url('../fonts/GTZirkon-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* ========================================
   Channel Cards (Grid Layout)
   ======================================== */

h1, h2, h3, h4, h5, h6{
    letter-spacing: -0.05em !important;
    font-weight: 500 !important;
}

.channel-grid {
    margin-top: 20px;
}

.channel-card {
    background-color: var(--darker-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    border: 2px solid transparent;
    height: 100%;
}

.channel-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(132, 220, 0, 0.3);
}

.channel-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.channel-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background-color: rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.channel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.channel-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(132, 220, 0, 0.3), rgba(132, 220, 0, 0.3));
}

.channel-placeholder i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.5);
}

.channel-info {
    padding: 1rem;
}

.channel-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.channel-description {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.channel-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}

/* ========================================
   Channel List Layout
   ======================================== */

.channel-list {
    margin-top: 20px;
}

.channel-list-item {
    background-color: var(--darker-bg);
    border-radius: 12px;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.channel-list-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(132, 220, 0, 0.2);
}

.channel-list-link {
    text-decoration: none;
    color: inherit;
}

.channel-list-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.3);
}

.channel-list-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.channel-list-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(132, 220, 0, 0.3), rgba(132, 220, 0, 0.3));
}

.channel-list-placeholder i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.5);
}

.channel-list-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.channel-list-description {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.channel-list-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ========================================
   Video Player Container
   ======================================== */

.video-container {
    position: relative;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.video-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
}

.video-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Video.js theme customization */
.video-js .vjs-big-play-button {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    line-height: 80px;
    font-size: 3rem;
}

.video-js .vjs-big-play-button:hover {
    background-color: #a0ff4f;
}

.video-js .vjs-control-bar {
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8));
}

/* ========================================
   Now Playing Info
   ======================================== */

.now-playing {
    background: linear-gradient(135deg, var(--darker-bg), var(--dark-bg));
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid rgba(132, 220, 0, 0.3);
    margin-top: 1rem;
}

.now-playing-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.now-playing-show {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.progress-bar-container {
    background-color: rgba(0, 0, 0, 0.3);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

/* ========================================
   Chat Container
   ======================================== */

.chat-container {
    background-color: var(--darker-bg);
    border-radius: 12px;
    height: 600px;
    display: flex;
    flex-direction: column;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.chat-header {
    padding: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, var(--darker-bg), var(--dark-bg));
}

.chat-header h5 {
    margin: 0;
    font-size: 1.1rem;
    color: white;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.chat-message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s;
}

.chat-message:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.chat-message-username {
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.chat-message-moderator {
    color: var(--accent-color);
}

.chat-message-time {
    font-size: 0.75rem;
    color: #666;
    margin-left: 0.5rem;
}

.chat-message-text {
    color: #ddd;
    word-wrap: break-word;
}

.chat-input-container {
    padding: 1rem;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.chat-input {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 20px;
    padding: 0.75rem 1rem;
}

.chat-input:focus {
    background-color: rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(132, 220, 0, 0.25);
}

.chat-send-btn {
    border-radius: 20px;
    padding: 0.75rem 1.5rem;
}

/* ========================================
   Playlist/Schedule
   ======================================== */

.playlist-container {
    background-color: var(--darker-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    max-height: 600px;
    overflow-y: auto;
}

.playlist-item {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 4px solid transparent;
    transition: all 0.3s;
}

.playlist-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-left-color: var(--primary-color);
}

.playlist-item.current {
    background-color: rgba(132, 220, 0, 0.2);
    border-left-color: var(--primary-color);
}

.playlist-item-show {
    font-weight: 600;
    color: white;
    font-size: 1rem;
}

.playlist-item-episode {
    color: #999;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.playlist-item-time {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    padding: 4rem 0;
    border-bottom: 2px solid rgba(132, 220, 0, 0.3);
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #999;
    margin-top: 1rem;
}

/* ========================================
   Section Headers
   ======================================== */

.section-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(132, 220, 0, 0.3);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.dropdown-menu{
    margin-top: 8px !important;
}

/* ========================================
   Responsive Adjustments
   ======================================== */

@media (max-width: 768px) {
    .chat-container {
        height: 400px;
    }
    
    .playlist-container {
        max-height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}