/* ===== Download Page ===== */

/* --- Loading / Error / Empty states --- */
.download-loading,
.download-error,
.download-empty {
    text-align: center;
    padding: 60px 20px;
    color: #7a7560;
}

.download-loading svg,
.download-error svg,
.download-empty svg {
    color: #ad1739;
    margin-bottom: 16px;
}

.download-error svg {
    color: #c9302c;
}

.download-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    border: 4px solid #e0d9bf;
    border-top-color: #ad1739;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-retry {
    margin-top: 12px;
    padding: 10px 28px;
    background: #ad1739;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: Poppins, sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-retry:hover {
    background: #8b1230;
}

/* --- Grid centering --- */
.row.g-4 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* --- Category sections --- */
.download-category-section {
    margin-bottom: 40px;
}

.download-category-title {
    color: #ad1739;
    font-weight: 600;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #ad1739;
    padding-bottom: 10px;
    margin-bottom: 24px;
}

/* --- Cards --- */
.download-card {
    background: #83132d;
    color: #ede5c6;
    border: 2px solid #6b1024;
    border-radius: 12px;
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: cardReveal 0.4s ease both;
}

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ede5c6, transparent);
    transition: left 0.5s ease;
}

.download-card:hover::before {
    left: 100%;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(131, 19, 45, 0.4);
    border-color: #ede5c6;
    background: #6b1024;
}

/* Card icon wrapper */
.card-icon-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.breathing-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
    }
    50% {
        transform: scale(0.85);
        opacity: 0.7;
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
    }
}

/* --- Card content --- */
.card-content {
    flex: 1;
    text-align: center;
}

.card-title {
    color: #ede5c6;
    font-weight: 600;
    font-size: 1.1rem;
}

.card-description {
    color: #c9c3ac;
    font-size: 0.9rem;
    margin-bottom: 15px;
    min-height: 40px;
}

/* --- File info --- */
.file-info {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.file-type {
    background: #ede5c6;
    color: #83132d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.file-size {
    background: #6b1024;
    color: #c9c3ac;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #8b1230;
    font-size: 0.85rem;
}

/* --- Download button --- */
.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ede5c6;
    color: #83132d;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #ede5c6;
    width: 100%;
}

.download-button:hover {
    background: #6b1024;
    color: #ede5c6;
    border-color: #ede5c6;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(237, 229, 198, 0.3);
}

.download-button svg {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.download-button:hover svg {
    transform: translateY(2px);
}

/* --- Info box --- */
.download-info-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.download-info-box {
    background: #fffbf2;
    border: 2px solid #ffd966;
    box-shadow: 0 4px 15px rgba(255, 217, 102, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.download-info-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(173, 23, 57, 0.3);
    border-color: #ad1739;
    background: #fff9e6;
}

.download-info-box h5 {
    color: #ad1739;
    font-weight: 600;
    transition: color 0.3s ease;
}

.download-info-box:hover h5 {
    color: #8b1230;
}

.download-info-box p {
    color: #ad1739;
    transition: color 0.3s ease;
}

.download-info-box:hover p {
    color: #8b1230;
}

.download-info-box .bi-info-circle {
    color: #ad1739;
    transition: transform 0.3s ease;
}

.download-info-box:hover .bi-info-circle {
    transform: scale(1.1);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .breathing-logo {
        width: 80px;
        height: 80px;
    }

    .download-category-title {
        font-size: 1.3rem;
    }

    .download-card {
        margin-bottom: 20px;
    }

    .card-description {
        min-height: auto;
    }
}
