/* styles specific to the download app page */

.download-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.download-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(0, 0, 0, 0) 50%);
    animation: rotateGlow 15s linear infinite;
    z-index: 0;
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.download-hero-content {
    position: relative;
    z-index: 1;
}

.download-hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(to left, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.download-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.download-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text-primary);
    min-height: 280px;
}

.download-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.download-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.download-card:hover::after {
    transform: scaleX(1);
}

.dl-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    background: #ffffff;
    color: var(--accent);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
}

.download-card:hover .dl-icon-wrapper {
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.dl-pwa:hover .dl-icon-wrapper {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.dl-play:hover .dl-icon-wrapper {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.dl-apple:hover .dl-icon-wrapper {
    background: linear-gradient(135deg, #333333, #000000);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.dl-direct:hover .dl-icon-wrapper {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* Dark mode adjust for Apple */
body.dark-mode .dl-apple:hover .dl-icon-wrapper {
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    color: #000;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.download-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.download-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    flex-grow: 1;
}

.dl-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 30px;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dl-badge.recommended {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.dl-btn-placeholder {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.download-card:hover .dl-btn-placeholder {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: transparent;
}

/* Feature list inline */
.dl-features {
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: right;
    margin-bottom: 20px;
    padding-right: 15px;
}

.dl-features li {
    margin-bottom: 6px;
    position: relative;
}

.dl-features li::before {
    content: '✓';
    position: absolute;
    right: -15px;
    color: var(--green);
}

/* Responsive */
@media (max-width: 768px) {
    .download-hero {
        padding: 40px 15px;
    }

    .download-hero h1 {
        font-size: 2rem;
    }
}