/**
 * Category Tai Nguyen (Resources) Styles
 * Custom styles for resources category template
 */

:root {
    --primary-gradient: linear-gradient(135deg, #ff6b35 0%, #fc9837 100%);
    --primary-color: #ff6b35;
    --secondary-color: #fc9837;
}

/* Resource Filter Tabs */
.resource-filter-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding: 0;
}

.resource-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.resource-tab:hover {
    background: #fff5f0;
    border-color: #ff6b35;
    color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
}

.resource-tab.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.resource-tab i {
    font-size: 16px;
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
}

#allResourcesGrid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}

#allResourcesGrid .cat_grid_item {
    width: 100%;
}

/* Resource Card */
.resource-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.15);
}

.resource-card.featured {
    border: 2px solid #ff6b35;
}

/* Resource Thumbnail */
.resource-card-header {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.resource-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.resource-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.resource-card:hover .resource-thumbnail img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-gradient);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Resource Card Body */
.resource-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.resource-meta-top {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.resource-file-type {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resource-file-size {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
    font-size: 12px;
}

.resource-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.resource-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.resource-title a:hover {
    color: var(--primary-color);
}

.resource-excerpt {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

/* Resource Card Footer */
.resource-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    margin-top: auto;
}

.resource-downloads {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
    font-size: 13px;
}

.resource-downloads i {
    color: var(--primary-color);
}

.resource-download-btn,
.resource-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.resource-download-btn {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

.resource-download-btn:hover {
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.resource-view-btn {
    background: #f1f5f9;
    color: #475569;
}

.resource-view-btn:hover {
    background: #e2e8f0;
    color: var(--primary-color);
}

/* Download Tips Section */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.tip-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.12);
}

.tip-card i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.tip-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.tip-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Section Titles */
.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.section-title i {
    color: var(--primary-color);
    font-size: 22px;
}

/* Category Banner */
.category_banner_wrap {
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.category_banner_wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
}

/* Category Section Spacing */
.cat_section {
    margin-bottom: 50px;
}

.cat_section:last-child {
    margin-bottom: 30px;
}

/* SEO Content */
.seo-content {
    background: #f8fafc;
    border-radius: 12px;
    padding: 30px;
    font-size: 15px;
    line-height: 1.8;
    color: #475569;
}

.seo-content h2,
.seo-content h3 {
    color: #1e293b;
    margin-bottom: 15px;
}

.seo-content p {
    margin-bottom: 15px;
}

/* No Results Message */
#noResultsMessage {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-top: 20px;
}

#noResultsMessage p {
    font-size: 16px;
    color: #666;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 40px;
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .resources-grid,
    #allResourcesGrid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .resource-filter-tabs {
        flex-direction: column;
    }

    .resource-tab {
        width: 100%;
        justify-content: center;
    }

    .resources-grid,
    #allResourcesGrid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .tips-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .resource-card-header {
        height: 180px;
    }

    .section-title {
        font-size: 20px;
    }

    .cat_section {
        margin-bottom: 40px;
    }

    .seo-content {
        padding: 20px;
        font-size: 14px;
    }
}
