/* ═══════════════════════════════════════════════════
   Projects Plugin — Frontend Styles
   Font: Inter (loaded via template)
   ═══════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
    --pp-dark:    #0d1117;
    --pp-navy:    #0e1428;
    --pp-light:   #f5f5f3;
    --pp-white:   #ffffff;
    --pp-accent:  #f97316;   /* orange stars */
    --pp-blue:    #60a5fa;
    --pp-text:    #1a1a2e;
    --pp-muted:   #6b7280;
    --pp-border:  #e5e7eb;
    --pp-card-bg: #111827;
    --pp-radius:  16px;
    --pp-radius-sm: 8px;
    --pp-shadow:  0 4px 24px rgba(0,0,0,.08);
    --pp-shadow-lg: 0 16px 48px rgba(0,0,0,.15);
    --pp-font:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --pp-transition: .3s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
.pp-single *,
.pp-grid *,
.pp-grid-section * { box-sizing: border-box; margin: 0; padding: 0; }

.pp-single,
.pp-grid-section { font-family: var(--pp-font); color: var(--pp-text); line-height: 1.6; }

img { max-width: 100%; height: auto; display: block; }

/* ══════════════════════════════════════════
   SINGLE PROJECT PAGE
   ══════════════════════════════════════════ */

/* ── Back button ── */
.pp-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1.5px solid var(--pp-border);
    border-radius: 100px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--pp-text);
    text-decoration: none;
    transition: var(--pp-transition);
    background: var(--pp-white);
}
.pp-back-btn:hover {
    background: var(--pp-light);
    border-color: #d1d5db;
    color: var(--pp-text);
}
.pp-back-btn svg { width: 16px; height: 16px; }

/* ── Hero ── */
.pp-hero {
    padding: 40px 0 0;
}
.pp-hero-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 56px;
}
.pp-hero-left {}
.pp-hero-headline {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--pp-navy);
    margin-bottom: 24px;
    letter-spacing: -.02em;
}
.pp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.pp-tag {
    padding: 6px 14px;
    background: var(--pp-light);
    border: 1px solid var(--pp-border);
    border-radius: 100px;
    font-size: .8rem;
    font-weight: 500;
    color: var(--pp-muted);
}
.pp-meta-duration {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .875rem;
    color: var(--pp-muted);
}
.pp-meta-duration svg { opacity: .6; }

.pp-hero-image {
    border-radius: var(--pp-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
}
.pp-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.pp-hero-image:hover img { transform: scale(1.03); }

/* ── Review box ── */
.pp-review-box {
    background: var(--pp-light);
    border-radius: var(--pp-radius);
    padding: 48px 40px;
    text-align: center;
    margin-bottom: 80px;
    border: 1px solid var(--pp-border);
}
.pp-quote-icon {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 20px;
}
.pp-quote-icon span {
    display: block;
    width: 16px;
    height: 20px;
    border-radius: 50% 50% 0 50%;
}
.pp-quote-icon span:first-child { background: var(--pp-blue); }
.pp-quote-icon span:last-child  { background: var(--pp-navy); border-radius: 50% 50% 50% 0; }

.pp-review-content {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--pp-text);
    margin-bottom: 28px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}
.pp-reviewer-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px;
    border: 2px solid var(--pp-border);
}
.pp-reviewer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pp-reviewer-initials {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--pp-navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 auto 12px;
}
.pp-reviewer-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}
.pp-review-date {
    font-size: .8rem;
    color: var(--pp-muted);
    margin-bottom: 12px;
}
.pp-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
}
.pp-star { font-size: 1.25rem; color: #e5e7eb; }
.pp-star--filled { color: var(--pp-accent); }

/* ── Goal section ── */
.pp-goal-section { padding: 0 0 80px; }
.pp-section-label {
    font-size: .8rem;
    font-weight: 700;
    color: var(--pp-blue);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.pp-deco-icon {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}
.pp-deco-icon span {
    display: block;
    width: 14px;
    height: 18px;
    border-radius: 50% 50% 0 50%;
}
.pp-deco-icon span:first-child { background: var(--pp-blue); }
.pp-deco-icon span:last-child  { background: var(--pp-navy); border-radius: 50% 50% 50% 0; }

.pp-goal-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 64px;
}
.pp-goal-description {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--pp-navy);
}
.pp-goal-items-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
}
.pp-goal-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    color: var(--pp-text);
    font-weight: 500;
}
.pp-goal-item-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: .6;
}

/* ── Steps section ── */
.pp-steps-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.pp-steps-list { display: flex; flex-direction: column; gap: 0; }
.pp-step-item  { position: relative; padding-left: 56px; padding-bottom: 40px; }
.pp-step-item:last-child { padding-bottom: 0; }
.pp-step-item::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background: var(--pp-border);
}
.pp-step-item:last-child::before { display: none; }
.pp-step-num {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pp-navy);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pp-step-name { font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; color: var(--pp-navy); }
.pp-step-description { font-size: .9rem; color: var(--pp-muted); line-height: 1.6; }

/* Step separator line (left border accent) */
.pp-step-item + .pp-step-item::after {
    content: '';
    position: absolute;
    left: 56px;
    top: -20px;
    height: 1px;
    right: 0;
    background: var(--pp-border);
    opacity: .5;
}

.pp-project-image-wrap {
    border-radius: var(--pp-radius);
    overflow: hidden;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, #667eea 0%, #f093fb 100%);
}
.pp-project-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── See more ── */
.pp-more-section { padding: 80px 0 60px; }
.pp-section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--pp-navy);
    margin-bottom: 36px;
    letter-spacing: -.02em;
}

/* ══════════════════════════════════════════
   PROJECTS GRID (shortcode + see more)
   ══════════════════════════════════════════ */

.pp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.pp-grid--2col { grid-template-columns: repeat(2, 1fr); }
.pp-grid--1col { grid-template-columns: 1fr; }

.pp-project-card {
    background: var(--pp-card-bg);
    border-radius: var(--pp-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform var(--pp-transition), box-shadow var(--pp-transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.pp-project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--pp-shadow-lg);
}
.pp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 24px 12px;
}
.pp-card-deco { display: flex; gap: 3px; }
.pp-card-deco span {
    display: block;
    width: 12px;
    height: 16px;
    border-radius: 50% 50% 0 50%;
}
.pp-card-deco span:first-child { background: var(--pp-blue); }
.pp-card-deco span:last-child  { background: var(--pp-navy); border-radius: 50% 50% 50% 0; border: 2px solid #2d3a5e; }

/* accent colors per card (nth-child) */
.pp-project-card:nth-child(2) .pp-card-deco span:first-child { background: #a78bfa; }
.pp-project-card:nth-child(2) .pp-card-deco span:last-child  { border-color: #3b2f6e; }
.pp-project-card:nth-child(3) .pp-card-deco span:first-child { background: #34d399; }
.pp-project-card:nth-child(3) .pp-card-deco span:last-child  { border-color: #1a4f3a; }
.pp-project-card:nth-child(4) .pp-card-deco span:first-child { background: #fb923c; }
.pp-project-card:nth-child(4) .pp-card-deco span:last-child  { border-color: #7c3415; }
.pp-project-card:nth-child(5) .pp-card-deco span:first-child { background: #f472b6; }
.pp-project-card:nth-child(5) .pp-card-deco span:last-child  { border-color: #6b1040; }

.pp-card-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}
.pp-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pp-card-thumb-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    background: #1f2d4e;
}

.pp-card-body { padding: 12px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.pp-card-headline {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
    margin-bottom: 16px;
    flex: 1;
}
.pp-card-client {
    font-size: .8rem;
    color: rgba(255,255,255,.5);
    margin-bottom: 10px;
}
.pp-card .pp-stars { justify-content: flex-start; margin-bottom: 18px; }
.pp-card .pp-star  { font-size: 1rem; }

.pp-card-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #ffffff;
    color: var(--pp-navy);
    border-radius: 100px;
    font-size: .825rem;
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
    transition: var(--pp-transition);
    border: none;
    cursor: pointer;
}
.pp-card-btn:hover {
    background: #f0f0f0;
    color: var(--pp-navy);
}

/* ── Container ── */
.pp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .pp-grid { grid-template-columns: repeat(2, 1fr); }
    .pp-hero-top,
    .pp-goal-top { gap: 40px; }
}

@media (max-width: 768px) {
    .pp-hero-top,
    .pp-goal-top,
    .pp-steps-section { grid-template-columns: 1fr; gap: 32px; }
    .pp-hero-headline { font-size: 1.8rem; }
    .pp-review-box { padding: 36px 24px; }
    .pp-goal-items-grid { grid-template-columns: 1fr; }
    .pp-grid { grid-template-columns: 1fr; }
    .pp-project-image-wrap { aspect-ratio: 16/9; }
    .pp-hero-image { aspect-ratio: 16/10; }
    .pp-section-title { font-size: 1.4rem; }
    .pp-goal-description { font-size: 1.05rem; }
}

@media (max-width: 480px) {
    .pp-container { padding: 0 16px; }
    .pp-hero { padding: 24px 0 0; }
    .pp-review-box { padding: 28px 16px; }
    .pp-back-btn { font-size: .8rem; padding: 8px 14px; }
    .pp-card-header { padding: 18px 18px 8px; }
    .pp-card-body { padding: 8px 18px 18px; }
    .pp-card-thumb { width: 60px; height: 60px; }
}

/* ── Animations ── */
@keyframes pp-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.pp-single .pp-hero-top,
.pp-single .pp-review-box,
.pp-single .pp-goal-section,
.pp-single .pp-more-section { animation: pp-fade-up .5s ease both; }
.pp-single .pp-review-box    { animation-delay: .1s; }
.pp-single .pp-goal-section  { animation-delay: .15s; }
.pp-single .pp-more-section  { animation-delay: .2s; }

.pp-project-card { animation: pp-fade-up .4s ease both; }
.pp-project-card:nth-child(2) { animation-delay: .08s; }
.pp-project-card:nth-child(3) { animation-delay: .16s; }
.pp-project-card:nth-child(4) { animation-delay: .24s; }
.pp-project-card:nth-child(5) { animation-delay: .32s; }
