/* ==============================================
   TOOLKIT SECTION - Mobile-First Responsive
   ============================================== */

/* Toolkit Filter Tabs */
.toolkit-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-btn {
    padding: 10px 20px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.filter-btn.active {
    background: #D21E2D;
    color: #fff;
    border-color: #D21E2D;
}

/* Toolkit Grid - Mobile First */
.toolkit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 24px;
}

/* Tablet: 2 columns */
@media (min-width: 640px) {
    .toolkit-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
    .toolkit-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

/* Large Desktop: 4 columns */
@media (min-width: 1280px) {
    .toolkit-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Asset Card */
.toolkit-grid .asset {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.toolkit-grid .asset:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(210, 30, 45, 0.2);
    border-color: rgba(210, 30, 45, 0.5);
}

/* Asset Image */
.toolkit-grid .asset img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    background: #000;
}

/* Mobile: Smaller image height */
@media (max-width: 639px) {
    .toolkit-grid .asset img {
        height: 180px;
    }
}

/* Asset Content */
.toolkit-grid .asset > div {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.toolkit-grid .asset h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.toolkit-grid .asset p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
    flex: 1;
    line-height: 1.4;
}

/* Asset Links */
.toolkit-grid .asset .links {
    display: flex;
    gap: 8px;
}

.toolkit-grid .asset .btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.toolkit-grid .asset .btn:first-child {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toolkit-grid .asset .btn:first-child:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.toolkit-grid .asset .btn:last-child {
    background: #D21E2D;
    color: #fff;
    border: 1px solid #D21E2D;
}

.toolkit-grid .asset .btn:last-child:hover {
    background: #b61824;
    transform: scale(1.02);
}

/* Filter Animation - Hide/Show */
.toolkit-grid .asset {
    animation: fadeIn 0.4s ease;
}

.toolkit-grid .asset[style*="display: none"] {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile: Stack filter buttons better */
@media (max-width: 639px) {
    .toolkit-filter {
        padding: 12px;
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 14px;
        font-size: 12px;
        flex: 1;
        min-width: calc(50% - 4px);
    }
}

/* Very Small Mobile: Single column filters */
@media (max-width: 380px) {
    .filter-btn {
        min-width: 100%;
    }
}

/* Loading State */
.toolkit-grid .asset.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Empty State */
.toolkit-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.toolkit-empty h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.toolkit-empty p {
    font-size: 14px;
}
