/* Стили для страницы портфолио */

/* Фильтры */
.portfolio-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 8px 20px;
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 24px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--color-accent);
}

.filter-btn.active {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

/* Сетка проектов */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Карточка проекта */
.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.project-card:hover {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
}

/* Скриншоты */
.project-screenshots {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 15px;
    background: var(--color-bg);
}

.screenshot {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f5;
}

.screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.screenshot-desktop {
    width: 416px;
    min-width: 416px;
    height: 200px;
    flex-shrink: 0;
}

.screenshot-mobile {
    width: 136px;
    min-width: 136px;
    height: 200px;
    flex-shrink: 0;
}

/* Контент карточки */
.project-content {
    padding: 20px;
}

.project-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-text-primary);
}

.project-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
}

/* Мета-информация */
.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
}

.project-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Теги технологий */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.project-tag {
    padding: 4px 12px;
    background: var(--color-bg);
    border-radius: 12px;
    font-size: 12px;
    color: var(--color-text-secondary);
}

/* Ссылка на кейс */
.project-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--color-accent);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.project-link:hover {
    background: var(--color-accent-dark);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
}

.lightbox-close:hover {
    opacity: 0.7;
}

/* Кнопка "Загрузить еще" */
.load-more {
    text-align: center;
    margin: 40px 0;
}

/* Заглушка "Ничего не найдено" */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-secondary);
}

.no-results p:first-child {
    font-size: 18px;
    margin-bottom: 10px;
}

/* Hero секция портфолио */
.portfolio-hero {
    padding: 50px 0 40px;
    background: var(--color-bg);
}

.portfolio-hero h1 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 15px;
}

.portfolio-hero__subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto 10px;
}

.portfolio-hero__counter {
    text-align: center;
    font-size: 16px;
    color: var(--color-accent);
    font-weight: 600;
}

/* Секция фильтров */
.portfolio-filters-section {
    padding: 30px 0;
}

/* Секция сетки */
.portfolio-grid-section {
    padding: 0 0 40px;
}

/* CTA секция */
.portfolio-cta {
    padding: 50px 0;
    background: var(--color-accent);
    color: white;
}

.portfolio-cta__content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.portfolio-cta h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: white;
}

.portfolio-cta__text {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.portfolio-cta__buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.portfolio-cta .btn--primary {
    background: white;
    color: var(--color-accent);
}

.portfolio-cta .btn--secondary {
    border-color: white;
    color: white;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-hero h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .portfolio-filters {
        overflow-x: auto;
        justify-content: flex-start;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }
    
    .filter-btn {
        white-space: nowrap;
    }
    
    .project-screenshots {
        grid-template-columns: 1fr;
    }
    
    .screenshot-desktop,
    .screenshot-mobile {
        height: 180px;
    }
    
    .portfolio-hero h1 {
        font-size: 32px;
    }
    
    .portfolio-hero__subtitle {
        font-size: 16px;
    }
    
    .portfolio-cta h2 {
        font-size: 28px;
    }
    
    .portfolio-cta__text {
        font-size: 16px;
    }
    
    .portfolio-cta__buttons {
        flex-direction: column;
    }
}
