/**
 * Clean iOS Glass Design for Models Page
 * Premium, Static Glassmorphism with Smooth Motion
 */

/* Page Background & Layout */
.models-glass-page {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 120px 20px 80px;
    background: #0b0213;
    /* Deep dark purple/black */
    overflow-x: hidden;
    font-family: 'Cairo', sans-serif;
}

/* 
   Active Motion Background 
   - Faster, more fluid movement
   - More vivid colors
*/
.glass-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    /* Soft ambient glow */
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
    /* Slightly more visible */
    will-change: transform;
}

.orb-blue {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #00d9ff, transparent 70%);
    animation: floatOrbBlue 15s ease-in-out infinite alternate;
}

.orb-purple {
    bottom: -10%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, #7b2cbf, transparent 70%);
    animation: floatOrbPurple 18s ease-in-out infinite alternate;
}

.orb-pink {
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ff006e, transparent 70%);
    opacity: 0.2;
    transform: translate(-50%, -50%);
    animation: pulseOrb 10s ease-in-out infinite;
}

@keyframes floatOrbBlue {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 80px) scale(1.1);
    }
}

@keyframes floatOrbPurple {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-60px, -40px) scale(1.05);
    }
}

@keyframes pulseOrb {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.2;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.3;
    }
}

/* Header */
.glass-header {
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 60px;
    animation: slideDownFade 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.glass-title {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
    letter-spacing: -1px;
}

.glass-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Grid System */
.glass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Staggered Entry Animation */
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Generate staggered delays for up to 20 items */
.glass-card:nth-child(1) {
    animation-delay: 0.1s;
}

.glass-card:nth-child(2) {
    animation-delay: 0.2s;
}

.glass-card:nth-child(3) {
    animation-delay: 0.3s;
}

.glass-card:nth-child(4) {
    animation-delay: 0.4s;
}

.glass-card:nth-child(5) {
    animation-delay: 0.5s;
}

.glass-card:nth-child(6) {
    animation-delay: 0.6s;
}

.glass-card:nth-child(7) {
    animation-delay: 0.7s;
}

.glass-card:nth-child(8) {
    animation-delay: 0.8s;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

/* Image */
.glass-img-wrapper {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    position: relative;
}

.glass-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-card:hover .glass-img-wrapper img {
    transform: scale(1.08);
}

/* Info Section */
.glass-info {
    padding: 24px;
    color: #fff;
    position: relative;
}

/* Subtle gradient overlay on bottom of info */
.glass-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.glass-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
    letter-spacing: -0.5px;
}

.glass-location {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Stats Row */
.glass-stats {
    display: flex;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 12px 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: -15px;
    /* RTL fix, might need adjusting */
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

/* Fix for RTL separator */
[dir="rtl"] .stat-item:not(:last-child)::after {
    left: -15px;
    right: auto;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 4px;
    font-weight: 600;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--turquoise, #00d9ff);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

/* Private Details (Owner Only) */
.glass-private {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 15px;
}

.private-row {
    font-size: 0.9rem;
    color: #ffc107;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Action Button */
.glass-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--turquoise, #00d9ff), var(--purple-glow, #7b2cbf));
    color: #fff;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.2);
    position: relative;
    overflow: hidden;
}

/* Shine effect on button */
.glass-action-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg) translate(-100%, -100%);
    transition: transform 0.6s ease;
}

.glass-action-btn:hover::after {
    transform: rotate(45deg) translate(100%, 100%);
}

.glass-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.4);
}

.glass-action-btn:active {
    transform: translateY(1px);
}

/* Apply CTA */
.glass-cta-wrapper {
    text-align: center;
    margin-top: 80px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s 0.5s ease-out backwards;
}

.glass-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 45px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.glass-cta-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--turquoise);
}

/* Empty State */
.empty-glass {
    text-align: center;
    padding: 100px 20px;
    color: rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.empty-glass i {
    font-size: 5rem;
    margin-bottom: 25px;
    display: block;
}

/* Animations */
@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .models-glass-page {
        padding-top: 100px;
    }

    .glass-title {
        font-size: 2.2rem;
    }

    .glass-grid {
        grid-template-columns: 1fr;
        /* Single column on mobile */
        padding: 0 10px;
    }

    .orb-blue,
    .orb-purple {
        width: 300px;
        height: 300px;
        filter: blur(60px);
    }
}