/* Downloads Page Specific Styles */

.downloads-hero {
    padding: 80px 0 40px;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15), transparent 70%);
}

.downloads-hero h1 {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.downloads-hero p {
    font-size: 20px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Section */
.downloads-filter {
    padding: 40px 0;
    background: var(--bg-darker);
}

.filter-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 14px 20px;
    background: var(--card-bg);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 16px;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-box input::placeholder {
    color: var(--text-gray);
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--card-bg);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    color: var(--text-gray);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 14px;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-color: transparent;
    color: white;
}

/* Downloads Section */
.downloads-section {
    padding: 60px 0 100px;
    background: transparent;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.download-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.download-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(251, 191, 36, 0.3);
    border-color: rgba(251, 191, 36, 0.3);
}

.stock-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #fbbf24;
    color: #000;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    z-index: 10;
}

.stock-badge.low-stock {
    background: rgba(251, 191, 36, 0.9);
    color: #000;
    animation: pulse 2s ease-in-out infinite;
}

.stock-badge.out-of-stock {
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
}

.product-image-container {
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    position: relative;
}

.product-image-container::before,
.product-image-container::after {
    content: none !important;
    display: none !important;
}

.product-image {
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    animation: floatAndRotate 6s ease-in-out infinite;
    transform-origin: center;
}

@keyframes floatAndRotate {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-15px) rotate(5deg) scale(1.05);
    }
    50% {
        transform: translateY(-20px) rotate(0deg) scale(1.08);
    }
    75% {
        transform: translateY(-15px) rotate(-5deg) scale(1.05);
    }
}

.download-card:hover .product-image {
    animation-play-state: paused;
    transform: scale(1.1) rotate(0deg);
    transition: transform 0.3s ease;
}

.product-brand-logo {
    position: absolute;
    bottom: 100px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: #2a2a2a;
    border-radius: 12px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #3a3a3a;
}

.product-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.download-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.download-icon svg {
    width: 32px;
    height: 32px;
}

.download-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.product-mini-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: #2a2a2a;
    padding: 5px;
    border: 2px solid #3a3a3a;
    flex-shrink: 0;
}

.product-text {
    flex: 1;
}

.download-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 3px;
    color: #ffffff;
}

.product-subtitle {
    color: #888;
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

.product-price-new {
    margin-top: auto;
}

.price-amount {
    font-size: 24px;
    font-weight: 800;
    color: #fbbf24;
}

.download-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 14px;
}

.file-size,
.download-count {
    color: var(--text-gray);
}

.file-type {
    background: rgba(99, 102, 241, 0.2);
    padding: 4px 12px;
    border-radius: 6px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Price Options */
.price-options {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.price-option {
    flex: 1;
    padding: 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
}

.price-option.subscription {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    border-color: rgba(139, 92, 246, 0.4);
}

.price-option:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.price-option.subscription:hover {
    border-color: var(--secondary-color);
}

.price-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-gray);
    margin-bottom: 6px;
    font-weight: 600;
}

.price-value {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-option.subscription .price-value {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.buy-btn {
    width: calc(100% - 40px);
    margin: 0 20px 20px 20px;
    padding: 16px 24px;
    background: #fbbf24;
    border: none;
    border-radius: 12px;
    color: #000;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    text-decoration: none;
}

.buy-btn:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.5);
}

.buy-btn:active {
    transform: translateY(0);
}

.download-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    margin-top: auto;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.download-btn:active {
    transform: translateY(0);
}

.download-btn svg {
    transition: transform 0.3s;
}

.download-btn:hover svg {
    transform: translateY(3px);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 1;
}

.no-results h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.no-results p {
    color: var(--text-gray);
    font-size: 18px;
}

/* Installation Guide */
.installation-guide {
    padding: 100px 0;
    background: var(--bg-darker);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.guide-step {
    text-align: center;
    padding: 40px 20px;
    background: var(--card-bg);
    border-radius: 16px;
    border: 2px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s;
}

.guide-step:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.guide-step h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 700;
}

.guide-step p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Support Section */
.support-section {
    padding: 80px 0;
}

.support-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
}

.support-box h2 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 900;
}

.support-box p {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.support-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Active Link Style */
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .downloads-hero h1 {
        font-size: 40px;
    }

    .downloads-hero p {
        font-size: 16px;
    }

    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        min-width: 100%;
    }

    .filter-buttons {
        justify-content: center;
    }

    .downloads-grid {
        grid-template-columns: 1fr;
    }

    .guide-grid {
        grid-template-columns: 1fr;
    }

    .support-box {
        padding: 40px 20px;
    }

    .support-box h2 {
        font-size: 28px;
    }

    .support-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .downloads-hero h1 {
        font-size: 32px;
    }

    .filter-btn {
        font-size: 12px;
        padding: 8px 16px;
    }

    .download-card {
        padding: 20px;
    }

    .download-info h3 {
        font-size: 18px;
    }
}

/* Animation for download button */
@keyframes downloadPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.download-btn.downloading {
    animation: downloadPulse 2s infinite;
    pointer-events: none;
    opacity: 1;
}

.download-btn.downloading span::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}