/* ============================================================
   ABiG Studio — Portfolio Section
   public/web/css/portfolio.css
   ============================================================ */

.pf-section {
    background: #ffffff;
    padding: 5rem 0 6rem;
}

/* ── Header ──────────────────────────────────────────────────── */
.pf-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.pf-heading {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.18;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
}

.pf-heading span {
    background: linear-gradient(90deg, #3b5bdb 0%, #9b3ec8 60%, #e0257a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pf-subtext {
    font-size: 1.0625rem;
    color: #475569;
    line-height: 1.8;
    margin: 0;
}

/* ── Grid ────────────────────────────────────────────────────── */
.pf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: start;
}

@media (max-width: 900px) {
    .pf-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
    .pf-grid { grid-template-columns: 1fr; }
}

/* ── Card ────────────────────────────────────────────────────── */
.pf-card {
    border-radius: 0.625rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    border: 1px solid #e2e8f0;
    opacity: 0;
    transform: translateY(24px);
}

.pf-card.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease,
                box-shadow 0.3s ease;
}

.pf-card[data-index="0"] { transition-delay: 0.05s; }
.pf-card[data-index="1"] { transition-delay: 0.15s; }
.pf-card[data-index="2"] { transition-delay: 0.25s; }
.pf-card[data-index="3"] { transition-delay: 0.05s; }
.pf-card[data-index="4"] { transition-delay: 0.15s; }
.pf-card[data-index="5"] { transition-delay: 0.25s; }



/* ── TOP: pure screenshot ────────────────────────────────────── */
.pf-card__top {
    background: var(--card-bg, #FFF8E7);
    width: 100%;
    overflow: hidden;
    line-height: 0;
}



.pf-card__top-empty {
    width: 100%;
    height: 320px;
    background: var(--card-bg, #f1f5f9);
}

/* ── BOTTOM: footer ──────────────────────────────────────────── */
.pf-card__footer {
    background: var(--footer-bg, #E8175D);
    color: var(--footer-text, #ffffff);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.pf-card__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--footer-text, #ffffff);
    margin: 0;
    line-height: 1.15;
}

.pf-card__desc {
    font-size: 0.9rem;
    color: var(--footer-text, #ffffff);
    opacity: 0.92;
    line-height: 1.75;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Store buttons ───────────────────────────────────────────── */
.pf-card__stores {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    margin-top: 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 0.875rem;
    overflow: hidden;
}

.pf-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--footer-text, #ffffff);
    text-decoration: none;
    padding: 0.25rem 0.75rem 0.25rem 0;
    margin-right: 0.75rem;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
    transition: opacity 0.2s ease;
    flex-shrink: 0;
    min-width: 0;
}

.pf-store-btn:last-child {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
}

.pf-store-btn:hover {
    opacity: 0.75;
    color: var(--footer-text, #ffffff);
}

.pf-store-btn svg {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

.pf-store-btn__info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.pf-store-btn__name {
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    color: var(--footer-text, #ffffff);
    white-space: nowrap;
}

.pf-store-btn__stars {
    display: flex;
    align-items: center;
    gap: 0.03rem;
    line-height: 1;
}

.pf-star {
    font-style: normal;
    font-size: 0.65rem;
    line-height: 1;
}

.pf-star--full  { color: #facc15; }
.pf-star--half  { color: #facc15; opacity: 0.6; }
.pf-star--empty { color: rgba(255,255,255,0.3); }

.pf-store-btn__stars em {
    font-style: normal;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--footer-text, #ffffff);
    margin-left: 0.15rem;
    opacity: 0.9;
}

.pf-store-btn--web svg {
    width: 1rem;
    height: 1rem;
}

/* ── See More ────────────────────────────────────────────────── */
.pf-card__more {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--footer-text, #ffffff);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 0.25rem;
    transition: gap 0.2s ease;
}

.pf-card__more:hover {
    gap: 0.55rem;
    color: var(--footer-text, #ffffff);
    text-decoration: underline;
}

.pf-card__more svg {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 767px) {
    .pf-section { padding: 3.5rem 0 4rem; }
    .pf-header  { margin-bottom: 2rem; }
    .pf-card__top img { height: 220px; }
    .pf-card__top-empty { height: 220px; }
    .pf-card__footer { padding: 1.25rem; }
}