/* ===== REALIZACJE (GALLERY) PAGE STYLES ===== */

/* ===== LISTING PAGE: FILTER BAR ===== */
.rlz-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.rlz-filter-btn {
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}
.rlz-filter-btn:hover {
    border-color: var(--blue-400);
    color: var(--blue-600);
}
.rlz-filter-btn.active {
    background: var(--blue-900);
    border-color: var(--blue-900);
    color: var(--white);
}

/* ===== LISTING GRID ===== */
.rlz-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.rlz-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.4s var(--ease-out-expo);
    text-decoration: none;
    color: inherit;
    display: block;
}
.rlz-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: var(--blue-400);
}

.rlz-card-img {
    height: 220px;
    background: var(--blue-800);
    position: relative;
    overflow: hidden;
}
.rlz-card-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
}
.rlz-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}
/* SVG placeholder for cards without photos */
.rlz-card-img svg {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    color: rgba(255,255,255,0.2);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.rlz-card-img .rlz-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to top, rgba(10,22,40,0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out-expo);
}
.rlz-card:hover .rlz-card-overlay {
    opacity: 1;
}
.rlz-card-overlay span {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--white);
}
.rlz-card-overlay span svg {
    width: 16px;
    height: 16px;
    color: var(--white);
    position: static;
    transform: none;
}

.rlz-card-body {
    padding: 24px;
}

.rlz-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.rlz-tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 4px;
}
.rlz-tag--kolizja {
    color: var(--blue-600);
    background: rgba(37,99,168,0.08);
}
.rlz-tag--siec {
    color: #047857;
    background: rgba(4,120,87,0.08);
}
.rlz-tag--przylacze {
    color: #b45309;
    background: rgba(245,158,11,0.1);
}
.rlz-tag--skablowanie {
    color: #7c3aed;
    background: rgba(124,58,237,0.08);
}

.rlz-card-date {
    font-size: 0.8125rem;
    color: var(--gray-400);
    font-weight: 500;
}

.rlz-card-body h3 {
    font-size: 1.0625rem;
    margin-bottom: 10px;
    line-height: 1.3;
    color: var(--blue-900);
}

.rlz-card-body p {
    font-size: 0.9375rem;
    color: var(--gray-500);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rlz-card-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px 24px;
}
.rlz-card-detail {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8125rem;
    color: var(--gray-400);
}
.rlz-card-detail svg {
    width: 14px;
    height: 14px;
    color: var(--gray-400);
    flex-shrink: 0;
    position: static;
    transform: none;
}

/* ===== LISTING: STATS BAR ===== */
.rlz-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 32px 0;
    margin-bottom: 48px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
}
.rlz-stat {
    flex: 1;
    text-align: center;
    padding: 0 24px;
}
.rlz-stat strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue-900);
    letter-spacing: -0.02em;
    margin-bottom: 2px;
}
.rlz-stat span {
    font-size: 0.8125rem;
    color: var(--gray-500);
}
.rlz-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-200);
    flex-shrink: 0;
}

/* ===== SINGLE PAGE: HERO GALLERY ===== */
.rlz-single-hero {
    padding: 140px 0 0;
    background: linear-gradient(165deg, var(--blue-900) 0%, var(--blue-800) 60%, var(--blue-700) 100%);
    position: relative;
    overflow: hidden;
}
.rlz-single-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 10% 90%, rgba(232,168,0,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 10%, rgba(59,130,196,0.12) 0%, transparent 50%);
}
.rlz-single-hero .container {
    position: relative;
    z-index: 1;
}
.rlz-single-hero h1 {
    color: var(--white);
    font-size: clamp(1.75rem, 4vw, 3rem);
    max-width: 800px;
    margin-bottom: 20px;
    line-height: 1.1;
}
.rlz-single-hero h1 span { color: var(--amber-400); }

.rlz-hero-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.rlz-hero-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.7);
}
.rlz-hero-detail svg {
    width: 18px;
    height: 18px;
    color: var(--amber-400);
    flex-shrink: 0;
}
.rlz-hero-detail strong {
    color: var(--white);
    font-weight: 600;
}

/* ===== SINGLE: MAIN IMAGE GALLERY ===== */
.rlz-gallery {
    position: relative;
    margin-top: 36px;
    margin-bottom: -80px;
}
.rlz-gallery-main {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--blue-800);
    position: relative;
}
.rlz-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rlz-gallery-main svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    color: rgba(255,255,255,0.15);
}

.rlz-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
}
.rlz-thumb {
    aspect-ratio: 16/10;
    background: var(--blue-700);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: all 0.3s var(--ease-out-expo);
}
.rlz-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10,22,40,0.3);
    transition: background 0.3s var(--ease-out-expo);
}
.rlz-thumb:hover::after {
    background: transparent;
}
.rlz-thumb.active::after {
    background: transparent;
    box-shadow: inset 0 0 0 3px var(--amber-500);
}
.rlz-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rlz-thumb svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    color: rgba(255,255,255,0.25);
    z-index: 1;
}

.rlz-gallery-count {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(10,22,40,0.75);
    backdrop-filter: blur(4px);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--white);
}
.rlz-gallery-count svg {
    width: 16px;
    height: 16px;
    color: var(--white);
    position: static;
    transform: none;
}

/* ===== SINGLE: CONTENT AREA ===== */
.rlz-content {
    padding: 120px 0 100px;
    background: var(--white);
}
.rlz-content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 56px;
    align-items: start;
}

/* Main content */
.rlz-main h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.rlz-main h3 {
    font-size: 1.125rem;
    margin-top: 32px;
    margin-bottom: 12px;
}
.rlz-main p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 1rem;
}
.rlz-main p:last-child { margin-bottom: 0; }

.rlz-scope-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}
.rlz-scope-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 20px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border-left: 3px solid var(--blue-500);
}
.rlz-scope-item svg {
    width: 20px;
    height: 20px;
    color: var(--blue-500);
    flex-shrink: 0;
    margin-top: 1px;
}
.rlz-scope-item span {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Sidebar */
.rlz-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rlz-info-card {
    padding: 28px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}
.rlz-info-card h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-500);
    margin-bottom: 16px;
    font-weight: 600;
}

.rlz-info-rows {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.rlz-info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.rlz-info-row svg {
    width: 18px;
    height: 18px;
    color: var(--blue-500);
    flex-shrink: 0;
    margin-top: 2px;
}
.rlz-info-row-text strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--blue-900);
    margin-bottom: 1px;
}
.rlz-info-row-text span {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.rlz-cta-card {
    padding: 28px;
    background: var(--blue-900);
    border-radius: var(--radius-lg);
    text-align: center;
}
.rlz-cta-card h4 {
    font-size: 1.0625rem;
    color: var(--white);
    margin-bottom: 8px;
}
.rlz-cta-card p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin-bottom: 20px;
}
.rlz-cta-card .btn {
    width: 100%;
    justify-content: center;
}

/* ===== SINGLE: RELATED PROJECTS ===== */
.rlz-related {
    padding: 100px 0;
    background: var(--gray-50);
}
.rlz-related h2 {
    margin-bottom: 40px;
}
.rlz-related .rlz-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* ===== LIGHTBOX ===== */
.rlz-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(10,22,40,0.92);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out-expo);
}
.rlz-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}
.rlz-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius);
}
.rlz-lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}
.rlz-lightbox-close:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
}
.rlz-lightbox-close svg {
    width: 24px;
    height: 24px;
}
.rlz-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}
.rlz-lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
}
.rlz-lightbox-nav svg {
    width: 24px;
    height: 24px;
}
.rlz-lightbox-prev { left: 24px; }
.rlz-lightbox-next { right: 24px; }
.rlz-lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .rlz-grid { grid-template-columns: repeat(2, 1fr); }
    .rlz-content-grid { grid-template-columns: 1fr; }
    .rlz-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .rlz-related .rlz-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .rlz-grid { grid-template-columns: 1fr; gap: 20px; }
    .rlz-card-img { height: 180px; }

    .rlz-stats { flex-direction: column; gap: 16px; padding: 24px; }
    .rlz-stat-divider { width: 40px; height: 1px; }

    .rlz-filters { gap: 8px; }
    .rlz-filter-btn { padding: 6px 16px; font-size: 0.8125rem; }

    .rlz-single-hero { padding: 100px 0 0; }
    .rlz-single-hero h1 { font-size: 1.5rem; }
    .rlz-hero-meta { gap: 12px; }
    .rlz-hero-detail { font-size: 0.8125rem; }

    .rlz-gallery { margin-bottom: -48px; }
    .rlz-gallery-thumbs { grid-template-columns: repeat(4, 1fr); gap: 2px; }
    .rlz-gallery-main { aspect-ratio: 4/3; }

    .rlz-content { padding: 80px 0 64px; }
    .rlz-content-grid { gap: 36px; }
    .rlz-sidebar { grid-template-columns: 1fr; }

    .rlz-related { padding: 64px 0; }
    .rlz-related .rlz-grid { grid-template-columns: 1fr; }

    .rlz-lightbox-nav { display: none; }
}
