/* Redirection Plugin Styles - Professional Light Redesign */

@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@400;600&family=Inter:wght@400;500;600&display=swap');

/* Redirect Page - Professional Light Design */
.dl-redirection-page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 999999;
    overflow-y: auto;
    padding: 40px 20px;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #374151;
}

.dl-redirection-container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    gap: 24px;
    align-items: stretch;
}



/* Left & Right Sections */
.dl-redirection-left-section,
.dl-redirection-right-section {
    width: 25%;
}

@media (max-width: 1024px) {
    .dl-redirection-left-section,
    .dl-redirection-right-section {
        display: none;
    }
    .dl-redirection-middle-section {
        width: 100% !important;
    }
}

/* Middle Section */
.dl-redirection-middle-section {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Top Content Area */
.dl-redirection-top-section {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding:  40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom:20px;
}

/* Professional Typography */
.dl-redirection-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px 0;
    line-height: 1.25;
}

.dl-redirection-file-size-display {
    margin-bottom: 32px;
    font-size: 14px;
    color: #6b7280;
}

.dl-redirection-size-label {
    font-weight: 500;
    margin-right: 4px;
}

.dl-redirection-size-value {
    color: #374151;
    font-weight: 600;
}

/* Timer Wrapper */
.dl-redirection-timer-wrapper {
    width: 100%;
    max-width: 400px;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Countdown Number */
.dl-redirection-countdown-number {
    font-size: 48px;
    font-weight: 400;
    color: #4b5563;
    margin-bottom: 20px;
    font-variant-numeric: tabular-nums;
}

/* Loading Bar - Subtle Style */
.dl-redirection-loading-bar-container {
    width: 100%;
}

.dl-redirection-loading-bar {
    width: 100%;
    height: 4px;
    background: #f3f4f6;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.dl-redirection-loading-bar-fill {
    height: 100%;
    width: 0%;
    background: #3b82f6;
    border-radius: 2px;
    transition: width 1s linear;
}

.dl-redirection-loading-text {
    margin-top: 16px;
    font-size: 14px;
    color: #9ca3af;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Hidden Content Appearance */
.dl-redirection-timer-content {
    margin-top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    animation: dlFadeIn 0.5s ease-out;
}

@keyframes dlFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dl-redirection-download-button-wrapper {
    margin: 20px 0;
}

.dl-redirection-download-btn {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
background: #2ac630;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    min-width: 200px;
}

.dl-redirection-download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    opacity:0.8;
    color: #ffffff;
}

.dl-redirection-btn-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    filter: invert(1);
}

.dl-redirection-adblock-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
}

.dl-redirection-adblock-icon {
    width: auto;
    max-height: 64px;
    max-width: 180px;
    object-fit: contain;
}

.dl-redirection-adblock-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #9c9c9c;
    text-align: center;
    max-width: 320px;
}

.dl-redirection-btn-text {
    display: inline-block;
}

.dl-redirection-file-size {
    display: inline-block;
    font-size: 11px;
    color: #ffffff;
    font-weight: 400;
}

/* Timer Shortcode Content */
.dl-redirection-timer-shortcode-content {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.dl-redirection-timer-shortcode-content > * {
    margin: 0 auto;
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .dl-redirection-page-overlay {
        padding: 20px 15px;
    }
    
    .dl-redirection-container {
        flex-direction: column;
    }
    
    .dl-redirection-title {
        font-size: 24px;
    }
    
    .dl-redirection-top-section {
        padding: 40px 20px;
    }
}

/* Simple Dot Animation */
.dl-redirection-loading-dots span {
    display: inline-block;
    width: 2px;
    height: 2px;
    background: #9ca3af;
    border-radius: 50%;
    margin: 0 1px;
    animation: dlSimpleDot 1.4s infinite;
}

@keyframes dlSimpleDot {
    0%, 80%, 100% { opacity: 0.2; }
    40% { opacity: 1; }
}

.dl-redirection-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.dl-redirection-loading-dots span:nth-child(3) { animation-delay: 0.4s; }

/* Modern Shimmer Container */
.dl-redirection-shimmer-wrapper {
    width: 100%;
    height: 100%;
    min-height: 400px;
    position: relative;
    background: #f9fafb; /* Slightly darker base for better contrast */
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f3f4f6;
}

/* The Shimmer Layer */
.dl-redirection-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f3f4f6; /* Static skeleton color */
}

.dl-redirection-shimmer::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    /* Focus on a soft, semi-transparent center */
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 20%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0.3) 80%,
        rgba(255, 255, 255, 0) 100%
    );
    /* Skew gives it that sleek 'swipe' look */
    transform: translateX(-100%) skewX(-15deg);
    animation: dlShimmerModern 1.8s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
}

@keyframes dlShimmerModern {
    0% {
        transform: translateX(-150%) skewX(-15deg);
    }
    50% {
        /* Optional: Pause or slow down in the middle if desired */
    }
    100% {
        transform: translateX(150%) skewX(-15deg);
    }
}

/* Full-width strip below main 3-column layout */
.dl-redirection-page-bottom-fullwidth {
    max-width: 1200px;
    width: 100%;
    margin: 32px auto 0;
    padding: 24px 20px 40px;
    box-sizing: border-box;
    border-top: 1px solid #e5e7eb;
}
.dl-redirection-page-bottom-inner {
    text-align: left;
}
.dl-page-bottom-description {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.5;
    color: #374151;
    text-align: left;
}
.dl-page-bottom-description:empty {
    display: none;
}
.dl-page-bottom-ad-area {
    min-height: 0;
    margin-top: 8px;
    text-align: center;
}
.dl-redirection-fallback-slot:empty {
    display: none !important;
}