/* ============================================
   IMC INTERNATIONAL - VIDEOS PAGE
   Video gallery and media showcase styles
   ============================================ */

/* === VIDEO FILTERS === */
.video-filters {
    padding: 2rem 0;
    background: var(--background-darker);
    position: sticky;
    top: 80px;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--secondary-color);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient-primary);
    border-color: var(--secondary-color);
    color: var(--text-primary);
    box-shadow: 0 4px 16px rgba(62, 146, 204, 0.3);
}

.filter-btn i {
    font-size: 1rem;
}

/* === FEATURED VIDEO === */
.featured-video-section {
    padding: 6rem 0;
    background: var(--background-dark);
}

.featured-badge {
    background: rgba(255, 215, 0, 0.1);
    border-color: #FFD700;
    color: #FFD700;
    margin-bottom: 1rem;
}

.featured-video {
    max-width: 1200px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: var(--surface-dark);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--background-dark);
    cursor: pointer;
    transition: all var(--transition-medium);
    z-index: 2;
    box-shadow: 0 8px 32px rgba(0, 255, 209, 0.4);
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 48px rgba(0, 255, 209, 0.6);
}

.play-button i {
    margin-left: 0.25rem;
}

.featured-video-info {
    margin-top: 2rem;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-meta i {
    color: var(--accent-color);
}

.featured-video-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* === VIDEO GALLERY === */
.video-gallery-section {
    padding: 6rem 0;
    background: var(--background-darker);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.video-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-medium);
    cursor: pointer;
}

.video-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--secondary-color);
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.video-card[data-category]:not([data-category="all"]) {
    display: block;
}

.video-card.hidden {
    display: none;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    overflow: hidden;
    background: var(--surface-dark);
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

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

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-medium);
}

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

.play-btn {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--background-dark);
    cursor: pointer;
    transition: all var(--transition-medium);
    box-shadow: 0 4px 16px rgba(0, 255, 209, 0.4);
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 255, 209, 0.6);
}

.play-btn i {
    margin-left: 0.15rem;
}

.video-duration {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.video-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.video-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.video-info .video-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* === LOAD MORE === */
.load-more-section {
    text-align: center;
    margin-top: 4rem;
}

.load-more-btn {
    padding: 1rem 2.5rem;
}

/* === VIDEO REQUEST === */
.video-request-section {
    padding: 6rem 0;
    background: var(--gradient-primary);
    text-align: center;
}

.request-content {
    max-width: 700px;
    margin: 0 auto;
}

.request-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--accent-color);
}

.request-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.request-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* === VIDEO RESOURCES === */
.video-resources {
    padding: 6rem 0;
    background: var(--background-dark);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.resource-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-medium);
}

.resource-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--secondary-color);
    transform: translateY(-10px);
}

.resource-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-primary);
}

.resource-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.resource-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.resource-link:hover {
    gap: 0.75rem;
    color: var(--secondary-color);
}

/* === VIDEO MODAL === */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.video-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    z-index: 2;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--accent-color);
    color: var(--background-dark);
    transform: rotate(90deg);
}

.modal-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: var(--surface-dark);
    border-radius: 12px;
    overflow: hidden;
}

.video-player-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* === CATEGORY SPECIFIC COLORS === */
.video-card[data-category="demos"] .video-category {
    background: linear-gradient(135deg, #0A2463 0%, #3E92CC 100%);
}

.video-card[data-category="tutorials"] .video-category {
    background: linear-gradient(135deg, #3E92CC 0%, #00FFD1 100%);
}

.video-card[data-category="features"] .video-category {
    background: linear-gradient(135deg, #00FFD1 0%, #30cfd0 100%);
}

.video-card[data-category="testimonials"] .video-category {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.video-card[data-category="webinars"] .video-category {
    background: linear-gradient(135deg, #f857a6 0%, #ff5858 100%);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 992px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .filter-buttons {
        gap: 0.75rem;
    }
    
    .filter-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .video-filters {
        top: 70px;
        padding: 1.5rem 0;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .filter-btn span {
        display: none;
    }
    
    .filter-btn i {
        margin: 0;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .play-button {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .request-content h2 {
        font-size: 2rem;
    }
    
    .request-content p {
        font-size: 1rem;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    .modal-close {
        top: -40px;
    }
}

@media (max-width: 480px) {
    .video-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .featured-video-section {
        padding: 4rem 0;
    }
    
    .video-gallery-section {
        padding: 4rem 0;
    }
}

/* === ANIMATION STATES === */
.video-card {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === SKELETON LOADING === */
.video-card.loading .video-thumbnail {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}