/* File: static/css/core/portfolio.css */

/* ========================================
   Portfolio Gallery Styles - Modern & Professional
   ======================================== */

/* Hero Section */
.portfolio-hero {
    background: linear-gradient(135deg, #E6B7C1 0%, #F8D7DA 50%, #E6B7C1 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.portfolio-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.1"><polygon points="0,20 50,0 100,20 100,100 0,100"/></svg>') repeat-x;
    background-size: 100px 100px;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.portfolio-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.portfolio-hero .lead {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    color: #5a6c7d;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Section */
.search-portfolio {
    max-width: 500px;
    margin: 0 auto;
}

.search-form .input-group {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 50px;
    overflow: hidden;
    background: white;
}

.search-input {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    background: transparent;
    box-shadow: none !important;
}

.search-input:focus {
    outline: none;
    box-shadow: none !important;
}

.search-btn {
    border: none;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #E6B7C1, #d4a5b0);
    color: white;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, #d4a5b0, #c299a4);
    transform: translateY(-1px);
}

/* Filter Section */
.filter-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

.category-filter {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
    text-align: center;
}

.filter-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.category-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid #E6B7C1;
    color: #E6B7C1;
    background: transparent;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #E6B7C1, #d4a5b0);
    transition: left 0.3s ease;
    z-index: -1;
}

.category-btn:hover,
.category-btn.active {
    color: white;
    text-decoration: none;
    border-color: #E6B7C1;
}

.category-btn:hover::before,
.category-btn.active::before {
    left: 0;
}

.category-btn .count {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Main CTA Section */
.main-cta {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid rgba(230, 183, 193, 0.2);
}

.cta-title {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: clamp(1.5rem, 3vw, 1.75rem);
}

.cta-description {
    color: #6c757d;
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-cta {
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    border-width: 2px;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.section-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Featured Section */
.featured-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Gallery Section */
.gallery-section {
    padding: 4rem 0;
}

/* Portfolio Cards */
.portfolio-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.card-image-container {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.portfolio-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.placeholder-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #6c757d;
    gap: 0.5rem;
}

.placeholder-image i {
    font-size: 2rem;
}

.portfolio-card:hover .portfolio-image {
    transform: scale(1.1);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #E6B7C1, #d4a5b0);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.overlay-content .view-btn {
    background: rgba(255,255,255,0.95);
    border: none;
    color: #2c3e50;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.overlay-content .view-btn:hover {
    background: white;
    transform: translateY(-2px);
}

/* Portfolio Info */
.portfolio-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

.portfolio-category {
    color: #E6B7C1;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.portfolio-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    flex-grow: 1;
}

.portfolio-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f1f3f4;
}

.stylist-info {
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.portfolio-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #6c757d;
}

.stat-item.likes {
    color: #dc3545;
}

.stat-number {
    font-weight: 600;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin: 2rem 0;
}

.empty-state-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1.5rem;
}

.empty-state-title {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.empty-state-description {
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.empty-state-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Pagination */
.pagination-nav {
    margin-top: 3rem;
}

.pagination .page-link {
    color: #E6B7C1;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    margin: 0 0.125rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    color: white;
    background: #E6B7C1;
    border-color: #E6B7C1;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background: #E6B7C1;
    border-color: #E6B7C1;
    color: white;
}

/* Tags Section */
.tags-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.tag-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    color: #6c757d;
    text-decoration: none;
    border-radius: 50px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.tag-btn:hover {
    color: #E6B7C1;
    border-color: #E6B7C1;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tag-name {
    font-weight: 500;
}

.tag-count {
    opacity: 0.7;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-hero {
        padding: 60px 0 40px;
    }
    
    .filter-section {
        padding: 2rem 0;
    }
    
    .category-filter,
    .main-cta {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .main-cta .row {
        text-align: center;
    }
    
    .cta-buttons {
        margin-top: 1.5rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .portfolio-image {
        height: 200px;
    }
    
    .portfolio-info {
        padding: 1.25rem;
    }
    
    .empty-state {
        padding: 3rem 1.5rem;
    }
    
    .empty-state-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .tags-container {
        gap: 0.5rem;
    }
    
    .tag-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .search-form .input-group {
        border-radius: 15px;
    }
    
    .search-input {
        padding: 0.875rem 1.25rem;
    }
    
    .search-btn {
        padding: 0.875rem 1.5rem;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .category-btn {
        min-width: 200px;
        justify-content: center;
    }
    
    .portfolio-image {
        height: 180px;
    }
    
    .portfolio-meta {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .portfolio-stats {
        gap: 0.75rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .portfolio-hero {
        background: linear-gradient(135deg, #8B5A6B 0%, #A0616A 50%, #8B5A6B 100%);
    }
    
    .portfolio-hero h1 {
        color: #f8f9fa;
    }
    
    .portfolio-hero .lead {
        color: #dee2e6;
    }
    
    .category-filter,
    .main-cta,
    .portfolio-card {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .filter-title,
    .cta-title,
    .section-title,
    .portfolio-title {
        color: #f7fafc;
    }
    
    .cta-description,
    .section-subtitle,
    .portfolio-description {
        color: #a0aec0;
    }
    
    .empty-state {
        background: #2d3748;
    }
    
    .tag-btn {
        background: #2d3748;
        color: #a0aec0;
        border-color: #4a5568;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .portfolio-card {
        border: 2px solid #000;
    }
    
    .category-btn {
        border-width: 3px;
    }
    
    .featured-badge {
        background: #000;
        color: #fff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .portfolio-card,
    .category-btn,
    .search-btn,
    .btn-cta,
    .tag-btn {
        transition: none;
    }
    
    .portfolio-card:hover {
        transform: none;
    }
    
    .portfolio-image {
        transition: none;
    }
    
    .portfolio-card:hover .portfolio-image {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .portfolio-hero,
    .filter-section,
    .pagination-nav,
    .tags-section {
        display: none;
    }
    
    .portfolio-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .card-overlay,
    .featured-badge {
        display: none;
    }
}