/* ========================================
   SOCIAL MEDIA PAGE — Styles
   ======================================== */

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab:hover {
    color: var(--text-main);
    background: rgba(40, 42, 48, 0.7);
    border-color: rgba(255, 255, 255, 0.3);
}

.filter-tab.active {
    color: var(--text-main);
    background: rgba(243, 156, 18, 0.15);
    border-color: rgba(243, 156, 18, 0.4);
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.08);
}

/* --- Video Grid --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    width: 100%;
}

/* --- Video Card --- */
.video-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    transition: var(--transition);
    aspect-ratio: 9 / 12;
    backdrop-filter: blur(10px);
}

.video-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.video-card:hover .video-card-thumb {
    transform: scale(1.06);
    filter: brightness(0.8);
}

/* Overlay gradient on card */
.video-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        transparent 70%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    transition: var(--transition);
}

.video-card:hover .video-card-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.6) 45%,
        rgba(0, 0, 0, 0.2) 70%
    );
}

.video-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.video-card-platform {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: 20px;
    width: fit-content;
}

.video-card-platform.tiktok {
    background: rgba(255, 0, 80, 0.2);
    color: #ff3b6e;
    border: 1px solid rgba(255, 0, 80, 0.3);
}

.video-card-platform.youtube {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4444;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

/* Discord Button */
#discord-widget-btn {
    transition: all 0.2s ease;
}

#discord-widget-btn:hover {
    background: #5865F2 !important;
    border-color: #5865F2 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

/* No-image placeholder */
.video-card-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, rgba(243,156,18,0.1), rgba(255,255,255,0.5));
    position: relative;
    z-index: 1;
}

/* --- Modal Overlay --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background: var(--bg-color);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(243, 156, 18, 0.1);
}

.modal-overlay.open .modal-card {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 16px;
    border-bottom: 1px solid var(--card-border);
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    border-radius: 8px;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

.detail-body {
    padding: 24px 28px 28px;
}

.detail-thumbnail {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--card-border);
    aspect-ratio: 16 / 9;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.detail-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.detail-badge {
    font-size: 0.82rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    text-transform: capitalize;
}

.detail-badge.tiktok {
    background: rgba(255, 0, 80, 0.15);
    color: #ff3b6e;
    border: 1px solid rgba(255, 0, 80, 0.25);
}

.detail-badge.youtube {
    background: rgba(255, 0, 0, 0.15);
    color: #ff4444;
    border: 1px solid rgba(255, 0, 0, 0.25);
}

.detail-link-value {
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.detail-link-value:hover {
    color: #fff;
    text-decoration: underline;
}

@keyframes cardEnter {
    0% { opacity: 0; transform: translateY(30px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.video-card {
    animation: cardEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .video-card {
        aspect-ratio: 9 / 14;
    }
}
@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}
