/* projects page styles. Extracted from projects.blade.php. */

/* =====================================================
   PROJECTS PAGE — uses same h-* design system
   ===================================================== */
.h-btn--sm { padding: 10px 16px; font-size: 13.5px; }

/* =====================================================
   HERO
   ===================================================== */
.h-hero { position: relative; padding: 80px 0; background: var(--bg-white); overflow: hidden; }
.h-hero__grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(59,130,246,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,130,246,0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
    z-index: 0;
}
.h-hero__glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(120px); opacity: 0.32; z-index: 0; pointer-events: none; }
.h-hero__glow--a { background: var(--primary-light); top: -160px; right: -120px; }
.h-hero__glow--b { background: var(--accent); bottom: -180px; left: -120px; opacity: .22; }
[dir="rtl"] .h-hero__glow--a { right: auto; left: -120px; }
[dir="rtl"] .h-hero__glow--b { left: auto; right: -120px; }

.h-hero__inner { position: relative; z-index: 1; max-width: 880px; text-align: center; margin: 0 auto; }
.h-chip--ghost { margin-bottom: 24px; }
.h-hero__title {
    font-size: clamp(36px, 5.6vw, 60px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: var(--text-dark);
    margin: 0 0 20px;
}
.h-hero__lede { font-size: 18px; line-height: 1.7; color: var(--text-light); max-width: 760px; margin: 0 auto 40px; }
.h-hero__stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 16px; max-width: 760px; margin: 0 auto;
    padding: 24px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: var(--h-card-shadow);
}
.h-hero__stat { text-align: center; padding: 0 4px; }
.h-hero__stat strong {
    display: block;
    font-size: clamp(24px, 3.2vw, 34px);
    font-weight: 800; color: var(--primary);
    line-height: 1; letter-spacing: -0.02em;
    margin-bottom: 6px;
}
.h-hero__stat span {
    display: block;
    font-size: 11.5px; font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase; letter-spacing: 0.08em;
}
@media (max-width: 640px) {
    .h-hero { padding: 56px 0; }
    .h-hero__stats { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; padding: 22px 12px; }
}

/* =====================================================
   PROJECT CARD (featured = with media)
   ===================================================== */
.h-proj { padding: 0; overflow: hidden; }
.h-proj__media {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.h-proj__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--h-ease); }
.h-proj:hover .h-proj__media img { transform: scale(1.05); }
.h-proj__media-fallback {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.7);
    font-size: 64px;
}
.h-proj__live-badge {
    position: absolute;
    top: 14px; right: 14px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px;
    background: rgba(255,255,255,.95);
    color: var(--primary);
    border-radius: 999px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
[dir="rtl"] .h-proj__live-badge { right: auto; left: 14px; }
.h-proj__live-dot {
    width: 7px; height: 7px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(16,185,129,.3);
    animation: h-pulse 1.4s ease-in-out infinite;
}

.h-proj__body { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; }
.h-proj__badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: 999px;
    font-size: 10.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 12px;
    width: fit-content;
}
.h-proj__badge i { font-size: 9px; }
.h-proj__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px;
    line-height: 1.3;
}
.h-proj__desc {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--text-light);
    margin: 0 0 16px;
    flex-grow: 1;
}
.h-proj__techs {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 18px;
}
.h-proj__chip {
    padding: 4px 10px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 11.5px; font-weight: 600;
    color: var(--text-medium);
}
.h-proj__chip--more {
    background: rgba(59,130,246,.08);
    border-color: rgba(59,130,246,.18);
    color: var(--primary);
}
.h-proj__actions {
    display: flex; gap: 10px; flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}
.h-proj__actions--inline {
    padding-top: 14px;
    gap: 18px;
}

/* Compact project (no media) */
.h-proj--compact { padding: 26px; }
.h-proj--compact .h-proj__title { font-size: 17px; margin-top: 0; }
.h-proj__head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}
.h-proj__icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px;
}
.h-proj__year {
    padding: 4px 10px;
    background: rgba(59,130,246,.08);
    color: var(--primary);
    border-radius: 999px;
    font-size: 11.5px; font-weight: 700;
}

/* =====================================================
   COMING SOON BLOCK
   ===================================================== */
.h-coming { max-width: 1080px; margin: 0 auto; }
.h-coming__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}
@media (max-width: 760px) { .h-coming__grid { grid-template-columns: 1fr; } }
.h-coming__card {
    position: relative;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    padding: 36px 32px;
    text-align: center;
    box-shadow: var(--h-card-shadow);
    overflow: hidden;
    transition: all .35s var(--h-ease);
}
.h-coming__card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light));
    background-size: 200% 100%;
    animation: h-shimmer 3s ease-in-out infinite;
}
.h-coming__card:hover { transform: translateY(-3px); box-shadow: var(--h-card-shadow-hover); border-color: rgba(59,130,246,.35); }
.h-coming__icon {
    width: 64px; height: 64px;
    margin: 0 auto 18px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: #fff;
    box-shadow: 0 8px 20px rgba(30,64,175,.22);
}
.h-coming__icon--featured { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.h-coming__icon--more { background: linear-gradient(135deg, var(--primary-light), var(--accent)); }
.h-coming__badge {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(59,130,246,.1);
    color: var(--primary);
    border-radius: 999px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: 12px;
}
.h-coming__title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 12px;
    letter-spacing: -0.015em;
}
.h-coming__desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
    margin: 0;
}
.h-coming__cta {
    text-align: center;
    padding: 32px 28px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    box-shadow: var(--h-card-shadow);
}
.h-coming__cta p {
    font-size: 16px;
    color: var(--text-medium);
    margin: 0 0 20px;
    line-height: 1.6;
}
.h-coming__cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@keyframes h-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Empty state */
.h-empty {
    text-align: center;
    padding: 80px 24px;
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-white);
    border: 2px dashed var(--border-light);
    border-radius: 20px;
}
.h-empty__icon {
    width: 80px; height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
}
.h-empty h3 { font-size: 22px; font-weight: 700; color: var(--text-dark); margin: 0 0 12px; }
.h-empty p { font-size: 16px; color: var(--text-light); line-height: 1.65; margin: 0; }

/* =====================================================
   RECOMMENDATIONS
   ===================================================== */
.h-rec { position: relative; padding: 38px 32px 32px; }
.h-rec__quote {
    position: absolute; top: 24px; left: 32px;
    font-size: 28px; color: var(--primary-light); opacity: 0.4;
}
[dir="rtl"] .h-rec__quote { left: auto; right: 32px; transform: scaleX(-1); }
.h-rec__text { font-size: 15px; line-height: 1.75; color: var(--text-medium); margin: 0 0 22px; font-style: italic; }
.h-rec__author { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border-light); }
.h-rec__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.h-rec__avatar--fallback {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700;
}
.h-rec__info { flex-grow: 1; min-width: 0; }
.h-rec__name { font-size: 14px; font-weight: 700; color: var(--text-dark); margin: 0; }
.h-rec__role { font-size: 12px; color: var(--text-light); margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-rec__linkedin {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: rgba(59,130,246,.1);
    color: var(--primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px;
    transition: all .25s ease;
    flex-shrink: 0;
}
.h-rec__linkedin:hover { background: var(--primary); color: #fff; }
