/**
 * Condalab Downloads Page Styles
 */

/* ===== PS OVERRIDES ===== */
#module-cdldownloads-downloads #wrapper {
    padding-top: 0;
}

#module-cdldownloads-downloads #content-wrapper {
    padding: 0;
    max-width: 100%;
}

#module-cdldownloads-downloads #wrapper > .container {
    max-width: 100%;
    padding: 0;
}

#module-cdldownloads-downloads .page-content {
    padding: 0;
}

#module-cdldownloads-downloads #wrapper .breadcrumb {
    display: none;
}

/* ===== HERO ===== */
.cdl-dl-hero {
    position: relative;
    background: #000;
    color: #fff;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 64px 0 80px;
}

.cdl-dl-hero__inner {
    position: relative;
    z-index: 2;
}

.cdl-dl-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.cdl-dl-hero__breadcrumb a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.cdl-dl-hero__breadcrumb a:hover {
    color: #fff;
}

.cdl-dl-hero__breadcrumb svg {
    color: rgba(255, 255, 255, 0.3);
}

.cdl-dl-hero__breadcrumb-active {
    color: #EBBE18;
}

.cdl-dl-hero__title {
    font-family: 'Jost', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 16px;
    color: #fff;
}

.cdl-dl-hero__title--yellow {
    color: #EBBE18;
}

.cdl-dl-hero__desc {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 700px;
    line-height: 1.6;
    margin: 0;
}

.cdl-dl-hero__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 3;
    line-height: 0;
}

.cdl-dl-hero__wave img {
    display: block;
    width: 100%;
    height: auto;
}

/* ===== CONTENT ===== */
.cdl-dl {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

/* ===== SECTION ===== */
.cdl-dl__section {
    margin-bottom: 56px;
}

.cdl-dl__section-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.cdl-dl__section-icon {
    width: 56px;
    height: 56px;
    background: #EBBE18;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cdl-dl__section-icon svg {
    stroke: #000;
}

.cdl-dl__section-title {
    font-family: 'Jost', 'Inter', sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: #000;
    margin: 0 0 8px;
    line-height: 1.2;
}

.cdl-dl__section-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    max-width: 800px;
}

.cdl-dl__email-link {
    color: #EBBE18;
    font-weight: 600;
    text-decoration: none;
}

.cdl-dl__email-link:hover {
    text-decoration: underline;
    color: #d4a813;
}

/* ===== DOWNLOAD GRID ===== */
.cdl-dl__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* ===== DOWNLOAD CARD ===== */
.cdl-dl__card {
    display: block;
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 14px;
    padding: 20px 24px;
    text-decoration: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    cursor: pointer;
}

.cdl-dl__card:hover {
    border-color: #EBBE18;
    box-shadow: 0 4px 16px rgba(235, 190, 24, 0.12);
    transform: translateY(-2px);
    text-decoration: none;
}

.cdl-dl__card--new {
    border-color: #EBBE18;
}

.cdl-dl__card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.cdl-dl__card-file-icon {
    color: #bbb;
}

.cdl-dl__card-format {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cdl-dl__card-badge {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    background: #EBBE18;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.cdl-dl__card-download {
    margin-left: auto;
    color: #ccc;
    transition: color 0.2s;
}

.cdl-dl__card:hover .cdl-dl__card-download {
    color: #EBBE18;
}

.cdl-dl__card-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
}

/* ===== CTA ===== */
.cdl-dl__cta {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    margin-top: 16px;
}

.cdl-dl__cta-title {
    font-family: 'Jost', 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}

.cdl-dl__cta-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 32px;
}

.cdl-dl__cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cdl-dl__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.cdl-dl__cta-btn--email {
    background: #EBBE18;
    color: #000;
}

.cdl-dl__cta-btn--email:hover {
    background: #d4a813;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(235, 190, 24, 0.3);
}

.cdl-dl__cta-btn--faq {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cdl-dl__cta-btn--faq:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .cdl-dl__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cdl-dl-hero {
        padding: 40px 0 60px;
    }

    .cdl-dl-hero__title {
        font-size: 2.2rem;
    }

    .cdl-dl-hero__desc {
        font-size: 1rem;
    }

    .cdl-dl {
        padding: 32px 16px 60px;
    }

    .cdl-dl__section-header {
        flex-direction: column;
        gap: 12px;
    }

    .cdl-dl__section-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .cdl-dl__section-icon svg {
        width: 24px;
        height: 24px;
    }

    .cdl-dl__section-title {
        font-size: 1.5rem;
    }

    .cdl-dl__grid {
        grid-template-columns: 1fr;
    }

    .cdl-dl__card {
        padding: 16px 20px;
        border-radius: 10px;
    }

    .cdl-dl__cta {
        padding: 32px 24px;
        border-radius: 16px;
    }

    .cdl-dl__cta-title {
        font-size: 1.3rem;
    }

    .cdl-dl__cta-actions {
        flex-direction: column;
    }

    .cdl-dl__cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== PRINT ===== */
@media print {
    .cdl-dl-hero {
        background: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .cdl-dl__card {
        border-color: #ccc !important;
    }

    .cdl-dl__cta {
        background: #333 !important;
    }
}
