/**
 * NEO Portfolio Public CSS
 */

/* Portfolio Wrapper */
.neo-portfolio-wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

/* Filter Badges */
.neo-portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.neo-filter-badge {
    padding: 8px 16px;
    background: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.neo-filter-badge:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.neo-filter-badge.active {
    background: #007cba;
    color: #fff;
}

.neo-filter-badge.active:hover {
    background: #005a87;
}

/* Portfolio Grid */
.neo-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

/* Responsive Grid */
@media (max-width: 768px) {
    .neo-portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .neo-portfolio-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Portfolio Item */
.neo-portfolio-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.neo-portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Item Image */
.neo-portfolio-item-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
}

.neo-portfolio-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.neo-portfolio-item:hover .neo-portfolio-item-image img {
    transform: scale(1.05);
}

/* Item Content */
.neo-portfolio-item-content {
    padding: 20px;
}

.neo-portfolio-item-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.neo-portfolio-item-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.neo-portfolio-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.neo-portfolio-item-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f0f0;
    color: #666;
    font-size: 12px;
    border-radius: 3px;
}

/* Loading State */
.neo-portfolio-loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* No Items Message */
.neo-portfolio-no-items {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 18px;
}

/* Filter Animation */
.neo-portfolio-item.filtering {
    animation: filterOut 0.3s ease forwards;
}

@keyframes filterOut {
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

.neo-portfolio-item.filtered {
    animation: filterIn 0.3s ease forwards;
}

@keyframes filterIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}