/* UOL Flash Plugin Styles */

.uol-flash-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.uol-flash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.uol-flash-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.uol-flash-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.uol-flash-thumb {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.uol-flash-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.uol-flash-card:hover .uol-flash-thumb img {
    transform: scale(1.05);
}

.uol-flash-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.uol-flash-play-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.uol-flash-content {
    padding: 20px;
}

.uol-flash-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
}

.uol-flash-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.uol-flash-title a:hover {
    color: #007cba;
}

.uol-flash-excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.uol-flash-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10;
}

.uol-flash-video iframe,
.uol-flash-video video {
    width: 100%;
    height: 100%;
}

.uol-flash-load-more {
    text-align: center;
    margin-top: 30px;
}

#load-more-drops {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

#load-more-drops:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#load-more-drops:active {
    transform: translateY(0);
}

#load-more-drops:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading animation */
.uol-flash-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Category filters */
.uol-flash-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.uol-flash-filter {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #495057;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.uol-flash-filter:hover,
.uol-flash-filter.active {
    background: #007cba;
    border-color: #007cba;
    color: white;
    text-decoration: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .uol-flash-container {
        padding: 15px;
    }
    
    .uol-flash-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .uol-flash-card {
        border-radius: 8px;
    }
    
    .uol-flash-thumb {
        height: 180px;
    }
    
    .uol-flash-content {
        padding: 15px;
    }
    
    .uol-flash-title {
        font-size: 16px;
    }
    
    .uol-flash-excerpt {
        font-size: 13px;
    }
    
    .uol-flash-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .uol-flash-filter {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .uol-flash-container {
        padding: 10px;
    }
    
    .uol-flash-thumb {
        height: 160px;
    }
    
    .uol-flash-play-button {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
    
    #load-more-drops {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .uol-flash-card {
        background: #1a1a1a;
        color: #fff;
    }
    
    .uol-flash-title {
        color: #fff;
    }
    
    .uol-flash-excerpt {
        color: #ccc;
    }
    
    .uol-flash-filter {
        background: #2a2a2a;
        border-color: #3a3a3a;
        color: #ccc;
    }
    
    .uol-flash-filter:hover,
    .uol-flash-filter.active {
        background: #007cba;
        border-color: #007cba;
        color: white;
    }
}

/* Animation for new cards loading */
.uol-flash-card.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Video modal overlay */
.uol-flash-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.uol-flash-video-modal.active {
    opacity: 1;
    visibility: visible;
}

.uol-flash-video-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.uol-flash-video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.uol-flash-video-modal iframe,
.uol-flash-video-modal video {
    width: 100%;
    height: 100%;
}

