/* ============================================
   GHORA DESIGN - Masonry Portfolio Grid
   Pure CSS columns - no JS masonry needed
   ============================================ */

/* ---- Filter Bar ---- */
.ghora-filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    padding: 0 20px;
}

.ghora-filter-btn {
    font-family: var(--ghora-font-accent);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 24px;
    border: 1px solid var(--ghora-border);
    border-radius: 100px;
    background: transparent;
    color: var(--ghora-text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.ghora-filter-btn:hover {
    border-color: var(--ghora-accent);
    color: var(--ghora-text-primary);
}

.ghora-filter-btn.active {
    background: var(--ghora-accent);
    border-color: var(--ghora-accent);
    color: var(--ghora-bg-primary);
    font-weight: 600;
}

.ghora-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.65rem;
    font-weight: 600;
    background: var(--ghora-bg-card);
    border-radius: 10px;
    margin-left: 6px;
}

.ghora-filter-btn.active .ghora-filter-count {
    background: rgba(0, 0, 0, 0.2);
    color: var(--ghora-bg-primary);
}

/* ---- Masonry Grid (CSS Columns) ---- */
.ghora-masonry-grid {
    columns: 4;
    column-gap: 12px;
    max-width: var(--ghora-container);
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 40px);
}

.ghora-grid-sizer,
.ghora-grid-gutter {
    display: none;
}

.ghora-grid-item {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin-bottom: 12px;
    display: block;
    width: 100%;
    transition: opacity 0.3s ease;
}

/* ---- Project Card ---- */
.ghora-project-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background: var(--ghora-bg-card);
}

.ghora-project-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ghora-project-card:hover img {
    transform: scale(1.05);
}

/* ---- Overlay ---- */
.ghora-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 40%,
        rgba(10, 10, 10, 0.3) 60%,
        rgba(10, 10, 10, 0.85) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ghora-project-card:hover .ghora-card-overlay {
    opacity: 1;
}

.ghora-card-category {
    font-family: var(--ghora-font-accent);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ghora-accent);
    margin-bottom: 6px;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s ease;
}

.ghora-project-card:hover .ghora-card-category {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.05s;
}

.ghora-card-title {
    font-family: var(--ghora-font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ghora-text-primary);
    margin-bottom: 4px;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s ease;
}

.ghora-project-card:hover .ghora-card-title {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.1s;
}

.ghora-card-meta {
    font-family: var(--ghora-font-accent);
    font-size: 0.72rem;
    color: var(--ghora-text-muted);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s ease;
}

.ghora-project-card:hover .ghora-card-meta {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.15s;
}

/* ---- View Icon ---- */
.ghora-card-view-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.ghora-project-card:hover .ghora-card-view-icon {
    opacity: 1;
    transform: scale(1);
}

.ghora-card-view-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: white;
    stroke-width: 2;
}

/* ---- Empty State ---- */
.ghora-no-results {
    text-align: center;
    padding: 60px 20px;
}

.ghora-no-results h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

/* ---- Load More ---- */
.ghora-load-more-wrap {
    text-align: center;
    margin-top: 48px;
}

.ghora-load-more {
    font-family: var(--ghora-font-accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 14px 40px;
    background: transparent;
    border: 1px solid var(--ghora-border);
    border-radius: 100px;
    color: var(--ghora-text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.ghora-load-more:hover {
    border-color: var(--ghora-accent);
    color: var(--ghora-accent);
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
    .ghora-masonry-grid { columns: 3; }
}

@media (max-width: 768px) {
    .ghora-masonry-grid { columns: 2; }
    .ghora-card-overlay { padding: 16px; }
    .ghora-card-title { font-size: 0.95rem; }
    .ghora-filter-bar { gap: 6px; }
    .ghora-filter-btn { padding: 8px 16px; font-size: 0.7rem; }
}

@media (max-width: 480px) {
    .ghora-masonry-grid { columns: 1; }
}
