/**
 * ==========================================================================
 * SOFT GIRLS GRID - Dedicated soft mode girls listing
 * ==========================================================================
 * Clean, conversational-focused design with:
 * - Apple Glass aesthetic with subtle neon accents
 * - Static image cards (no video)
 * - Emphasis on chat CTA
 * - Perfect responsiveness (3 > 2 > 1 columns)
 * - Staggered reveal animations
 * ==========================================================================
 */

/* ==========================================================================
   CSS VARIABLES - Scoped to wrapper
   ========================================================================== */

.soft-girls-wrapper {
    --sg-accent: #cb1258;
    --sg-accent-light: #e8447a;
    --sg-accent-glow: rgba(203, 18, 88, 0.4);
    --sg-accent-glow-soft: rgba(203, 18, 88, 0.18);

    --sg-glass-bg: rgba(255, 255, 255, 0.035);
    --sg-glass-bg-hover: rgba(255, 255, 255, 0.06);
    --sg-glass-border: rgba(255, 255, 255, 0.07);
    --sg-glass-border-hover: rgba(203, 18, 88, 0.35);

    --sg-text: #ffffff;
    --sg-text-dim: rgba(255, 255, 255, 0.55);
    --sg-text-muted: rgba(255, 255, 255, 0.35);

    --sg-radius: 22px;
    --sg-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --sg-transition: 0.4s var(--sg-ease);
}

/* ==========================================================================
   WRAPPER - Context-aware padding
   ========================================================================== */

.soft-girls-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    padding: 15px 20px;
    overflow-x: hidden;
}

.soft-girls-wrapper.nav {
    padding-top: 70px;
}

.soft-girls-wrapper.menu {
    padding-left: 95px;
}

.soft-girls-wrapper.embed {
    padding-top: 20px;
}

.soft-girls-wrapper.girl-container-full {
    padding-left: 20px;
    padding-top: 20px;
}

.soft-girls-wrapper.girls-page {
    padding-left: 95px;
}

.soft-girls-wrapper.girls-page .soft-girls__header {
    margin-top: 40px;
}

@media (max-width: 830px) {
    .soft-girls-wrapper.menu,
    .soft-girls-wrapper.girls-page {
        padding-left: 5px;
    }

    .soft-girls-wrapper.girl-container-full {
        padding-left: 5px;
    }
}

@media (max-width: 550px) {
    .soft-girls-wrapper {
        padding-left: 5px;
        padding-right: 5px;
    }

    .soft-girls-wrapper.menu,
    .soft-girls-wrapper.girls-page,
    .soft-girls-wrapper.girl-container-full {
        padding-left: 5px;
    }
}

/* ==========================================================================
   HEADER - Title with decorative lines
   ========================================================================== */

.soft-girls__header {
    text-align: center;
    padding: 30px 20px 28px;
}

.soft-girls__header h1,
.soft-girls__header h2 {
    font-weight: 700;
    color: var(--sg-text);
    margin: 0;
}

/* Page girls - h1 centered with decorative lines */
.soft-girls__header h1 {
    font-size: 2.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.soft-girls__header h1::before,
.soft-girls__header h1::after {
    content: '';
    flex: 1;
    max-width: 160px;
    height: 1px;
}

.soft-girls__header h1::before {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(203, 18, 88, 0.12) 30%,
        rgba(203, 18, 88, 0.3) 100%
    );
}

.soft-girls__header h1::after {
    background: linear-gradient(
        90deg,
        rgba(203, 18, 88, 0.3) 0%,
        rgba(203, 18, 88, 0.12) 70%,
        transparent 100%
    );
}

/* Home/landing - h2 left-aligned, no lines */
.soft-girls__header h2 {
    font-size: 1.6em;
    text-align: left;
}

/* Embed (chat) - h2 centered with lines */
.soft-girls-wrapper.embed .soft-girls__header h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.soft-girls-wrapper.embed .soft-girls__header h2::before,
.soft-girls-wrapper.embed .soft-girls__header h2::after {
    content: '';
    flex: 1;
    max-width: 160px;
    height: 1px;
}

.soft-girls-wrapper.embed .soft-girls__header h2::before {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 30%,
        rgba(255, 255, 255, 0.2) 100%
    );
}

.soft-girls-wrapper.embed .soft-girls__header h2::after {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.1) 70%,
        transparent 100%
    );
}

/* Header responsive */
@media (max-width: 767px) {
    .soft-girls__header {
        padding: 20px 10px 18px;
    }

    .soft-girls__header h1 {
        font-size: 1.7em;
        gap: 15px;
    }

    .soft-girls__header h1::before,
    .soft-girls__header h1::after {
        max-width: 80px;
    }

    /* Hide h2 on mobile in menu context (home) */
    .soft-girls-wrapper.menu .soft-girls__header h2 {
        display: none;
    }

    .soft-girls-wrapper.embed .soft-girls__header h2 {
        gap: 15px;
        margin-bottom: 10px;
    }

    .soft-girls-wrapper.embed .soft-girls__header h2::before,
    .soft-girls-wrapper.embed .soft-girls__header h2::after {
        max-width: 80px;
    }
}

@media (max-width: 480px) {
    .soft-girls__header h1 {
        font-size: 1.35em;
        gap: 10px;
    }

    .soft-girls__header h1::before,
    .soft-girls__header h1::after {
        max-width: 35px;
    }

    .soft-girls-wrapper.embed .soft-girls__header h2 {
        font-size: 1.2em;
        gap: 10px;
    }

    .soft-girls-wrapper.embed .soft-girls__header h2::before,
    .soft-girls-wrapper.embed .soft-girls__header h2::after {
        max-width: 35px;
    }
}

/* ==========================================================================
   GRID
   ========================================================================== */

.soft-girls__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-bottom: 50px;
    justify-content: center;
}

/* Tablet - 3 columns */
@media (max-width: 1200px) {
    .soft-girls__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

/* Small tablet - 2 columns */
@media (max-width: 900px) {
    .soft-girls__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

/* Mobile - 2 columns (minimum) */
@media (max-width: 600px) {
    .soft-girls__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

}

/* ==========================================================================
   CARD - Glass panel with image, info, and CTA
   ========================================================================== */

.soft-card {
    display: flex;
    flex-direction: column;
    background: var(--sg-glass-bg);
    border: 1px solid var(--sg-glass-border);
    border-radius: var(--sg-radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--sg-text);
    position: relative;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    /* Starts hidden for reveal animation */
    opacity: 0;
    transform: translateY(25px);
    transition:
        opacity 0.6s ease,
        transform 0.6s var(--sg-ease),
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

/* Revealed state */
.soft-card--visible {
    opacity: 1;
    transform: translateY(0);
}

/* Top edge light reflection */
.soft-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.06) 15%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.06) 85%,
        transparent 100%
    );
    z-index: 3;
    pointer-events: none;
}

/* Light scan effect on hover */
.soft-card::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.025) 50%,
        transparent 60%
    );
    transition: transform 0.7s ease;
    pointer-events: none;
    z-index: 2;
}

.soft-card:hover::after {
    transform: translate(50%, 50%);
}

/* Hover: lift + glow */
.soft-card--visible:hover {
    transform: translateY(-5px);
    border-color: var(--sg-glass-border-hover);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.25),
        0 0 25px rgba(203, 18, 88, 0.12),
        0 0 50px rgba(203, 18, 88, 0.06);
    animation: sg-glow-pulse 2.5s ease-in-out infinite;
}

@keyframes sg-glow-pulse {
    0%, 100% {
        box-shadow:
            0 15px 40px rgba(0, 0, 0, 0.25),
            0 0 20px rgba(203, 18, 88, 0.12);
    }
    50% {
        box-shadow:
            0 15px 40px rgba(0, 0, 0, 0.25),
            0 0 30px rgba(203, 18, 88, 0.18),
            0 0 55px rgba(203, 18, 88, 0.07);
    }
}

/* ==========================================================================
   CARD VISUAL - Image container
   ========================================================================== */

.soft-card__visual {
    position: relative;
    aspect-ratio: 1000 / 1524;
    overflow: hidden;
}

.soft-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s var(--sg-ease);
}

.soft-card:hover .soft-card__visual img {
    transform: scale(1.06);
}

/* Bottom gradient overlay on image */
.soft-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 14px 10px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.15) 40%,
        transparent 100%
    );
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    pointer-events: none;
}

/* ==========================================================================
   LIVE INDICATOR
   ========================================================================== */

.soft-card__live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(229, 57, 53, 0.9);
    padding: 4px 10px;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #fff;
    box-shadow: 0 0 12px rgba(229, 57, 53, 0.5);
    animation: sg-live-glow 2s ease-in-out infinite;
}

@keyframes sg-live-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(229, 57, 53, 0.4);
    }
    50% {
        box-shadow:
            0 0 18px rgba(229, 57, 53, 0.6),
            0 0 25px rgba(229, 57, 53, 0.2);
    }
}

.soft-card__live-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: sg-dot-pulse 1.4s ease-in-out infinite;
}

@keyframes sg-dot-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.75);
    }
}

/* ==========================================================================
   NEW BADGE
   ========================================================================== */

.soft-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: #fff;
    color: var(--sg-accent);
    border-radius: 50px;
    z-index: 4;
    box-shadow:
        0 0 12px rgba(255, 255, 255, 0.35),
        0 0 20px var(--sg-accent-glow-soft);
    animation: sg-badge-glow 2s ease-in-out infinite;
}

@keyframes sg-badge-glow {
    0%, 100% {
        box-shadow:
            0 0 10px rgba(255, 255, 255, 0.3),
            0 0 15px var(--sg-accent-glow-soft);
    }
    50% {
        box-shadow:
            0 0 15px rgba(255, 255, 255, 0.5),
            0 0 25px var(--sg-accent-glow);
    }
}

/* ==========================================================================
   CARD BODY - Girl info
   ========================================================================== */

.soft-card__body {
    padding: 14px 16px 6px;
}

.soft-card__identity {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.soft-card__name {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.15em;
    font-weight: 700;
    margin: 0;
    color: var(--sg-text);
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.soft-card__age {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82em;
    color: var(--sg-text-dim);
    font-weight: 500;
    white-space: nowrap;
}

.soft-card__desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8em;
    color: var(--sg-text-muted);
    margin: 3px 0 0;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.4;
}

.soft-card__desc i {
    font-size: 0.75em;
    color: var(--sg-text-muted);
    flex-shrink: 0;
}

/* ==========================================================================
   CARD CTA - Glass chat button
   ========================================================================== */

.soft-card__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 6px 14px 14px;
    padding: 11px 16px;
    background: transparent;
    border: 1px solid var(--sg-glass-border);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85em;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* CTA top light reflection */
.soft-card__cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1) 30%,
        rgba(255, 255, 255, 0.16) 50%,
        rgba(255, 255, 255, 0.1) 70%,
        transparent
    );
    pointer-events: none;
}

.soft-card__cta i {
    color: var(--sg-accent-light);
    font-size: 1em;
    transition: transform 0.25s ease;
}

.soft-card__cta span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* CTA hover */
.soft-card:hover .soft-card__cta {
    border-color: rgba(203, 18, 88, 0.3);
    background: rgba(203, 18, 88, 0.06);
    color: rgba(255, 255, 255, 0.95);
}

.soft-card:hover .soft-card__cta i {
    transform: scale(1.2);
}

/* ==========================================================================
   RESPONSIVE - Tablet
   ========================================================================== */

@media (max-width: 1100px) {
    .soft-card__body {
        padding: 12px 14px 4px;
    }

    .soft-card__cta {
        margin: 6px 12px 12px;
        padding: 10px 14px;
        font-size: 0.83em;
    }
}

/* ==========================================================================
   RESPONSIVE - Small screens
   ========================================================================== */

@media (max-width: 600px) {
    .soft-card {
        --sg-radius: 16px;
    }

    .soft-card__body {
        padding: 10px 12px 3px;
    }

    .soft-card__name {
        font-size: 1em;
    }

    .soft-card__age {
        font-size: 0.78em;
    }

    .soft-card__desc {
        font-size: 0.75em;
    }

    .soft-card__cta {
        margin: 4px 10px 10px;
        padding: 9px 12px;
        font-size: 0.78em;
        gap: 6px;
    }

    .soft-card__badge {
        top: 8px;
        right: 8px;
        padding: 3px 8px;
        font-size: 8px;
    }

    .soft-card__live {
        padding: 3px 8px;
        font-size: 8px;
        gap: 4px;
    }

    .soft-card__live-dot {
        width: 5px;
        height: 5px;
    }

    .soft-card__overlay {
        padding: 15px 10px 8px;
    }
}

/* ==========================================================================
   RESPONSIVE - Extra small mobile (still 2 columns)
   ========================================================================== */

@media (max-width: 420px) {
    .soft-card__name {
        font-size: 0.9em;
    }

    .soft-card__age {
        font-size: 0.72em;
    }

    .soft-card__cta {
        margin: 4px 8px 8px;
        padding: 7px 10px;
        font-size: 0.72em;
        gap: 5px;
    }

    .soft-card__desc {
        font-size: 0.7em;
    }

    .soft-card__body {
        padding: 8px 10px 2px;
    }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .soft-card {
        opacity: 1;
        transform: none;
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }

    .soft-card--visible:hover {
        transform: none;
        animation: none;
    }

    .soft-card:hover .soft-card__visual img {
        transform: none;
    }

    .soft-card__live,
    .soft-card__live-dot,
    .soft-card__badge {
        animation: none;
    }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

.soft-card:focus-visible {
    outline: 2px solid var(--sg-accent);
    outline-offset: 3px;
}

/* ==========================================================================
   DESKTOP - Larger names
   ========================================================================== */

@media (min-width: 1200px) {
    .soft-card__name {
        font-size: 1.3em;
    }
}
