/* Download page specific styles */

/* Page Header Background */
.page-header.download {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.8), rgba(42, 82, 152, 0.8)),
                url('../img/download.jpg');
    background-size: cover;
    background-position: center;
}

/* Download Categories */
.category-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.tab-button {
    background: white;
    border: 2px solid #2a5298;
    color: #2a5298;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 0.9rem;
}

.tab-button.active,
.tab-button:hover {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    transform: translateY(-2px);
}

/* Download Grid */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.download-card {
    background: white;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.download-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    padding: 2rem;
    text-align: center;
    position: relative;
}

.download-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.download-icon.pdf {
    background: linear-gradient(135deg, #e53e3e, #c53030);
}

.download-icon.excel {
    background: linear-gradient(135deg, #38a169, #2f855a);
}

.download-icon.catalog {
    background: linear-gradient(135deg, #3182ce, #2c5aa0);
}

.download-content {
    padding: 2rem;
}

.download-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #1e3c72;
    margin-bottom: 1rem;
}

.download-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.download-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #888;
    padding: 0.5rem 0;
    border-top: 1px solid #f0f0f0;
}

.download-button {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

.download-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f44336;
    color: white;
    border-radius: 15px;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.download-count.new {
    background: #4caf50;
}

.download-count.star {
    background: #ff9800;
}

/* Popular Downloads */
.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.popular-item {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.popular-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-5px);
}

.popular-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.popular-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #64b5f6;
}

.popular-downloads {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
    color: #e3f2fd;
}

.popular-description {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Request Form Section */
.request-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.request-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #2a5298;
}

.request-info h4 {
    color: #1e3c72;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.request-info p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.request-info ul,
.request-info ol {
    color: #555;
    line-height: 1.8;
    padding-left: 1.5rem;
}

.request-info ul li,
.request-info ol li {
    margin-bottom: 0.5rem;
}

.request-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.request-form h4 {
    color: #1e3c72;
    margin-bottom: 1.5rem;
}

.form-submit {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(238, 90, 36, 0.3);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: grid;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .download-grid {
        grid-template-columns: 1fr;
    }

    .popular-grid {
        grid-template-columns: 1fr;
    }

    .request-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .category-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .category-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-button {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .download-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .download-title {
        font-size: 1.1rem;
    }

    .download-description {
        font-size: 0.9rem;
    }
}