/* Download Landing Page Styling */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    --card-bg: rgba(15, 23, 42, 0.45);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --primary-color: #38bdf8;
    --primary-glow: rgba(56, 189, 248, 0.15);
    --accent-color: #10b981;
    --danger-color: #ef4444;
}

body.ere-download-body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.ere-download-wrapper {
    width: 100%;
    max-width: 580px;
    padding: 20px;
}

/* Glassmorphism Card styling */
.ere-glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: ereFadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* App Header styling */
.ere-app-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
}

.ere-app-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px var(--primary-glow);
}

.ere-app-meta {
    flex-grow: 1;
}

.ere-app-name {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.ere-app-badges {
    display: flex;
    gap: 8px;
}

.ere-badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.ere-badge-version {
    color: var(--primary-color);
    background: rgba(56, 189, 248, 0.05);
}

/* Countdown Container */
.ere-countdown-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.ere-countdown-text {
    margin: 0 0 16px 0;
    color: var(--text-secondary);
    font-size: 15px;
}

.ere-seconds {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 2px;
    display: inline-block;
    min-width: 20px;
}

/* Progress track */
.ere-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.ere-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 100%);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--primary-color);
    transition: width 1s linear;
}

/* Trigger Button section */
.ere-trigger-container {
    text-align: center;
    margin-bottom: 35px;
}

.ere-trigger-muted {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.ere-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 14px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.ere-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* Mirrors List */
.ere-mirrors-container {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
}

.ere-mirrors-title {
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 16px 0;
    color: var(--text-secondary);
}

.ere-mirrors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.ere-mirror-card {
    display: flex;
    flex-direction: column;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.ere-mirror-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.ere-mirror-name {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
}

.ere-mirror-status {
    font-size: 11px;
    color: var(--accent-color);
}

/* Keyframes */
@keyframes ereFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .ere-glass-card {
        padding: 24px;
        border-radius: 16px;
    }
    .ere-mirrors-grid {
        grid-template-columns: 1fr;
    }
}

/* Inline Download Card for Posts & Pages */
.ere-download-card {
    max-width: 500px;
    margin: 20px auto;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    color: #f8fafc;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    font-family: 'Outfit', sans-serif;
    box-sizing: border-box;
}

.ere-download-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.ere-download-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ere-download-meta {
    flex-grow: 1;
}

.ere-download-title {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
}

.ere-download-ver {
    font-size: 12px;
    color: #94a3b8;
}

.ere-download-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ere-download-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.ere-label {
    color: #94a3b8;
}

.ere-value {
    font-weight: 500;
    color: #f8fafc;
}

.ere-download-btn {
    display: block;
    text-align: center;
    background: #38bdf8;
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 12px;
    border-radius: 10px;
    transition: all 0.2s ease;
    margin-top: 8px;
    box-shadow: 0 4px 10px rgba(56, 189, 248, 0.2);
}

.ere-download-btn:hover {
    background: #0ea5e9;
    transform: translateY(-1px);
    color: #0f172a;
}

.ere-block-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    padding: 16px;
    border-radius: 10px;
    font-size: 14px;
    margin: 10px 0;
    font-family: sans-serif;
}

/* Floating 404 Suggestions Banner */
.ere-404-suggestions-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 999999;
    padding: 16px 24px;
    font-family: 'Outfit', sans-serif;
    color: #f8fafc;
    box-sizing: border-box;
    animation: ereSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes ereSlideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 40px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.ere-404-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    padding-right: 30px; /* space for close button */
}

.ere-404-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ere-404-text {
    font-size: 15px;
    font-weight: 500;
    color: #f8fafc;
    margin-right: auto;
}

.ere-404-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ere-404-link-btn {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ere-404-link-btn:hover {
    background: #38bdf8;
    color: #0f172a;
    border-color: #38bdf8;
    transform: translateY(-1px);
}

.ere-404-close-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s ease;
}

.ere-404-close-btn:hover {
    color: #ef4444;
}

@media (max-width: 768px) {
    .ere-404-suggestions-banner {
        bottom: 12px;
        padding: 14px 18px;
    }
    .ere-404-banner-content {
        flex-direction: column;
        align-items: flex-start;
        padding-right: 0;
        gap: 10px;
    }
    .ere-404-close-btn {
        top: 0;
        right: 0;
        transform: none;
    }
    .ere-404-links {
        width: 100%;
        margin-top: 5px;
    }
    .ere-404-link-btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}


