/**
 * Portfolio Page Styles
 *
 * @package elegant
 */

/* ========================================
   Portfolio Main
   ======================================== */
.portfolio-main {
    padding: 0;
}

.portfolio-section {
    padding: 80px 20px;
    background: #ffffff;
}

.portfolio-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ========================================
   Tabs Navigation
   ======================================== */
.portfolio-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.portfolio-tab {
    font-family: var(--font-family-ar, 'Readex Pro', sans-serif);
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 30px;
    background: #f8f9fa;
    border: 2px solid #e8ecf0;
    border-radius: 50px;
    color: #5a6a7a;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.portfolio-tab:hover {
    background: #ffffff;
    border-color: #c9a227;
    color: #c9a227;
}

.portfolio-tab.active {
    background: linear-gradient(135deg, #c9a227 0%, #e8c547 100%);
    border-color: #c9a227;
    color: #ffffff;
}

.portfolio-tab i {
    font-size: 0.9rem;
}

/* ========================================
   Gallery Grid
   ======================================== */
.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* ========================================
   Portfolio Item
   ======================================== */
.portfolio-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-item-inner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.portfolio-item-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-item-inner img {
    transform: scale(1.1);
}

/* Overlay */
.portfolio-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(26, 58, 92, 0.95) 0%, rgba(26, 58, 92, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-item-overlay {
    opacity: 1;
}

/* Content */
.portfolio-item-content {
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-item-content {
    transform: translateY(0);
}

.portfolio-item-title {
    font-family: var(--font-family-ar, 'Readex Pro', sans-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.portfolio-item-category {
    font-family: var(--font-family-ar, 'Readex Pro', sans-serif);
    font-size: 0.85rem;
    color: #c9a227;
}

/* Zoom Button */
.portfolio-item-zoom {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    background: #c9a227;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-item-zoom {
    transform: scale(1);
}

.portfolio-item-zoom:hover {
    background: #e8c547;
}

.portfolio-item-zoom i {
    font-size: 1rem;
}

/* ========================================
   Empty State
   ======================================== */
.portfolio-empty {
    text-align: center;
    padding: 80px 20px;
    color: #8a9aaa;
}

.portfolio-empty i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.portfolio-empty p {
    font-family: var(--font-family-ar, 'Readex Pro', sans-serif);
    font-size: 1.2rem;
    margin: 0;
}

/* ========================================
   Lightbox
   ======================================== */
.portfolio-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.portfolio-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    font-family: var(--font-family-ar, 'Readex Pro', sans-serif);
    font-size: 1.1rem;
    color: #ffffff;
    margin-top: 20px;
}

/* Lightbox Buttons */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
}

.lightbox-close:hover {
    background: #c9a227;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.3rem;
}

.lightbox-prev {
    right: 20px;
}

.lightbox-next {
    left: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: #c9a227;
}

/* ========================================
   RTL Support
   ======================================== */
[dir="rtl"] .portfolio-section {
    direction: rtl;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 1200px) {
    .portfolio-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .portfolio-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .portfolio-tabs {
        gap: 10px;
    }
    
    .portfolio-tab {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .portfolio-section {
        padding: 60px 20px;
    }
    
    .portfolio-tabs {
        margin-bottom: 40px;
    }
    
    .portfolio-tab {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .portfolio-item-inner {
        border-radius: 12px;
    }
    
    .portfolio-item-overlay {
        padding: 20px;
    }
    
    .portfolio-item-title {
        font-size: 1rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
    }
    
    .lightbox-close {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .portfolio-section {
        padding: 50px 15px;
    }
    
    .portfolio-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .portfolio-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .portfolio-tab {
        justify-content: center;
    }
    
    .lightbox-prev {
        right: 10px;
    }
    
    .lightbox-next {
        left: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
    }
}


