/* Reset default WordPress/browser styles */
.video-portfolio * {
    box-sizing: border-box;
}

.video-portfolio a,
.video-portfolio button {
    text-decoration: none;
    outline: none;
}

.video-portfolio button:focus,
.video-portfolio button:active {
    outline: none;
    box-shadow: none;
}

.video-portfolio {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background-color: #0a0a0a;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 4rem;
}

.category-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.filter-btn {
    padding: 0.75rem 1.75rem;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #9ca3af;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
    outline: none;
}

.filter-btn:hover,
.filter-btn:focus {
    border-color: #fbbf24;
    color: #fbbf24;
    background-color: rgba(251, 191, 36, 0.05);
    outline: none;
}

.filter-btn.active {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-color: transparent;
    color: #0a0a0a;
}

.filter-btn.active:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.loading {
    text-align: center;
    padding: 4rem;
    color: #9ca3af;
    font-size: 1.1rem;
}

.video-card {
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(251, 191, 36, 0.2);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background-color: #000;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.08);
}

.video-thumbnail iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.play-button {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.video-card:hover .play-button {
    transform: scale(1.1);
}

.play-button svg {
    width: 32px;
    height: 32px;
    fill: #0a0a0a;
    margin-left: 4px;
}

.video-category-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.video-info {
    padding: 1.5rem;
    background-color: #1a1a1a;
}

.video-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.video-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #9ca3af;
    display: block;
}

@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .category-filters {
        gap: 0.75rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.875rem;
    }
}