/* Homepage Primary Downloader Enhancements */

/* Reduce visual weight of non-functional elements */
.home .blog-card,
.home .sidebar-widget,
.home .secondary-navigation,
.home .footer-widgets,
.home .related-posts,
.home .comment-respond {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.home .blog-card:hover,
.home .sidebar-widget:hover,
.home .secondary-navigation:hover,
.home .footer-widgets:hover,
.home .related-posts:hover,
.home .comment-respond:hover {
    opacity: 1;
}

/* Center and elevate primary downloader */
.home .main-downloader {
    position: relative;
    z-index: 100;
    margin: 3rem 0;
}

.home .main-downloader .container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 60vh;
}

/* Clear hierarchy: Title → Input → Button */
.home .entry-header {
    text-align: center;
    margin-bottom: 2rem;
}

.home .entry-title {
    font-size: 2.5rem !important;
    font-weight: 700;
    color: var(--primary-navy, #0F172A);
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Reduce surrounding content visual weight */
.home .row:not(:has(.downloader-form)) {
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.home .row:hover {
    opacity: 1;
}

/* Reduce prominence of content that's not the downloader */
.home .entry-content > *:not(.downloader-form):not([id*="result"]) {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.home .entry-content > *:not(.downloader-form):not([id*="result"]):hover {
    opacity: 1;
}

/* Enhanced Downloader Form - Primary Focus */
.downloader-form {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    border: 2px solid var(--border-light, #E2E8F0);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 50;
    margin: 2rem auto;
    max-width: 600px;
}

/* Subtle glow effect */
.downloader-form::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, var(--cta-blue, #0369A1), #0284C7, var(--cta-blue, #0369A1));
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.downloader-form:hover {
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

.downloader-form:hover::before {
    opacity: 0.1;
}

/* Add subtle background separation */
.downloader-form::after {
    content: '';
    position: absolute;
    inset: -2rem;
    background: radial-gradient(ellipse at center, rgba(3, 105, 161, 0.05), transparent 70%);
    z-index: -1;
    border-radius: 30px;
}

/* Dominant Input Field */
.downloader-form input[type="url"],
.downloader-form input[type="text"] {
    width: 100%;
    padding: 1.75rem 2rem !important;
    border: 3px solid transparent !important;
    border-radius: 18px !important;
    font-size: 1.25rem !important;
    font-weight: 500;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, var(--border-light, #E2E8F0), #CBD5E1) border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem !important;
}

.downloader-form input[type="url"]:focus,
.downloader-form input[type="text"]:focus {
    outline: none !important;
    border: 3px solid var(--cta-blue, #0369A1) !important;
    background: white !important;
    box-shadow: 0 0 0 6px rgba(3, 105, 161, 0.08),
               inset 0 2px 4px rgba(0, 0, 0, 0.03) !important;
    transform: scale(1.02);
}

.downloader-form input[type="url"]::placeholder,
.downloader-form input[type="text"]::placeholder {
    color: var(--text-secondary, #475569);
    font-weight: 400;
}

/* Dominant Download Button */
.download-button {
    background: linear-gradient(135deg, var(--cta-blue, #0369A1), #0284C7, #0370A3) !important;
    color: white !important;
    border: none !important;
    border-radius: 16px !important;
    padding: 1.5rem 3rem !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px -8px rgba(3, 105, 161, 0.4);
    min-height: 64px;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 0 !important;
}

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

.download-button:hover {
    background: linear-gradient(135deg, #0284C7, var(--cta-blue, #0369A1), #025E7F) !important;
    box-shadow: 0 12px 35px -10px rgba(3, 105, 161, 0.5);
    transform: translateY(-2px);
}

.download-button:hover::after {
    left: 100%;
}

.download-button:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 6px 20px -8px rgba(3, 105, 161, 0.4);
}

.download-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.3);
}

.download-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading state */
.download-button.loading {
    color: transparent;
}

.download-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Reduce opacity of ad areas */
#ad-area-2,
#ad-area-4 {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

#ad-area-2:hover,
#ad-area-4:hover {
    opacity: 1;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .home .entry-title {
        font-size: 2rem !important;
    }
    
    .downloader-form {
        padding: 2rem 1.5rem;
    }
    
    .downloader-form input[type="url"],
    .downloader-form input[type="text"] {
        padding: 1.5rem 1.5rem !important;
        font-size: 1.1rem !important;
    }
    
    .download-button {
        padding: 1.25rem 2rem !important;
        font-size: 1.1rem !important;
        min-height: 56px;
    }
}