/* ========================================
   DOWNLOADS PAGE – custom styles
   (for downloads.blade.php)
   BRA Blue + Gold theme
======================================== */

/* Downloads Page Modern Design */
.downloads-modern {
    padding: 100px 0;
    background: #f7f9fb;
    position: relative;
}

.downloads-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, rgba(6, 96, 127, 0.05), transparent);
    pointer-events: none;
}

/* Section Header */
.downloads-header {
    text-align: center;
    margin-bottom: 60px;
}

.downloads-header__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #06607f, #0887b5);
    color: #ffffff;
    border-radius: 25px;
    padding: 10px 25px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.downloads-header__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.downloads-header__subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Search and Filter Section */
.downloads-filter {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.downloads-filter .filter-row {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.downloads-filter .search-box {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.downloads-filter .search-box input {
    width: 100%;
    padding: 15px 20px;
    padding-left: 50px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.downloads-filter .search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 16px;
}

.downloads-filter .search-box input:focus {
    outline: none;
    border-color: #06607f;
    box-shadow: 0 0 0 3px rgba(6, 96, 127, 0.1);
    background: #ffffff;
}

.downloads-filter .filter-select {
    min-width: 200px;
}

.downloads-filter .filter-select select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.downloads-filter .filter-select select:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Category Pills */
.category-pills {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-pill {
    padding: 12px 24px;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    background: #ffffff;
    color: #2c3e50;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.category-pill:hover,
.category-pill.active {
    background: linear-gradient(135deg, #06607f, #0887b5);
    border-color: #06607f;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 96, 127, 0.2);
}

.category-pill i {
    margin-right: 8px;
}

/* Downloads Grid */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Download Card */
.download-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(6, 96, 127, 0.05), transparent);
    transition: left 0.5s ease;
}

.download-card:hover::before {
    left: 100%;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(6, 96, 127, 0.15);
    border-color: #06607f;
}

.download-card__header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.download-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #06607f, #0887b5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(6, 96, 127, 0.2);
}

.download-icon i {
    font-size: 24px;
    color: #ffffff;
}

.download-info {
    flex: 1;
}

.download-category {
    display: inline-block;
    background: rgba(6, 96, 127, 0.1);
    color: #06607f;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.4;
}

.download-card__meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 14px;
}

.meta-item i {
    color: #D4AF37;
    font-size: 13px;
}

.download-card__description {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.download-card__actions {
    display: flex;
    gap: 10px;
}

.download-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Download button – white text/icon for visibility on gold */
.download-btn.primary {
    background: linear-gradient(135deg, #D4AF37, #E5C65A);
    color: #ffffff !important;
    border: none;
}

.download-btn.primary i,
.download-btn.primary .fas,
.download-btn.primary .fa-solid {
    color: #ffffff !important;
}

.download-btn.primary:hover {
    background: linear-gradient(135deg, #B8961F, #D4AF37);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
    color: #ffffff !important;
}

.download-btn.primary:hover i,
.download-btn.primary:hover .fas,
.download-btn.primary:hover .fa-solid {
    color: #ffffff !important;
}

.download-btn.secondary {
    background: transparent;
    border: 2px solid #06607f;
    color: #06607f;
}

.download-btn.secondary:hover {
    background: #06607f;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Stats Section */
.downloads-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.stat-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #D4AF37;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #06607f, #0887b5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-label {
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
}

/* Empty State */
.downloads-modern .empty-state {
    text-align: center;
    padding: 80px 20px;
}

.downloads-modern .empty-state i {
    font-size: 80px;
    color: #e5e7eb;
    margin-bottom: 20px;
}

.downloads-modern .empty-state h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.downloads-modern .empty-state p {
    color: #6b7280;
}

/* Responsive – downloads page */
@media (max-width: 768px) {
    .downloads-grid {
        grid-template-columns: 1fr;
    }

    .downloads-filter .filter-row {
        flex-direction: column;
    }

    .downloads-filter .search-box {
        min-width: 100%;
    }

    .downloads-header__title {
        font-size: 2rem;
    }

    .category-pills {
        justify-content: flex-start;
    }

    .download-card__actions {
        flex-direction: column;
    }
}
