/* Downloads Page Styles - Aligned with Glow Power Design System */

/* Font Imports */

.font-jcb-bold-condensed {
    font-family: 'JCBEuro BoldCondensed Regular', sans-serif;
}
.font-jcb-bold {
    font-family: 'JCBEuro Bold Regular', sans-serif;
}
.font-jcb-roman {
    font-family: 'JCBEuro Roman Regular', sans-serif;
}

/* Hero Section */
.downloads-hero {
    background: linear-gradient(to right, #000000 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    color: white !important;
}

.downloads-hero h1 {
    color: white !important;
    font-size: 3.5rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
}

.downloads-hero p {
    color: #d1d5db !important;
    font-size: 1rem !important;
    text-align: center !important;
    max-width: 42rem !important;
    margin: 0 auto !important;
}

.downloads-hero .bg-glow-yellow {
    background-color: #FAA747 !important;
    width: 6rem !important;
    height: 0.25rem !important;
    margin: 0 auto 1rem auto !important;
}

@media (min-width: 768px) {
    .downloads-hero h1 {
        font-size: 4rem !important;
    }
}

.downloads-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(250, 167, 71, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(250, 167, 71, 0.1) 0%, transparent 50%);
}

/* Category Navigation */
.category-tabs {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.category-tab {
    font-family: 'JCBEuro Bold Regular', sans-serif;
    background: transparent;
    border: 2px solid #e0e0e0;
    padding: 10px 20px;
    color: #000;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 0;
}

.category-tab:hover {
    border-color: #FAA747;
    color: #FAA747;
}

.category-tab.active {
    background: #000;
    color: #FAA747;
    border-color: #000;
}

/* Mobile Category Dropdown */
.category-dropdown {
    display: none;
}

@media (max-width: 480px) {
    .category-tabs-container {
        display: none;
    }
    
    .category-dropdown {
        display: block;
        margin-bottom: 2rem;
    }
    
    .category-select {
        width: 100%;
        padding: 14px 40px 14px 16px;
        border: 2px solid #e0e0e0;
        background: white;
        font-family: 'JCBEuro Bold Regular', sans-serif;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        color: #000;
        cursor: pointer;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FAA747' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 16px center;
        border-radius: 6px;
        transition: all 0.3s ease;
    }
    
    .category-select:focus {
        outline: none;
        border-color: #FAA747;
        box-shadow: 0 0 0 3px rgba(250, 167, 71, 0.1);
    }
}

/* Tablet horizontal scroll */
@media (min-width: 481px) and (max-width: 768px) {
    .category-tabs-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -16px;
        padding: 0 16px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        position: relative;
    }
    
    .category-tabs-container::-webkit-scrollbar {
        display: none;
    }
    
    .category-tabs {
        display: flex;
        gap: 10px;
        flex-wrap: nowrap;
        padding-bottom: 10px;
        margin-bottom: 2rem;
    }
    
    .category-tab {
        flex: 0 0 auto;
        padding: 12px 20px;
        font-size: 11px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: white;
        border: 2px solid #e0e0e0;
        font-weight: 600;
    }
    
    .category-tab.active {
        background: #FAA747;
        color: #000;
        border-color: #FAA747;
    }
}

/* Download Cards */
.download-card {
    background: white;
    border: 1px solid #e5e7eb;
    padding: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #FAA747;
    transform: translateX(-4px);
    transition: transform 0.3s ease;
}

.download-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #FAA747;
    text-decoration: none;
}

.download-card:hover::before {
    transform: translateX(0);
}

.download-card:hover .download-title {
    color: #FAA747;
}

.file-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f7f7f7 0%, #f0f0f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 8px;
}

.download-card:hover .file-icon {
    background: linear-gradient(135deg, #FAA747 0%, #f89e35 100%);
}

.download-card:hover .file-icon i {
    color: #000;
}

.file-icon i {
    font-size: 28px;
    color: #FAA747;
}

.download-info {
    flex: 1;
    max-width: calc(100% - 100px);
}

.download-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    font-family: 'JCBEuro Bold Regular', sans-serif;
    color: #000;
    line-height: 1.3;
}

.download-description {
    font-size: 12px;
    color: #666;
    font-family: 'JCBEuro Roman Regular', sans-serif;
    line-height: 1.4;
    margin-bottom: 8px;
    padding-right: 10px;
}

.download-meta {
    font-size: 11px;
    color: #999;
    font-family: 'JCBEuro Roman Regular', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Download icon indicator */
.download-card::after {
    content: '\f019';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #e5e7eb;
    font-size: 18px;
    transition: all 0.3s ease;
    background: white;
    padding: 8px;
    border-radius: 50%;
}

.download-card:hover::after {
    color: #FAA747;
    transform: translateY(-50%) scale(1.1);
}

/* Download Sections */
.download-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-family: 'JCBEuro Bold Regular', sans-serif;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: #FAA747;
}

.section-description {
    color: #666;
    font-size: 13px;
    margin-bottom: 25px;
    font-family: 'JCBEuro Roman Regular', sans-serif;
}

/* Search Bar */
.download-search {
    max-width: 600px;
    margin: 0 auto 3rem;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e0e0e0;
    font-family: 'JCBEuro Roman Regular', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    border-radius: 0;
}

.search-input:focus {
    outline: none;
    border-color: #FAA747;
    box-shadow: 0 0 0 3px rgba(250, 167, 71, 0.1);
}

.search-input::placeholder {
    color: #999;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #FAA747;
    font-size: 18px;
}

/* Featured Downloads */
.featured-downloads {
    background: #f7f7f7;
    padding: 40px;
    margin-bottom: 50px;
    border-left: 5px solid #FAA747;
}

.featured-downloads h2 {
    color: #000;
    margin-bottom: 20px;
}

/* File Type Icons - Support both fas and far styles */
/* Fix for corrupted PDF icon - use regular file icon */
.fa-file-pdf:before {
    content: "\f15b" !important; /* Using regular file icon since f1c1 is corrupted */
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.fa-file-excel {
    color: #059669 !important;
}

.fa-file-word {
    color: #2563eb !important;
}

/* Override colors when inside file-icon container */
.file-icon .fa-file-pdf,
.file-icon .fa-file-excel,
.file-icon .fa-file-word,
.file-icon .fa-file-archive,
.file-icon .fa-file,
.file-icon .fas,
.file-icon .far {
    color: #FAA747 !important;
}

/* Hover state - change icon color */
.download-card:hover .file-icon .fa-file-pdf,
.download-card:hover .file-icon .fa-file-excel,
.download-card:hover .file-icon .fa-file-word,
.download-card:hover .file-icon .fa-file-archive,
.download-card:hover .file-icon .fa-file,
.download-card:hover .file-icon .fas,
.download-card:hover .file-icon .far {
    color: #000 !important;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .downloads-hero {
        padding: 60px 0;
    }
    
    .category-tab {
        padding: 8px 16px;
        font-size: 11px;
    }
    
    .category-tabs {
        gap: 10px;
    }
    
    .download-card {
        flex-direction: row;
        text-align: left;
        padding: 20px;
        padding-right: 45px;
    }
    
    .download-info {
        text-align: left;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .featured-downloads {
        padding: 25px;
    }
    
    .download-title {
        font-size: 16px;
    }
    
    .file-icon {
        width: 50px;
        height: 50px;
    }
    
    .file-icon i {
        font-size: 24px;
    }
    
    /* Mobile search sticky */
    .download-search {
        position: sticky;
        top: 60px;
        z-index: 10;
        background: white;
        padding: 10px 0;
        margin: -10px 0 20px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    
    /* Better mobile touch targets */
    .download-card {
        min-height: 80px;
    }
    
    .category-tab {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Touch feedback */
    .download-card:active {
        transform: scale(0.98);
    }
    
    .category-tab:active {
        transform: scale(0.95);
    }
}

/* Grid Adjustments */
@media (max-width: 640px) {
    .download-section .grid {
        grid-template-columns: 1fr;
    }
}

/* Buttons */
button {
    border-radius: 0;
}

/* Links */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* Smooth scrolling */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* CTA Section */
.downloads-cta {
    background: #000 !important;
    color: white !important;
    padding: 3rem 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

.downloads-cta h2 {
    color: white !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
}

.downloads-cta p {
    color: #d1d5db !important;
    font-size: 0.875rem !important;
    text-align: center !important;
    max-width: 36rem !important;
    margin: 0 auto 1.5rem auto !important;
}

.downloads-cta .bg-glow-yellow {
    background-color: #FAA747 !important;
    width: 3rem !important;
    height: 0.25rem !important;
    margin: 0 auto 1rem auto !important;
}

.downloads-cta .btn-primary {
    background-color: #FAA747 !important;
    color: #000 !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    text-decoration: none !important;
    border-radius: 0.25rem !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

.downloads-cta .btn-primary:hover {
    background-color: white !important;
    color: #000 !important;
}

.downloads-cta .btn-secondary {
    background-color: transparent !important;
    color: #FAA747 !important;
    border: 1px solid #FAA747 !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    text-decoration: none !important;
    border-radius: 0.25rem !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

.downloads-cta .btn-secondary:hover {
    background-color: #FAA747 !important;
    color: #000 !important;
}

.downloads-cta .cta-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    justify-content: center !important;
    align-items: center !important;
}

@media (min-width: 640px) {
    .downloads-cta h2 {
        font-size: 1.75rem !important;
    }
    
    .downloads-cta p {
        font-size: 1rem !important;
        max-width: 42rem !important;
    }
    
    .downloads-cta .bg-glow-yellow {
        width: 4rem !important;
    }
    
    .downloads-cta .cta-buttons {
        flex-direction: row !important;
    }
}

/* Print Styles */
@media print {
    .category-tabs,
    .category-dropdown,
    .download-search,
    .search-icon {
        display: none;
    }
    
    .download-card {
        page-break-inside: avoid;
        border: 1px solid #ddd;
        margin-bottom: 20px;
    }
}