/* engagement-features.css - Clean styling for engagement features
   To be included in site templates */

/* Featured Models Section */
.featured-models {
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.featured-models h2 {
    margin-top: 0;
    text-align: center;
    font-size: 28px;
    font-weight: 600;
}

.featured-models > p {
    text-align: center;
    margin-bottom: 25px;
    opacity: 0.9;
}

.featured-models .models-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.featured-models .model-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 20px;
    width: 160px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.featured-models .model-card:hover {
    transform: translateY(-5px);
}

.featured-models .model-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: #e91e63;
    color: white;
}

.featured-models .model-card h4 {
    margin: 10px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.featured-models .live-badge {
    background: #4caf50;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    display: inline-block;
    margin-bottom: 10px;
}

.featured-models .watch-btn {
    display: block;
    margin-top: 10px;
    padding: 8px;
    background: #e91e63;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 12px;
    transition: background 0.2s;
}

.featured-models .watch-btn:hover {
    background: #c2185b;
}

/* Related Tags Section */
.related-tags {
    margin: 30px 0;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.related-tags h3 {
    margin-top: 0;
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
}

.related-tags ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.related-tags li a {
    padding: 8px 16px;
    background: #e91e63;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    font-size: 13px;
    transition: background 0.2s;
}

.related-tags li a:hover {
    background: #c2185b;
}

/* Recently Online Widget */
.recently-online {
    margin: 20px 0;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.recently-online h3 {
    margin-top: 0;
    font-size: 18px;
    color: #333;
}

.recently-online .model-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recently-online .model-item:last-child {
    border-bottom: none;
}

/* Top Models Leaderboard */
.top-models-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.top-models-page h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 30px;
}

.top-models-page .leaderboard {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-models-page .leaderboard-row {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.top-models-page .leaderboard-row:last-child {
    border-bottom: none;
}

.top-models-page .leaderboard-row:hover {
    background: #f9f9f9;
}

.top-models-page .rank {
    font-size: 24px;
    font-weight: bold;
    color: #e91e63;
    width: 50px;
}

.top-models-page .model-info {
    flex: 1;
}

/* Fix model card thumbnail - prevent overlapping video */
.thumbnail-card {
    max-width: 250px;
    clear: both;
    margin-bottom: 20px;
}

.thumbnail-card .img-thumbnail {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure video stage has proper z-index and hardware acceleration */
.stage {
    position: relative;
    z-index: 1;
    /* Hardware acceleration for smooth video */
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    /* Remove any inherited transitions that cause choppiness */
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
}

/* Optimize iframes inside stage for mobile */
.stage iframe {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    -webkit-overflow-scrolling: touch;
}

/* Reposition thumbnail in tab layout */
.col-tab-left {
    flex: 0 0 250px;
    max-width: 250px;
}

/* Mobile responsive fixes for model card */
@media (max-width: 768px) {
    .col-tab-left {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }
    
    .thumbnail-card {
        max-width: 150px;
        margin: 25px auto 15px;
    }
    
    /* Push model cards below video on mobile */
    .col-tab-left {
        order: 2;
    }
    .stage {
        order: 1;
        z-index: 2;
    }
    
    /* Stack video and info vertically on mobile */
    .row {
        flex-direction: column;
    }
    
    /* Ensure stage takes full width on mobile */
    .stage {
        width: 100% !important;
        max-width: 100%;
    }
    
    /* Mobile video optimizations - reduce choppiness */
    .stage iframe {
        width: 100% !important;
        height: auto !important;
        min-height: 300px;
        /* Enable inline playback on iOS */
        -webkit-playsinline: true;
        playsinline: true;
        /* Hardware acceleration */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: transform;
        /* Smooth rendering */
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    /* Disable hover effects on mobile to prevent lag */
    .featured-models .model-card:hover {
        transform: none;
    }
}
