/**
 * Downloads Page Styles
 * Software Download Center
 *
 * @package Licentie-Child
 */

/* ========================================
   PAGE CONTAINER
   ======================================== */
.downloads-page {
    min-height: 60vh;
}

.downloads-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

/* ========================================
   HERO SECTION
   ======================================== */
.downloads-hero {
    text-align: center;
    padding: 3rem 0 2.5rem;
    margin-bottom: 2rem;
}

.downloads-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 1.25rem;
}

.downloads-hero-badge svg {
    width: 1rem;
    height: 1rem;
}

.downloads-hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.downloads-hero p {
    font-size: 1.125rem;
    color: #64748b;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   CATEGORY NAVIGATION
   ======================================== */
.downloads-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.downloads-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    cursor: pointer;
}

.downloads-category-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.downloads-category-card.active {
    border-color: #3b82f6;
    background: #eff6ff;
}

.downloads-category-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.downloads-category-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.downloads-category-icon svg {
    width: 2.5rem;
    height: 2.5rem;
}

.downloads-category-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    text-align: center;
}

.downloads-category-count {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* ========================================
   DOWNLOAD SECTIONS
   ======================================== */
.downloads-section {
    margin-bottom: 3rem;
}

.downloads-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

.downloads-section-icon {
    width: 2rem;
    height: 2rem;
}

.downloads-section-icon img,
.downloads-section-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.downloads-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

/* ========================================
   DOWNLOAD CARDS GRID
   ======================================== */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

/* ========================================
   DOWNLOAD CARD
   ======================================== */
.download-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.download-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.download-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.download-card-icon {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.download-card-icon img,
.download-card-icon svg {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.download-card-info {
    flex: 1;
    min-width: 0;
}

.download-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.download-card-version {
    font-size: 0.8rem;
    color: #64748b;
}

.download-card-body {
    padding: 1.25rem;
    flex: 1;
}

.download-card-description {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 1rem;
}

.download-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.download-card-spec {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.25rem 0.625rem;
    border-radius: 1rem;
}

.download-card-spec svg {
    width: 0.875rem;
    height: 0.875rem;
}

.download-card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-bottom: 2px solid #1d4ed8;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.download-btn:hover {
    background: #2563eb;
    color: #fff;
}

.download-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.download-btn-secondary {
    background: #fff;
    color: #3b82f6;
    border: 1px solid #3b82f6;
    border-bottom: 2px solid #1d4ed8;
}

.download-btn-secondary:hover {
    background: #eff6ff;
    color: #2563eb;
}

/* ========================================
   LANGUAGE OPTIONS
   ======================================== */
.download-languages {
    margin-bottom: 1rem;
}

.download-languages-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: block;
}

.download-languages-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.download-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: all 0.15s ease;
}

.download-lang-btn:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
}

.download-lang-btn img,
.download-lang-btn .flag-icon {
    width: 1.25rem;
    height: 0.875rem;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

/* Flag emoji fallback */
.download-lang-btn .flag-emoji {
    font-size: 1rem;
    line-height: 1;
}

/* ========================================
   OFFICIAL DOWNLOAD LINK
   ======================================== */
.download-official-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #e2e8f0;
}

.download-official-link a {
    font-size: 0.8rem;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.download-official-link a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.download-official-link svg {
    width: 0.875rem;
    height: 0.875rem;
    color: #94a3b8;
}

.download-official-link span {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ========================================
   HANDLEIDING LINK
   ======================================== */
.download-guide-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin-top: 0.75rem;
}

.download-guide-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    color: #22c55e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.download-guide-link a:hover {
    color: #16a34a;
    text-decoration: underline;
}

.download-guide-link svg {
    width: 0.875rem;
    height: 0.875rem;
}

/* ========================================
   RELATED HANDLEIDINGEN
   ======================================== */
.download-card-related {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.download-card-related-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.download-card-related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.download-card-related-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    background: #eff6ff;
    color: #3b82f6;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.25rem;
    text-decoration: none;
    transition: background 0.2s;
}

.download-card-related-link:hover {
    background: #dbeafe;
}

.download-card-related-link svg {
    width: 0.75rem;
    height: 0.75rem;
}

/* ========================================
   INFO BOX
   ======================================== */
.downloads-info-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
}

.downloads-info-box svg {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    color: #d97706;
}

.downloads-info-box p {
    font-size: 0.9rem;
    color: #92400e;
    margin: 0;
    line-height: 1.5;
}

.downloads-info-box a {
    color: #d97706;
    font-weight: 600;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
    .downloads-hero h1 {
        font-size: 1.75rem;
    }

    .downloads-hero p {
        font-size: 1rem;
    }

    .downloads-categories {
        grid-template-columns: repeat(3, 1fr);
    }

    .downloads-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .downloads-container {
        padding: 0 1rem 3rem;
    }

    .downloads-hero {
        padding: 2rem 0 1.5rem;
    }

    .downloads-hero h1 {
        font-size: 1.5rem;
    }

    .downloads-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .downloads-category-card {
        padding: 1rem 0.75rem;
    }

    .downloads-category-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .downloads-section h2 {
        font-size: 1.25rem;
    }

    .download-card-header {
        padding: 1rem;
    }

    .download-card-body {
        padding: 1rem;
    }

    .download-card-footer {
        padding: 0.875rem 1rem;
    }
}

/* ========================================
   ANCHOR LINKS (smooth scroll)
   ======================================== */
.downloads-section {
    scroll-margin-top: 100px;
}

/* ========================================
   EMPTY STATE
   ======================================== */
.downloads-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border: 1px dashed #e2e8f0;
}

.downloads-empty svg {
    width: 3rem;
    height: 3rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.downloads-empty p {
    color: #64748b;
    margin: 0;
}
