/* ==========================================================================
   ACD STONE - PORTFOLIO SHOWCASE STYLES
   ========================================================================== */

/* Page Header */
.portfolio-page {
    background-color: transparent;
    padding-top: 120px; /* Offset for fixed navbar */
}

.portfolio-hero {
    padding: 60px 0 40px;
}

.portfolio-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.portfolio-desc {
    font-size: 1.1rem;
    max-width: 750px;
    margin: 0 auto;
    color: var(--color-text-secondary);
}

/* Category Filters */
.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.filter-btn {
    background-color: transparent;
    color: var(--color-text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.8rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.filter-btn:hover, .filter-btn.active {
    border-color: var(--color-gold);
    color: var(--color-gold);
    background-color: rgba(197, 160, 89, 0.05);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 100px;
}

.gallery-item {
    transition: var(--transition-normal);
}

.gallery-item.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.85);
}

.gallery-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(18, 18, 18, 0.95) 0%, rgba(18, 18, 18, 0.4) 60%, rgba(18, 18, 18, 0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition-normal);
}

.gallery-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gallery-card h3 {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    color: var(--color-white);
    margin-bottom: 1rem;
    transform: translateY(15px);
    transition: var(--transition-normal);
}

.gallery-view-btn {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-white);
    opacity: 0;
    transform: translateY(15px);
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hover States */
.gallery-card:hover .gallery-img {
    transform: scale(1.08);
}

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

.gallery-card:hover h3, 
.gallery-card:hover .gallery-view-btn {
    transform: translateY(0);
    opacity: 1;
}

.gallery-card:hover .gallery-view-btn {
    transition-delay: 0.1s;
}

/* Lightbox Modal Structure */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.modal-content-container {
    position: relative;
    width: 90%;
    max-width: 1100px;
    height: 85vh;
    max-height: 750px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
    z-index: 2002;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-modal.active .modal-content-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    z-index: 2010;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--color-gold);
    transform: rotate(90deg);
}

/* Modal Sequence Navigation Arrows */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--color-text-primary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2005;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.modal-nav:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
    border-color: var(--color-gold);
}

.modal-nav-prev {
    left: 40px;
}

.modal-nav-next {
    right: 40px;
}

@media (max-width: 1300px) {
    .modal-nav-prev {
        left: 20px;
    }
    .modal-nav-next {
        right: 20px;
    }
}

@media (max-width: 1024px) {
    .modal-nav {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        z-index: 2010;
    }
    .modal-nav-prev {
        left: 15px;
    }
    .modal-nav-next {
        right: 15px;
    }
}

@media (max-width: 768px) {
    .modal-nav {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        background-color: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(0, 0, 0, 0.08);
        color: var(--color-text-primary);
    }
    .modal-nav-prev {
        left: 10px;
    }
    .modal-nav-next {
        right: 10px;
    }
}

/* Modal Grid */
.modal-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    height: 100%;
}

.modal-image-column {
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    overflow: hidden;
    border-right: 1px solid var(--border-color);
}

.modal-image-column img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.modal-info-column {
    display: flex;
    flex-direction: column;
    padding: 3rem 2.5rem;
    height: 100%;
    overflow-y: auto;
}

.modal-info-column h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    padding-right: 20px;
}

/* Tabs styles */
.modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.tab-header {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
}

.tab-header:hover {
    color: var(--color-heading);
}

.tab-header.active {
    color: var(--color-gold);
}

.tab-header.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-gold);
}

.facebook-icon {
    color: #1877f2;
}

.tab-content {
    display: none;
    flex-grow: 1;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
}

/* Spec list */
.spec-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    background-color: var(--bg-primary);
    padding: 1.25rem;
    border: 1px solid var(--border-color);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.spec-label {
    color: var(--color-text-muted);
    font-weight: 500;
}

.spec-value {
    color: var(--color-heading);
    font-weight: 600;
    text-align: right;
}

.project-details h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.project-details p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.modal-cta {
    margin-top: auto;
    padding-top: 2rem;
}

/* Facebook post simulated view */
.fb-post-container {
    background-color: #242526;
    color: #e4e6eb;
    border-radius: 8px;
    padding: 1rem;
    font-family: var(--font-body);
}

.fb-post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
}

.fb-logo-placeholder {
    width: 40px;
    height: 40px;
    background-color: var(--color-gold);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.fb-header-text {
    display: flex;
    flex-direction: column;
}

.fb-page-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #e4e6eb;
}

.fb-post-date {
    font-size: 0.8rem;
    color: #b0b3b8;
}

.fb-dots {
    margin-left: auto;
    color: #b0b3b8;
    cursor: pointer;
}

.fb-post-text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: #e4e6eb;
}

.fb-stats-bar {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-top: 1px solid #3e4042;
    border-bottom: 1px solid #3e4042;
    font-size: 0.8rem;
    color: #b0b3b8;
}

.fb-likes-count {
    display: flex;
    align-items: center;
    gap: 5px;
}

.fb-thumbs-up {
    width: 18px;
    height: 18px;
    background-color: #1877f2;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
}

.fb-actions-bar {
    display: flex;
    justify-content: space-around;
    padding: 0.25rem 0;
    border-bottom: 1px solid #3e4042;
    margin-bottom: 1rem;
}

.fb-action-btn {
    background: none;
    border: none;
    color: #b0b3b8;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.fb-action-btn:hover {
    background-color: #3a3b3c;
    color: #e4e6eb;
}

.fb-comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Custom Facebook comment bubbles */
.fb-comment-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.fb-comment-avatar {
    width: 32px;
    height: 32px;
    background-color: #4e4f50;
    color: #e4e6eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.fb-comment-bubble {
    background-color: #3a3b3c;
    border-radius: 18px;
    padding: 8px 12px;
    max-width: 85%;
}

.fb-comment-user {
    display: block;
    font-weight: 600;
    font-size: 0.8rem;
    color: #e4e6eb;
    margin-bottom: 2px;
}

.fb-comment-text {
    font-size: 0.82rem;
    color: #e4e6eb;
    line-height: 1.4;
}

/* Responsive Styles for Portfolio Showcase */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content-container {
        height: 90vh;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .portfolio-title {
        font-size: 2.2rem;
    }
    
    .filter-container {
        margin-bottom: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modal-content-container {
        width: 95%;
        height: 95vh;
        overflow-y: auto;
    }
    
    .modal-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .modal-image-column {
        height: 300px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .modal-info-column {
        padding: 2rem 1.5rem;
        height: auto;
        overflow-y: visible;
    }
    
    .modal-info-column h2 {
        font-size: 1.6rem;
    }
}
