/* stats.css - Versiune finală îmbunătățită */
.stats-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ========== BARA DE CĂUTARE ========== */
.search-area {
    max-width: 500px;
    margin: 2rem auto;
}

.search-wrapper {
    background: #12121a;
    border: 1px solid #2c2c3e;
    border-radius: 3rem;
    padding: 0.3rem 0.3rem 0.3rem 1.5rem;
    display: flex;
    align-items: center;
}

.search-wrapper:focus-within {
    border-color: #ff69b4;
    box-shadow: 0 0 8px rgba(255, 105, 180, 0.3);
}

.search-input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    padding: 0.8rem 0.2rem;
    width: 100%;
    outline: none;
}

.clear-search {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 12px;
}

.clear-search:hover {
    color: #ff69b4;
}

.search-message {
    text-align: center;
    margin-top: 1rem;
    color: #aaa;
    font-size: 0.9rem;
}

/* ========== GRID REZULTATE CĂUTARE ========== */
.search-results-grid {
    display: grid;
    gap: 1.5rem;
    justify-content: center;
    margin: 1.5rem auto;
}

/* Card model - cu efect de hover îmbunătățit */
.result-card {
    background: #101014;
    border: 1px solid #23232e;
    border-radius: 1rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.result-card:hover {
    border-color: #ff69b4;
    transform: translateY(-6px) scale(1.02);
    background: #1a1a28;
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.2);
}

/* Poza rotundă */
.result-thumb {
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.75rem;
    transition: transform 0.2s;
}

.result-card:hover .result-thumb {
    transform: scale(1.05);
}

/* Username - fără scroll, cu ellipsis */
.result-username {
    color: #ffc0d0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    padding: 0 0.2rem;
}

/* ========== DESKTOP LARGE (≥1200px) ========== */
@media (min-width: 1200px) {
    .search-results-grid {
        grid-template-columns: repeat(6, minmax(160px, 180px));
    }
    .result-thumb {
        width: 120px;
        height: 120px;
    }
    .result-username {
        font-size: 0.85rem;
    }
}

/* ========== DESKTOP MEDIUM (992px - 1199px) ========== */
@media (min-width: 992px) and (max-width: 1199px) {
    .search-results-grid {
        grid-template-columns: repeat(5, minmax(150px, 170px));
    }
    .result-thumb {
        width: 110px;
        height: 110px;
    }
    .result-username {
        font-size: 0.8rem;
    }
}

/* ========== TABLETĂ (769px - 991px) ========== */
@media (min-width: 769px) and (max-width: 991px) {
    .search-results-grid {
        grid-template-columns: repeat(4, minmax(140px, 160px));
        gap: 1.2rem;
    }
    .result-thumb {
        width: 100px;
        height: 100px;
    }
    .result-username {
        font-size: 0.75rem;
    }
}

/* ========== TABLETĂ MICĂ (481px - 768px) ========== */
@media (min-width: 481px) and (max-width: 768px) {
    .search-results-grid {
        grid-template-columns: repeat(3, minmax(130px, 150px));
        gap: 1rem;
    }
    .result-thumb {
        width: 95px;
        height: 95px;
    }
    .result-username {
        font-size: 0.75rem;
    }
}

/* ========== MOBIL (≤480px) - ÎMBUNĂTĂȚIT ========== */
@media (max-width: 480px) {
    .search-results-grid {
        grid-template-columns: repeat(2, minmax(140px, 160px));
        gap: 1rem;
    }
    .result-thumb {
        width: 95px;
        height: 95px;
    }
    .result-username {
        font-size: 0.75rem;  /* mărit de la 0.7rem */
    }
    .result-card {
        padding: 0.8rem;
    }
}

/* ========== CARD MODEL SELECTAT ========== */
.model-card {
    background: #0e0e16;
    border-radius: 1.5rem;
    border: 1px solid #2a2a36;
    padding: 1.5rem;
    margin-top: 2rem;
}

.profile-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ff69b4;
}

.profile-details h2 {
    color: #ff69b4;
    font-size: 1.3rem;
}

.profile-details a {
    color: #ff9fbc;
    text-decoration: none;
    font-size: 0.9rem;
}

.profile-details a:hover {
    text-decoration: underline;
}

.gender-badge {
    display: inline-block;
    background: #1e1e2a;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    margin-left: 10px;
}

/* ========== STATISTICI ========== */
.stats-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.stat-item {
    background: #1a1a2a;
    padding: 0.7rem;
    border-radius: 0.8rem;
}

.stat-label {
    font-size: 0.65rem;
    color: #ff9fbc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.25rem;
    color: #fff;
}

/* ========== VIDEO IFRAME ========== */
.video-column {
    background: #000;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    position: relative;
}

.video-column iframe {
    width: 100%;
    height: 100%;
    border: none;
    overflow: hidden;
}

/* ========== ROOM SUBJECT ========== */
.room-subject {
    background: #1a1a2a;
    padding: 1rem;
    border-radius: 0.8rem;
    font-size: 0.85rem;
    color: #ccc;
    margin: 1rem 0;
    line-height: 1.4;
}

/* ========== BUTON SIGN UP ========== */
.signup-section {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #2a2a36;
}

.signup-btn {
    background: linear-gradient(95deg, #ff3b6f, #ff8c42);
    padding: 0.8rem 2rem;
    border-radius: 2rem;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    display: inline-block;
    transition: transform 0.2s;
}

.signup-btn:hover {
    transform: scale(1.02);
}

/* ========== CLASE UTILITARE ========== */
.hidden {
    display: none;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: #aaa;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #aaa;
}

/* ========== LOADING SPINNER ========== */
.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #2a2a36;
    border-top: 2px solid #ff69b4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========== DESKTOP: model card centrat ========== */
@media (min-width: 769px) {
    .model-card {
        max-width: 800px;
        margin: 2rem auto;
    }
    
    .profile-row {
        flex-direction: column;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .profile-pic {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }
    
    .video-column {
        margin: 1.5rem 0;
        aspect-ratio: 16 / 9;
    }
    
    .stats-grid-2col {
        grid-template-columns: 1fr 1fr;
        max-width: 600px;
        margin: 1.5rem auto;
    }
    
    .room-subject {
        text-align: center;
    }
}

/* ========== MOBIL: model card ========== */
@media (max-width: 768px) {
    .profile-row {
        flex-direction: column;
        text-align: center;
    }
    
    .video-column {
        margin: 1rem 0;
        aspect-ratio: 16 / 9;
    }
    
    .stats-grid-2col {
        grid-template-columns: 1fr;
    }
}
.main-footer {
    text-align: center;
}