/* ============================================================
   Adelline Portfolio – Front-End Styles v1.0.1
   Dark theme — auriu #c9a96e, text alb, overlay mereu vizibil
   ============================================================ */

:root {
    --apf-gold:        #c9a96e;
    --apf-gold-light:  #e8d5b0;
    --apf-dark:        #2c2c2c;
    --apf-white:       #ffffff;
    --apf-border:      rgba(255,255,255,0.12);
    --apf-radius:      4px;
    --apf-transition:  0.35s ease;
    --apf-shadow:      0 4px 24px rgba(0,0,0,0.25);
    --apf-shadow-hover:0 8px 40px rgba(0,0,0,0.40);
}

/* ─── Wrapper general ───────────────────────────────────────── */
.apf-portfolio-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
    box-sizing: border-box;
}

/* ─── Butoane Filtrare ──────────────────────────────────────── */
.apf-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 48px;
    padding-top: 10px;
}

.apf-filter-btn {
    display: inline-block;
    padding: 10px 26px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.65);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: var(--apf-radius);
    transition: background var(--apf-transition),
                color var(--apf-transition),
                border-color var(--apf-transition);
}

.apf-filter-btn:hover {
    border-color: var(--apf-gold);
    color: var(--apf-gold);
    background: transparent;
}

.apf-filter-btn.active {
    background: var(--apf-gold);
    border-color: var(--apf-gold);
    color: #1a1a1a;
    font-weight: 600;
}

/* ─── Grilă Proiecte ────────────────────────────────────────── */
.apf-grid {
    display: grid;
    gap: 20px;
}

.apf-cols-1 { grid-template-columns: 1fr; }
.apf-cols-2 { grid-template-columns: repeat(2, 1fr); }
.apf-cols-3 { grid-template-columns: repeat(3, 1fr); }
.apf-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .apf-cols-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .apf-cols-3,
    .apf-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .apf-cols-2,
    .apf-cols-3,
    .apf-cols-4 { grid-template-columns: 1fr; }
}

/* ─── Card Proiect ──────────────────────────────────────────── */
.apf-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--apf-radius);
    background: transparent;
    box-shadow: var(--apf-shadow);
    transition: box-shadow var(--apf-transition), transform var(--apf-transition);
}

.apf-item:hover {
    box-shadow: var(--apf-shadow-hover);
    transform: translateY(-4px);
}

/* Filtrare */
.apf-item.apf-hidden {
    display: none;
}

.apf-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* ─── Imagine Card ──────────────────────────────────────────── */
.apf-item-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #111;
}

.apf-item-img .apf-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.65s ease;
}

.apf-item:hover .apf-thumb-img {
    transform: scale(1.06);
}

/* Placeholder fără imagine */
.apf-no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e1e1e 0%, #2c2c2c 100%);
    color: rgba(255,255,255,0.3);
    font-size: 12px;
    text-align: center;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ─── Overlay — MEREU VIZIBIL ───────────────────────────────── */
/*
   Gradientul de jos este întotdeauna afișat.
   Titlul, categoria și "Vezi Proiect" sunt mereu vizibile.
   La hover, imaginea se mărește ușor.
*/
.apf-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.82) 0%,
        rgba(0,0,0,0.40) 45%,
        rgba(0,0,0,0.05) 100%
    );
    display: flex;
    align-items: flex-end;
    opacity: 1;              /* ← MEREU VIZIBIL */
    transition: background var(--apf-transition);
}

.apf-item:hover .apf-item-overlay {
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.90) 0%,
        rgba(0,0,0,0.55) 50%,
        rgba(0,0,0,0.10) 100%
    );
}

.apf-overlay-inner {
    padding: 22px 18px;
    width: 100%;
}

/* ─── Text în overlay ───────────────────────────────────────── */
.apf-item-title {
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px !important;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.apf-item-cats {
    color: var(--apf-gold) !important;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 10px !important;
    display: block;
    font-weight: 500;
}

.apf-cta {
    display: inline-block;
    color: rgba(255,255,255,0.75);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--apf-gold);
    padding-bottom: 1px;
    transition: color var(--apf-transition);
}

.apf-item:hover .apf-cta {
    color: var(--apf-gold);
}

/* ─── Mesaj fără proiecte ───────────────────────────────────── */
.apf-no-posts {
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-style: italic;
    padding: 40px 0;
}

/* ======================================================
   PAGINA SINGLE PROIECT — dark theme, text alb
   ====================================================== */

.apf-single {
    font-family: inherit;
    color: #ffffff;
}

/* ─── Hero Image ────────────────────────────────────────────── */
.apf-hero {
    width: 100%;
    height: 65vh;
    min-height: 380px;
    max-height: 700px;
    overflow: hidden;
    position: relative;
    background: #111;
}

.apf-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.apf-hero-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e1e1e 0%, #2c2c2c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 14px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ─── Container conținut ────────────────────────────────────── */
.apf-single-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px 80px;
    box-sizing: border-box;
    color: #ffffff;
}

/* ─── Header proiect ────────────────────────────────────────── */
.apf-project-header {
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding-bottom: 32px;
    margin-bottom: 48px;
}

.apf-project-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.apf-cat-badge {
    display: inline-block;
    padding: 5px 14px;
    background: transparent;
    border: 1px solid var(--apf-gold);
    color: var(--apf-gold);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 2px;
    text-decoration: none;
    transition: background var(--apf-transition), color var(--apf-transition);
}

.apf-cat-badge:hover {
    background: var(--apf-gold);
    color: #1a1a1a;
}

.apf-project-title {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 600;
    color: #ffffff !important;
    margin: 0 !important;
    line-height: 1.2;
}

/* ─── Layout 2 coloane ──────────────────────────────────────── */
.apf-layout-cols {
    display: grid;
    grid-template-columns: 1fr 270px;
    gap: 60px;
    margin-bottom: 72px;
    align-items: start;
}

@media (max-width: 860px) {
    .apf-layout-cols {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ─── Descriere — text alb ──────────────────────────────────── */
.apf-description {
    font-size: 16px;
    line-height: 1.85;
    color: rgba(255,255,255,0.82);
}

.apf-description p,
.apf-description h1,
.apf-description h2,
.apf-description h3,
.apf-description li {
    color: rgba(255,255,255,0.82) !important;
}

/* ─── Sidebar detalii ───────────────────────────────────────── */
.apf-details-sidebar {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-top: 2px solid var(--apf-gold);
    padding: 26px 22px;
    border-radius: var(--apf-radius);
}

.apf-details-title {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.40);
    margin: 0 0 18px;
    font-weight: 600;
}

.apf-detail-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.apf-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.apf-detail-label {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.40);
    font-weight: 500;
}

.apf-detail-value {
    font-size: 15px;
    color: #ffffff;
    font-weight: 400;
}

/* ─── Secțiunea Galerie ─────────────────────────────────────── */
.apf-gallery-section {
    margin-bottom: 64px;
}

.apf-section-title {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.40);
    margin: 0 0 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    font-weight: 600;
}

/* ─── Slider Custom (fără Swiper) ────────────────────────────── */
.apf-slider {
    position: relative;
    border-radius: var(--apf-radius);
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    background: #111;
    user-select: none;
}

/* Viewport — maschează ce iese din cadru */
.apf-slider-viewport {
    overflow: hidden;
    width: 100%;
}

/* Track — conține toate slide-urile aliniate orizontal */
.apf-slider-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Fiecare slide */
.apf-slide {
    min-width: 100%;
    flex-shrink: 0;
    position: relative;
}

.apf-slide a {
    display: block;
    line-height: 0;
}

.apf-slide img {
    width: 100%;
    height: 70vh;
    min-height: 320px;
    max-height: 760px;
    object-fit: contain;   /* ← poza întreagă, fără tăieri */
    background: #0d0d0d;   /* fundal negru în spatele pozei */
    display: block;
    cursor: zoom-in;
}

/* ─── Săgeți prev/next ──────────────────────────────────────── */
.apf-slider-prev,
.apf-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--apf-transition), transform 0.2s ease;
    padding: 0;
}

.apf-slider-prev { left: 16px; }
.apf-slider-next { right: 16px; }

.apf-slider-prev:hover,
.apf-slider-next:hover {
    background: var(--apf-gold);
    transform: translateY(-50%) scale(1.08);
}

/* ─── Nav (counter + dots) ──────────────────────────────────── */
.apf-slider-nav {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.apf-slider-counter {
    font-size: 11px;
    color: rgba(255,255,255,0.60);
    letter-spacing: 0.12em;
    background: rgba(0,0,0,0.35);
    padding: 3px 10px;
    border-radius: 20px;
}

/* ─── Dots ──────────────────────────────────────────────────── */
.apf-dots {
    display: flex;
    gap: 7px;
    align-items: center;
}

.apf-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.40);
    cursor: pointer;
    transition: background 0.25s ease, width 0.25s ease;
    display: inline-block;
}

.apf-dot.apf-dot-active {
    background: var(--apf-gold);
    width: 22px;
    border-radius: 4px;
}

/* ══════════════════════════════════════════════════════════════
   LIGHTBOX FULLSCREEN — galerie proiect
   ══════════════════════════════════════════════════════════════ */

/* Body lock când lightbox e deschis */
body.apf-lb-body-lock {
    overflow: hidden;
}

/* Overlay principal */
.apf-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.apf-lightbox.apf-lb-open {
    opacity: 1;
    visibility: visible;
}

/* Stage — zona imaginii */
.apf-lb-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: calc(100vw - 140px);
    max-height: 90vh;
    cursor: default;
}

.apf-lb-img {
    max-width: calc(100vw - 140px);
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.70);
    border-radius: 2px;
    transition: opacity 0.18s ease;
}

/* Buton închidere (X) */
.apf-lb-close {
    position: fixed;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100001;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    padding: 0;
}

.apf-lb-close:hover {
    background: var(--apf-gold);
    border-color: var(--apf-gold);
    color: #1a1a1a;
    transform: rotate(90deg);
}

/* Săgeți stânga / dreapta */
.apf-lb-prev,
.apf-lb-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100001;
    width: 56px;
    height: 56px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease,
                border-color 0.2s ease,
                transform 0.2s ease;
    padding: 0;
}

.apf-lb-prev { left: 20px; }
.apf-lb-next { right: 20px; }

.apf-lb-prev:hover {
    background: var(--apf-gold);
    border-color: var(--apf-gold);
    transform: translateY(-50%) scale(1.08);
    color: #1a1a1a;
}

.apf-lb-next:hover {
    background: var(--apf-gold);
    border-color: var(--apf-gold);
    transform: translateY(-50%) scale(1.08);
    color: #1a1a1a;
}

/* Counter 1 / N */
.apf-lb-counter {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.14em;
    background: rgba(0, 0, 0, 0.45);
    padding: 5px 16px;
    border-radius: 20px;
    z-index: 100001;
    white-space: nowrap;
}

/* Responsive mobile */
@media (max-width: 600px) {
    .apf-lb-stage,
    .apf-lb-img {
        max-width: 100vw;
        max-height: 80vh;
    }

    .apf-lb-prev { left: 10px; }
    .apf-lb-next { right: 10px; }

    .apf-lb-prev,
    .apf-lb-next {
        width: 44px;
        height: 44px;
    }
}

/* ─── Buton înapoi ──────────────────────────────────────────── */
.apf-back-wrap {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.10);
}

.apf-back-btn {
    display: inline-block;
    padding: 13px 34px;
    border: 1px solid rgba(255,255,255,0.30);
    color: rgba(255,255,255,0.75);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--apf-radius);
    transition: background var(--apf-transition),
                color var(--apf-transition),
                border-color var(--apf-transition);
}

.apf-back-btn:hover {
    background: var(--apf-gold);
    border-color: var(--apf-gold);
    color: #1a1a1a;
}
