/**
 * Download Page Styles
 */

.page-download {
    min-height: 100vh;
    padding: 4rem 2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.download-header {
    text-align: center;
    margin-bottom: 3rem;
}

.download-header h1 {
    font-size: 2.5rem;
    color: #fff;
    margin: 0 0 1rem;
    font-weight: 700;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

.download-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 215, 0, 0.9);
    font-style: italic;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.download-header.error h1 {
    color: #ff6b6b;
}

.error-message {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Download Cards Grid */
.download-books {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.download-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.download-icon {
    width: 120px;
    height: 180px;
    margin: 0 auto 1.5rem;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.download-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.download-card h3 {
    font-size: 1.2rem;
    color: #fff;
    margin: 0 0 0.5rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.download-card p {
    font-size: 0.9rem;
    color: rgba(255, 215, 0, 0.8);
    margin: 0 0 1.5rem;
    font-style: italic;
}

.download-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    color: white;
}

/* Download Note */
.download-note {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.download-note p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0.25rem 0;
    font-size: 0.95rem;
}

/* Error State CTA */
.download-cta {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    max-width: 400px;
    margin: 0 auto;
}

.download-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1.5rem;
    font-size: 1.1rem;
}

.request-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
}

.request-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    color: white;
}

/* Responsive */
@media (max-width: 900px) {
    .download-books {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .page-download {
        padding: 2rem 1rem;
    }

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

    .download-books {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .download-card {
        padding: 1.5rem;
    }

    .download-icon {
        width: 100px;
        height: 150px;
    }
}
