/**
 * Portfolio/Projects Page Styles
 * Modern project showcase with filters
 * 
 * @package ATH_ATRAHI_DESIGN
 */

/* ==========================================================================
   Hero Section
   ========================================================================== */
.portfolio-hero {
    position: relative;
    padding: 180px 0 100px;
    background: var(--atrahi-dark);
    overflow: hidden;
}

.portfolio-hero .hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(185, 157, 99, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(185, 157, 99, 0.1) 0%, transparent 40%);
}

.portfolio-hero .hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40' fill='%23b99d63' fill-opacity='0.03'/%3E%3C/g%3E%3C/svg%3E");
}

.portfolio-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.portfolio-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.portfolio-hero h1 .text-gold {
    color: var(--atrahi-gold);
}

.portfolio-hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Stats Counter */
.portfolio-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--atrahi-gold);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Filter Section
   ========================================================================== */
.portfolio-filter-section {
    padding: 40px 0;
    background: var(--atrahi-gray);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 80px;
    z-index: 100;
}

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

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

.filter-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    border-color: var(--atrahi-gold);
    color: var(--atrahi-gold);
}

.filter-tab.active {
    background: var(--atrahi-dark);
    color: #fff;
    border-color: var(--atrahi-dark);
}

.filter-tab .tab-icon {
    font-size: 1.1rem;
}

.filter-tab .tab-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.filter-tab.active .tab-count {
    background: var(--atrahi-gold);
    color: var(--atrahi-dark);
}

/* View Toggle */
.view-toggle {
    display: flex;
    background: #fff;
    border-radius: 10px;
    padding: 5px;
    gap: 5px;
}

.view-toggle-btn {
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #888;
    transition: all 0.3s ease;
}

.view-toggle-btn:hover {
    color: var(--atrahi-gold);
}

.view-toggle-btn.active {
    background: var(--atrahi-dark);
    color: #fff;
}

/* ==========================================================================
   Portfolio Grid
   ========================================================================== */
.portfolio-grid-section {
    padding: 80px 0;
    background: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-grid.list-view {
    grid-template-columns: 1fr;
}

/* Project Card */
.project-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.project-card .pc-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.project-card .pc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .pc-image img {
    transform: scale(1.1);
}

.project-card .pc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.9) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.project-card .pc-actions {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}

.project-card:hover .pc-actions {
    transform: translateY(0);
    opacity: 1;
}

.project-card .pc-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--atrahi-gold);
    color: var(--atrahi-dark);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-card .pc-action-btn:hover {
    background: #fff;
}

.project-card .pc-action-btn.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-card .pc-action-btn.btn-outline:hover {
    background: #fff;
    color: var(--atrahi-dark);
}

/* Card Badges */
.project-card .pc-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-card .pc-badge {
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-card .pc-badge.badge-service {
    background: var(--atrahi-gold);
    color: var(--atrahi-dark);
}

.project-card .pc-badge.badge-status {
    background: #28a745;
    color: #fff;
}

.project-card .pc-badge.badge-featured {
    background: #ff6b6b;
    color: #fff;
}

/* Card Content */
.project-card .pc-content {
    padding: 25px;
}

.project-card .pc-service-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: var(--atrahi-gray);
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 12px;
}

.project-card .pc-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.project-card .pc-title a {
    color: var(--atrahi-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.project-card .pc-title a:hover {
    color: var(--atrahi-gold);
}

.project-card .pc-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
}

.project-card .pc-meta {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.project-card .pc-meta-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.project-card .pc-meta-item .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.5px;
}

.project-card .pc-meta-item .value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--atrahi-dark);
}

/* ==========================================================================
   List View
   ========================================================================== */
.portfolio-grid.list-view .project-card {
    display: grid;
    grid-template-columns: 400px 1fr;
}

.portfolio-grid.list-view .project-card .pc-image {
    height: 100%;
    min-height: 250px;
}

.portfolio-grid.list-view .project-card .pc-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 35px;
}

.portfolio-grid.list-view .project-card .pc-meta {
    gap: 30px;
}

/* ==========================================================================
   No Projects
   ========================================================================== */
.no-projects {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 30px;
    background: var(--atrahi-gray);
    border-radius: 20px;
}

.no-projects .no-projects-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.no-projects h3 {
    font-size: 1.5rem;
    color: var(--atrahi-dark);
    margin-bottom: 10px;
}

.no-projects p {
    color: #888;
    margin-bottom: 25px;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.portfolio-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
}

.portfolio-pagination a,
.portfolio-pagination span {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.portfolio-pagination a {
    background: var(--atrahi-gray);
    color: var(--atrahi-dark);
}

.portfolio-pagination a:hover {
    background: var(--atrahi-gold);
    transform: translateY(-3px);
}

.portfolio-pagination span.current {
    background: var(--atrahi-dark);
    color: #fff;
}

.portfolio-pagination .prev,
.portfolio-pagination .next {
    width: auto;
    padding: 0 20px;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.portfolio-cta-section {
    padding: 100px 0;
    background: var(--atrahi-dark);
    position: relative;
    overflow: hidden;
}

.portfolio-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 10% 90%, rgba(185, 157, 99, 0.2) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 10%, rgba(185, 157, 99, 0.15) 0%, transparent 40%);
}

.cta-box {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-box .cta-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.cta-box h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 15px;
}

.cta-box h2 .text-gold {
    color: var(--atrahi-gold);
}

.cta-box p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .portfolio-hero {
        padding: 150px 0 80px;
    }
    
    .portfolio-stats {
        gap: 40px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .filter-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .filter-tabs {
        justify-content: center;
    }
    
    .portfolio-grid.list-view .project-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .portfolio-hero h1 {
        font-size: 2rem;
    }
    
    .portfolio-stats {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .stat-item {
        flex: 1 1 calc(50% - 15px);
    }
    
    .filter-tab {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .filter-tab .tab-icon {
        display: none;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card .pc-image {
        height: 220px;
    }
    
    .cta-box h2 {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .portfolio-hero {
        padding: 140px 0 60px;
    }
    
    .portfolio-filter-section {
        padding: 20px 0;
    }
    
    .filter-tabs {
        gap: 8px;
    }
    
    .filter-tab {
        padding: 8px 12px;
    }
    
    .view-toggle {
        display: none;
    }
    
    .project-card .pc-meta {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .project-card .pc-meta-item {
        flex: 1 1 calc(50% - 8px);
    }
}
