/* projects.css - Стили для страницы списка проектов */

.projects-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecf2 100%);
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.projects-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    animation: rotate 30s linear infinite;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Hero секция */
.projects-hero {
    text-align: center;
    margin-bottom: 50px;
    animation: slideDown 0.6s ease;
}

.hero-title {
    font-size: 48px;
    color: #1a2b4c;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    color: #2c3e5c;
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.8;
}

/* Поиск */
.search-bar {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(26, 43, 76, 0.5);
    font-size: 18px;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 18px 20px 18px 50px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    font-size: 16px;
    color: #1a2b4c;
    transition: all 0.3s;
}

.search-input::placeholder {
    color: rgba(26, 43, 76, 0.4);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.4);
    border-color: white;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.2);
}

/* Фильтры */
.filters-section {
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border-radius: 60px;
    padding: 15px 25px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.filters-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-label {
    color: #1a2b4c;
    font-weight: 500;
    font-size: 14px;
    opacity: 0.8;
}

.filter-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 40px;
    color: #1a2b4c;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.filter-tag.active {
    background: rgba(255, 255, 255, 0.4);
    border-color: white;
}

.filter-select {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 40px;
    color: #1a2b4c;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 180px;
}

.filter-select:hover {
    background: rgba(255, 255, 255, 0.3);
}

.filter-select:focus {
    outline: none;
    border-color: white;
}

/* Сетка проектов */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    animation: fadeIn 0.8s ease;
}

/* Карточка проекта */
.project-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s;
    animation: cardAppear 0.5s ease backwards;
}

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

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 30px 50px rgba(0,0,0,0.1);
}

.project-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    opacity: 0;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.btn-quick-view {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transform: translateY(20px);
    transition: all 0.3s;
}

.project-card:hover .btn-quick-view {
    transform: translateY(0);
}

.btn-quick-view:hover {
    background: rgba(255, 255, 255, 0.5);
}

.project-content {
    padding: 25px;
}

.project-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.author-name {
    color: #1a2b4c;
    font-size: 14px;
    font-weight: 600;
}

.project-title {
    margin: 0 0 10px;
    font-size: 20px;
    color: #1a2b4c;
    font-weight: 600;
}

.project-title a {
    color: #1a2b4c;
    text-decoration: none;
}

.project-description {
    color: #2c3e5c;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.project-stats .stat {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #1a2b4c;
    font-size: 14px;
}

.project-stats .stat i {
    opacity: 0.6;
}

.like-btn {
    cursor: pointer;
    transition: all 0.3s;
}

.like-btn:hover {
    transform: scale(1.2);
}

.like-btn.liked {
    color: #e91e63;
}

.like-btn.liked i {
    color: #e91e63;
}

.project-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2c3e5c;
    font-size: 13px;
    margin-bottom: 20px;
}

.project-date i {
    opacity: 0.6;
}

.project-actions {
    display: flex;
    gap: 10px;
}

.btn-project {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    color: #1a2b4c;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-project:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 80px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 28px;
    color: #1a2b4c;
    margin-bottom: 10px;
}

.empty-state p {
    color: #2c3e5c;
    font-size: 16px;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.pagination-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #1a2b4c;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.pagination-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.pagination-btn.active {
    background: rgba(255, 255, 255, 0.4);
    border-color: white;
}

/* Анимации */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero-title {
        font-size: 42px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-page {
        padding: 80px 0 40px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .filters-section {
        border-radius: 30px;
        padding: 15px;
    }
    
    .filters-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-tags {
        justify-content: center;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-actions {
        flex-direction: column;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .pagination-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .project-card {
        margin-bottom: 15px;
    }
    
    .project-stats {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .empty-state {
        padding: 40px 20px;
    }
    
    .empty-state i {
        font-size: 60px;
    }
    
    .empty-state h3 {
        font-size: 22px;
    }
}

/* Задержки анимации для карточек */
.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }
.project-card:nth-child(7) { animation-delay: 0.7s; }
.project-card:nth-child(8) { animation-delay: 0.8s; }