/**
 * Modern Download UI - Visolix Video Downloader
 * Simple, Clean, Mobile-First Design
 */

/* ============================================
   DOWNLOAD BOX
   ============================================ */
#visolix-downloadbox {
    padding: 0;
    margin: 20px 0;
    width: 100%;
}

/* ============================================
   DOWNLOAD CARD - INSTAGRAM GRADIENT BACKGROUND
   ============================================ */
.visolix-download-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);
    margin-bottom: 24px;
    animation: fadeIn 0.3s ease;
    position: relative;
    overflow: hidden;
}

.visolix-download-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, rgba(240, 148, 51, 0.1) 0%, rgba(220, 39, 67, 0.1) 50%, rgba(188, 24, 136, 0.1) 100%);
    animation: gradientRotate 10s linear infinite;
    pointer-events: none;
}

@keyframes gradientRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.visolix-download-card-inner {
    position: relative;
    z-index: 1;
}

/* ============================================
   VIDEO INFO
   ============================================ */
.visolix-video-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

/* ============================================
   THUMBNAIL - INSTAGRAM GRADIENT BORDER
   ============================================ */
.visolix-thumbnail-wrapper {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    padding: 3px;
    box-shadow: 0 8px 24px rgba(240, 148, 51, 0.3);
    transition: all 0.3s ease;
}

.visolix-thumbnail-wrapper:hover {
    box-shadow: 0 12px 32px rgba(240, 148, 51, 0.5);
    transform: translateY(-2px);
}

.visolix-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 13px;
    transition: transform 0.3s ease;
    background: #000;
}

.visolix-thumbnail-wrapper:hover .visolix-thumbnail {
    transform: scale(1.03);
}

.visolix-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(240, 148, 51, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
    animation: pulse-play 2s ease-in-out infinite;
}

.visolix-thumbnail-wrapper:hover .visolix-play-overlay {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 12px 32px rgba(240, 148, 51, 0.7);
}

.visolix-play-icon {
    width: 0;
    height: 0;
    border-left: 20px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes pulse-play {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(240, 148, 51, 0.5);
    }
    50% {
        box-shadow: 0 8px 32px rgba(220, 39, 67, 0.7);
    }
}

/* ============================================
   VIDEO DETAILS - OQ MATN
   ============================================ */
.visolix-video-details {
    color: white;
}

.visolix-video-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 12px 0;
    line-height: 1.4;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.visolix-video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
}

.visolix-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-weight: 600;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.visolix-meta-item:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.visolix-meta-icon {
    font-size: 16px;
}

/* ============================================
   DOWNLOAD BUTTONS - ZAMONAVIY DIZAYN
   ============================================ */
.visolix-download-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
}

.visolix-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 24px;
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(240, 148, 51, 0.4);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.5s ease-out backwards;
}

/* Shimmer effect */
.visolix-download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.visolix-download-btn:hover::before {
    left: 100%;
}

/* Pulse animation on hover */
.visolix-download-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(240, 148, 51, 0.6);
    animation: pulse 1.5s ease-in-out infinite;
}

.visolix-download-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* Download icon animation */
.visolix-download-btn:hover .visolix-download-icon {
    animation: bounce 0.6s ease-in-out;
}

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

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(240, 148, 51, 0.6);
    }
    50% {
        box-shadow: 0 8px 35px rgba(220, 39, 67, 0.8);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-5px);
    }
    50% {
        transform: translateY(0);
    }
    75% {
        transform: translateY(-3px);
    }
}

.visolix-btn-content {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.visolix-download-icon {
    font-size: 28px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    background: rgba(255, 255, 255, 0.2);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.visolix-download-btn:hover .visolix-download-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(360deg);
}

.visolix-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-align: left;
}

.visolix-btn-quality {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.visolix-btn-format {
    font-size: 13px;
    opacity: 0.95;
    font-weight: 500;
}

.visolix-btn-size {
    font-size: 14px;
    font-weight: 700;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ============================================
   LOADING
   ============================================ */
.visolix-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.visolix-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(0, 217, 255, 0.2);
    border-top-color: #00d9ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.visolix-loading-text {
    margin-top: 16px;
    font-size: 15px;
    font-weight: 600;
    color: #00d9ff;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (min-width: 768px) {
    .visolix-download-card {
        padding: 24px;
    }
    
    .visolix-video-info {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .visolix-thumbnail-wrapper {
        width: 320px;
        flex-shrink: 0;
    }
    
    .visolix-thumbnail {
        height: 180px;
    }
    
    .visolix-download-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   RESPONSIVE - DESKTOP
   ============================================ */
@media (min-width: 1024px) {
    .visolix-download-card {
        padding: 28px;
    }
    
    .visolix-thumbnail-wrapper {
        width: 360px;
    }
    
    .visolix-thumbnail {
        height: 200px;
    }
    
    .visolix-download-options {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   DARK MODE
   ============================================ */
@media (prefers-color-scheme: dark) {
    .visolix-download-card {
        background: #1a1a1a;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    }
    
    .visolix-video-title {
        color: #ffffff;
    }
    
    .visolix-video-meta {
        color: #aaa;
    }
    
    .visolix-thumbnail-wrapper {
        background: #2a2a2a;
    }
}
