/**
 * 방송 게시판 스타일
 * 
 * @package    Joyn_Broadcast
 * @since      1.0.0
 */

.joyn-broadcast-board {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.joyn-board-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.joyn-btn--submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.joyn-btn--submit:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.joyn-btn--submit i {
    font-size: 18px;
}

.joyn-board-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
}

.joyn-filter-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.joyn-filter-item:hover {
    background: #e0e0e0;
    color: #333;
}

.joyn-filter-item.active {
    background: var(--cat-color, #667eea);
    color: white;
}

.joyn-live-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.joyn-live-banner__left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.joyn-live-banner__indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
}

.joyn-live-banner__dot {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.joyn-live-banner__info h3 {
    margin: 0 0 5px;
    font-size: 18px;
}

.joyn-live-banner__info h3 a {
    color: white;
    text-decoration: none;
}

.joyn-live-banner__info p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.joyn-live-banner__viewers {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
}

.joyn-board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.joyn-board-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.joyn-broadcast-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.joyn-broadcast-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.joyn-card__thumbnail {
    position: relative;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: #000;
    cursor: pointer;
}

.joyn-card__thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.joyn-card__thumbnail:hover img {
    transform: scale(1.05);
}

.joyn-card__thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.joyn-card__thumbnail:hover::after {
    opacity: 1;
    content: '▶';
    font-size: 48px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.joyn-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    z-index: 2;
}

.joyn-card__badge--live {
    background: #ef4444;
}

.joyn-card__badge--scheduled {
    background: #f59e0b;
}

.joyn-card__badge--completed {
    background: #6b7280;
}

.joyn-card__category {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: white;
    z-index: 2;
}

.joyn-card__content {
    padding: 15px;
}

.joyn-card__title,
.joyn-broadcast-card .joyn-card__title,
.joyn-broadcast-card h3.joyn-card__title {
    margin: 0 0 10px !important;
    font-size: 16px !important;
    font-weight: 600;
    line-height: 1.4;
}

.joyn-card__title a,
.joyn-card__title-link {
    color: #333;
    text-decoration: none;
    font-size: inherit !important;
}

.joyn-card__title a:hover,
.joyn-card__title-link:hover {
    color: #667eea;
}

.joyn-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.joyn-card__stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #999;
}

.joyn-card__stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.joyn-board-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    background: white;
    border-radius: 8px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.joyn-board-empty__content {
    max-width: 500px;
}

.joyn-board-empty i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
    color: #ccc;
    display: block;
}

.joyn-board-empty h3 {
    font-size: 20px;
    margin: 0 0 10px;
    color: #666;
}

.joyn-board-empty p {
    font-size: 16px;
    margin: 0 0 20px;
    color: #999;
}

.joyn-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.joyn-btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.joyn-btn--primary {
    background: #667eea;
}

.joyn-empty-subtitle {
    font-size: 14px;
    color: #666;
    margin-top: 15px;
}

.joyn-empty-subtitle a {
    color: #667eea;
    text-decoration: none;
}

.joyn-board-pagination {
    margin-top: 40px;
    text-align: center;
}

.joyn-board-pagination ul {
    display: inline-flex;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.joyn-board-pagination li {
    display: inline-block;
}

.joyn-board-pagination a,
.joyn-board-pagination span {
    display: block;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    color: #666;
}

.joyn-board-pagination .current {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.joyn-board-pagination a:hover {
    background: #f5f5f5;
}

@media (max-width: 768px) {
    .joyn-board-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .joyn-live-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .joyn-filter-item i {
        display: none;
    }
    
    .joyn-card__title {
        font-size: 14px !important;
    }
    
    .joyn-broadcast-card .joyn-card__title,
    .joyn-broadcast-card h3.joyn-card__title {
        font-size: 14px !important;
    }
}
