/* ================================================
   LATINBOOK VIDEOS - MODERN DESIGN
   Version: 2.0.0
   Date: 16 Mar 2026
   ================================================ */

/* ===========================
   VIDEOS HEADER
   =========================== */
.videos-header {
    background: linear-gradient(135deg, #FF6B35, #FF3CAC, #784BA0);
    padding: 40px 20px 25px;
    margin: -20px -20px 25px;
    border-radius: 0 0 25px 25px;
    box-shadow: 0 8px 30px rgba(255, 60, 172, 0.3);
}

.videos-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
}

.videos-title-group {
    flex: 1;
}

.videos-main-title {
    font-size: 32px;
    font-weight: 900;
    color: #FFFFFF;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.videos-main-title i {
    font-size: 36px;
    animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.videos-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-weight: 500;
}

.videos-actions {
    display: flex;
    gap: 12px;
}

.btn-create-video {
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.95);
    color: #FF3CAC;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-create-video:hover {
    background: #FFFFFF;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-create-video i {
    font-size: 18px;
}

/* ===========================
   SEARCH BAR
   =========================== */
.videos-search-container {
    margin-top: 25px;
    position: relative;
}

.videos-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 0 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.videos-search-box:focus-within {
    background: #FFFFFF;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.search-icon {
    font-size: 18px;
    color: #FF3CAC;
    margin-right: 12px;
}

.videos-search-input {
    flex: 1;
    padding: 16px 0;
    border: none;
    background: transparent;
    color: #1A1A1A;
    font-size: 15px;
    font-weight: 500;
    outline: none;
}

.videos-search-input::placeholder {
    color: #888;
    font-weight: 400;
}

.search-clear-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    border: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-clear-btn:hover {
    background: rgba(0, 0, 0, 0.12);
    color: #FF3CAC;
    transform: scale(1.1);
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.suggestion-item {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(255, 60, 172, 0.08);
    padding-left: 25px;
}

.suggestion-icon {
    color: #FF3CAC;
    font-size: 14px;
}

.suggestion-text {
    flex: 1;
    color: #1A1A1A;
    font-size: 14px;
    font-weight: 500;
}

.suggestion-count {
    color: #888;
    font-size: 12px;
    font-weight: 600;
}

/* Search Results Info */
.search-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.results-count {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
}

.btn-clear-search {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-clear-search:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

/* No Results Message */
.no-results-message {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.8);
}

.no-results-message i {
    font-size: 64px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

.no-results-message h3 {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.no-results-message p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

/* ===========================
   CATEGORY FILTERS
   =========================== */
.videos-categories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
}

.videos-categories::-webkit-scrollbar {
    height: 6px;
}

.videos-categories::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.videos-categories::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
}

.videos-categories::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.6);
}

.category-chip {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-chip:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.category-chip.active {
    background: #FFFFFF;
    color: #FF3CAC;
    border-color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.category-chip i {
    font-size: 16px;
}

/* ===========================
   VIDEOS GRID
   =========================== */
.videos-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

/* ===========================
   VIDEO CARD
   =========================== */
.video-card-modern {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

.video-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(255, 60, 172, 0.2);
}

/* ===========================
   VIDEO THUMBNAIL
   =========================== */
.video-thumbnail-modern {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: #000;
}

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

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

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

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

.video-play-modern {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #FF6B35, #FF3CAC);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    box-shadow: 0 8px 25px rgba(255, 60, 172, 0.5);
    transition: all 0.3s ease;
}

.video-play-modern:hover {
    transform: scale(1.15);
    box-shadow: 0 10px 30px rgba(255, 60, 172, 0.7);
}

/* Video Badge */
.video-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.video-badge.video-corto {
    background: linear-gradient(135deg, #FF6B35, #FF3CAC);
    color: white;
}

.video-badge.video-trending {
    background: linear-gradient(135deg, #FFD700, #FF6B35);
    color: white;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
    }
}

/* Video Duration */
.video-duration-modern {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    z-index: 2;
    backdrop-filter: blur(10px);
}

/* Quick Actions */
.video-actions-quick {
    position: absolute;
    right: 12px;
    bottom: 50px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    z-index: 3;
}

.video-card-modern:hover .video-actions-quick {
    opacity: 1;
    transform: translateX(0);
}

.quick-action-btn {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    color: #FF3CAC;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
}

.quick-action-btn span {
    font-size: 10px;
    font-weight: 700;
    color: #1A1A1A;
}

.quick-action-btn:hover {
    background: linear-gradient(135deg, #FF6B35, #FF3CAC);
    color: white;
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(255, 60, 172, 0.5);
}

.quick-action-btn:hover span {
    color: white;
}

/* ===========================
   VIDEO INFO
   =========================== */
.video-info-modern {
    padding: 15px;
}

.video-author-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.author-avatar-modern {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border);
    object-fit: cover;
}

.author-details {
    flex: 1;
}

.video-title-modern {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-light);
    margin: 0 0 4px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-author-name {
    font-size: 14px;
    color: var(--text-dim);
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.verified-icon {
    color: #3B82F6;
    font-size: 12px;
}

.video-stats-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-dim);
}

.video-stats-modern i {
    color: #FF3CAC;
    font-size: 14px;
}

.stat-dot {
    color: var(--text-dim);
    opacity: 0.5;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 1024px) {
    .videos-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .videos-header {
        padding: 30px 15px 20px;
        margin: -20px -15px 20px;
        border-radius: 0 0 20px 20px;
    }

    .videos-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .videos-main-title {
        font-size: 26px;
    }

    .videos-main-title i {
        font-size: 28px;
    }

    .videos-subtitle {
        font-size: 14px;
    }

    .btn-create-video {
        width: 100%;
        justify-content: center;
    }

    .videos-search-box {
        padding: 0 15px;
    }

    .videos-search-input {
        padding: 14px 0;
        font-size: 14px;
    }

    .videos-search-input::placeholder {
        font-size: 13px;
    }

    .search-results-info {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .btn-clear-search {
        width: 100%;
        justify-content: center;
    }

    .videos-categories {
        gap: 8px;
    }

    .category-chip {
        padding: 8px 16px;
        font-size: 13px;
    }

    .videos-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
        padding: 0 10px;
    }

    .video-play-modern {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }

    .quick-action-btn {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .quick-action-btn span {
        font-size: 9px;
    }

    .video-title-modern {
        font-size: 14px;
    }

    .author-avatar-modern {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .videos-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 10px;
    }

    .video-actions-quick {
        right: 8px;
        bottom: 40px;
        gap: 8px;
    }

    .quick-action-btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .quick-action-btn span {
        font-size: 8px;
    }
}

/* ===========================
   LIGHT THEME
   =========================== */
[data-theme="light"] .video-card-modern {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .video-title-modern {
    color: #1A1A1A;
}

[data-theme="light"] .video-author-name {
    color: #404040;
}

[data-theme="light"] .video-stats-modern {
    color: #666666;
}

[data-theme="light"] .author-avatar-modern {
    border-color: rgba(0, 0, 0, 0.1);
}

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

.video-card-modern {
    animation: fadeInUp 0.5s ease;
}

.video-card-modern:nth-child(1) { animation-delay: 0.1s; }
.video-card-modern:nth-child(2) { animation-delay: 0.2s; }
.video-card-modern:nth-child(3) { animation-delay: 0.3s; }
.video-card-modern:nth-child(4) { animation-delay: 0.4s; }
.video-card-modern:nth-child(5) { animation-delay: 0.5s; }
.video-card-modern:nth-child(6) { animation-delay: 0.6s; }
