/*
 * Photo Ashry — Homepage Sections (Phase 5)
 * Add this to app.css or link separately
 */

/* ══ Section Common ══ */
.home-section {
    padding: 3rem 0;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
}
.section-header h2 {
    font-weight: 800;
    color: var(--pa-blue);
    font-size: 1.4rem;
    margin: 0;
}
.section-header h2 i { color: var(--pa-orange); }
.section-header .see-all {
    font-weight: 600;
    font-size: .9rem;
    color: var(--pa-orange);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .5rem;
    transition: all .2s;
}
.section-header .see-all:hover { gap: .75rem; }

/* ══ Horizontal Slider ══ */
.slider-wrap {
    position: relative;
}
.slider-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .5rem;
    scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track > * { scroll-snap-align: start; flex-shrink: 0; }

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,.1);
    border: none;
    color: var(--pa-blue);
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-btn:hover { background: var(--pa-blue); color: #fff; }
.slider-btn.prev { left: -15px; }
.slider-btn.next { right: -15px; }
[dir="rtl"] .slider-btn.prev { right: -15px; left: auto; }
[dir="rtl"] .slider-btn.next { left: -15px; right: auto; }

/* ══ Photographer Slider Card ══ */
.ph-slider-card {
    width: 220px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,47,108,.06);
    transition: all .25s ease;
    position: relative;
}
.ph-slider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,47,108,.12);
}
.ph-slider-card .card-top {
    height: 100px;
    background: linear-gradient(135deg, #002F6C, #0A4A8F);
    position: relative;
    overflow: hidden;
}
.ph-slider-card .card-top.has-cover {
    background-size: cover;
    background-position: center;
}
.ph-slider-card .card-top::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,.3), transparent);
}
.ph-slider-card .unique-star {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    background: linear-gradient(135deg, #FFD24D, #F7941D);
    color: #333;
    font-size: .6rem;
    font-weight: 700;
    padding: .15rem .5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: .2rem;
}
[dir="rtl"] .ph-slider-card .unique-star { left: 8px; right: auto; }
.ph-slider-card .card-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid #fff;
    object-fit: cover;
    margin: -32px auto 0;
    display: block;
    position: relative;
    z-index: 2;
    background: var(--pa-blue);
    color: #fff;
}
.ph-slider-card .avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid #fff;
    margin: -32px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pa-blue);
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
}
.ph-slider-card .card-info {
    text-align: center;
    padding: .75rem 1rem 1rem;
}
.ph-slider-card .ph-name {
    font-weight: 700;
    color: var(--pa-blue);
    font-size: .9rem;
    margin-bottom: .2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ph-slider-card .ph-location {
    font-size: .75rem;
    color: var(--pa-gray-600);
    margin-bottom: .5rem;
}
.ph-slider-card .ph-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--pa-blue);
}
.ph-slider-card .ph-rating i { color: var(--pa-gold); font-size: .7rem; }
.ph-slider-card .ph-cats-mini {
    display: flex;
    justify-content: center;
    gap: .25rem;
    margin-top: .5rem;
    flex-wrap: wrap;
}
.ph-slider-card .ph-cats-mini span {
    font-size: .6rem;
    padding: .1rem .4rem;
    border-radius: 8px;
    background: rgba(247,148,29,.08);
    color: var(--pa-orange);
}

/* ══ Category Slider Card ══ */
.cat-slider-card {
    width: 160px;
    text-align: center;
    text-decoration: none;
    padding: 1.5rem 1rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,47,108,.05);
    transition: all .25s ease;
    cursor: pointer;
    display: block;
}
.cat-slider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,47,108,.12);
    border-color: var(--pa-orange);
}
.cat-slider-card .cat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: rgba(0,47,108,.06);
    color: var(--pa-blue);
    transition: all .3s;
}
.cat-slider-card:hover .cat-icon {
    background: var(--pa-orange);
    color: #fff;
    transform: scale(1.1);
}
.cat-slider-card .cat-name {
    font-weight: 700;
    font-size: .85rem;
    color: var(--pa-blue);
    margin-bottom: .25rem;
}
.cat-slider-card .cat-count {
    font-size: .75rem;
    color: var(--pa-gray-600);
}

/* ══ Background ══ */
.section-bg { background: var(--pa-body-bg); }

@media(max-width:767.98px) {
    .ph-slider-card { width: 180px; }
    .cat-slider-card { width: 140px; }
    .slider-btn { display: none; }
    .section-header h2 { font-size: 1.1rem; }
}

/* ══ Redesigned Hero (Phase 8) ══ */
.home-hero {
    background: linear-gradient(135deg, var(--pa-blue) 0%, #0a2c50 55%, #122d50 100%);
    color: #fff;
    padding: 5.5rem 0 7rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.home-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 6px;
    background: repeating-linear-gradient(90deg,
        var(--pa-orange) 0 25%,
        var(--pa-gold) 25% 50%,
        var(--pa-emerald) 50% 75%,
        var(--pa-blue-light) 75% 100%);
}

.home-hero::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    border: 80px solid rgba(255,255,255,.025);
    top: -180px;
    inset-inline-end: -120px;
    pointer-events: none;
}

.home-hero-circle2 {
    position: absolute;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: rgba(230,121,51,.07);
    bottom: -100px;
    inset-inline-start: 5%;
    pointer-events: none;
}

.home-hero-circle3 {
    position: absolute;
    width: 150px; height: 150px;
    border-radius: 50%;
    border: 30px solid rgba(255,255,255,.04);
    top: 30px;
    inset-inline-start: 15%;
    pointer-events: none;
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(230,121,51,.15);
    border: 1px solid rgba(230,121,51,.3);
    color: #f4aa6a;
    border-radius: 50px;
    padding: .35rem 1rem;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .3px;
    margin-bottom: 1.4rem;
}

.home-hero h1 {
    font-size: 2.9rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.1rem;
    position: relative;
    z-index: 2;
}

.home-hero h1 span { color: var(--pa-orange); }

.home-hero .hero-sub {
    font-size: 1.1rem;
    opacity: .8;
    max-width: 580px;
    margin: 0 auto 2.2rem;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

.home-hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.btn-hero-primary {
    background: var(--pa-orange);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    padding: .85rem 2.2rem;
    text-decoration: none;
    transition: background .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 6px 24px rgba(230,121,51,.4);
}

.btn-hero-primary:hover {
    background: #c45e18;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(230,121,51,.45);
}

.btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.4);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    padding: .85rem 2.2rem;
    text-decoration: none;
    transition: border-color .2s, background .2s, transform .2s;
}

.btn-hero-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,.08);
    color: #fff;
    transform: translateY(-2px);
}

/* ══ Stats Strip ══ */
.home-stats-strip {
    background: #fff;
    box-shadow: 0 4px 30px rgba(0,0,0,.07);
    position: relative;
    z-index: 10;
}

.home-stats-inner {
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.home-stat {
    flex: 1;
    max-width: 220px;
    padding: 1.4rem 1rem;
    text-align: center;
    position: relative;
}

.home-stat + .home-stat::before {
    content: '';
    position: absolute;
    top: 25%; bottom: 25%;
    inset-inline-start: 0;
    width: 1px;
    background: rgba(0,0,0,.08);
}

.home-stat-number {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--pa-blue);
    line-height: 1;
    margin-bottom: .2rem;
}

.home-stat-number span { color: var(--pa-orange); }

.home-stat-label {
    font-size: .8rem;
    color: #888;
    font-weight: 500;
}

/* ══ How It Works ══ */
.home-how {
    background: linear-gradient(135deg, #f6f8ff, #fdf5ff);
    padding: 4rem 0;
}

.home-how-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.home-how-title h2 {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--pa-blue);
    margin-bottom: .4rem;
}

.home-how-title p {
    font-size: .95rem;
    color: #888;
    margin: 0;
}

/* Step row — position:relative needed for the connector line */
.home-step-row {
    position: relative;
}

/* Dashed connector line between steps — sits behind the icons */
.home-step-row::before {
    content: '';
    position: absolute;
    top: 55px; /* aligned with center of 64px icon (24px padding + 32px = 56px) */
    inset-inline-start: calc(16.666% + 26px);
    width: calc(66.666% - 52px);
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--pa-orange) 0 8px, transparent 8px 16px);
    opacity: .35;
    z-index: 0;
}

.home-step {
    text-align: center;
    padding: 1.5rem 1rem;
    position: relative;
    z-index: 1; /* above the connector line */
}

.home-step-icon {
    width: 64px; height: 64px;
    border-radius: 18px;
    background: #fff;
    color: var(--pa-blue);
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 16px rgba(10,44,80,.12);
    transition: background .2s, color .2s, transform .2s;
    position: relative;
    z-index: 1;
}

.home-step:hover .home-step-icon {
    background: var(--pa-blue);
    color: #fff;
    transform: scale(1.08);
}

.home-step h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--pa-blue);
    margin-bottom: .5rem;
}

.home-step p {
    font-size: .88rem;
    color: #777;
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 991px) {
    .home-hero h1 { font-size: 2.1rem; }
    .home-stats-inner { flex-wrap: wrap; }
    .home-stat { max-width: 50%; flex: 0 0 50%; }
    .home-step-row::before { display: none; }
}

@media (max-width: 575px) {
    .home-hero { padding: 4rem 0 6rem; }
    .home-hero h1 { font-size: 1.75rem; }
}
