/* Base styles moved to common.css */
/* Header styles moved to header.css */

/* Popular Girls */
.popular-grid {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 8px;
    cursor: grab;
    scroll-snap-type: x mandatory;
}

.popular-item.first-item .popular-avatar,
.popular-item.second-item .popular-avatar {
    border: none;
}

.popular-grid:active {
    cursor: grabbing;
}

.popular-grid::-webkit-scrollbar {
    display: none;
}

.popular-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 70px;
    flex-shrink: 0;
    scroll-snap-align: start;
    user-select: none;
    padding-top: 8px;
}

.popular-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: visible;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    position: relative;
}

.popular-avatar img:not(.crown-icon) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.popular-avatar img.crown-icon {
    width: 50%;
    height: 50%;
}

/* Special borders for first and second popular items */
.popular-item.first-item .popular-avatar::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 50%;
    z-index: -1;
}

.popular-item.second-item .popular-avatar::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #C0C0C0, #E5E5E5);
    border-radius: 50%;
    z-index: -1;
}

.popular-item.first-item .popular-avatar,
.popular-item.second-item .popular-avatar {
    position: relative;
    z-index: 1;
}

/* Crown icon styles */
.crown-icon {
    position: absolute;
    top: 10px;
    right: 5px;
    width: 12px;
    height: 12px;
    object-fit: contain;
    z-index: 10;
    transform: translate(50%, -50%);
}

.popular-name {
    font-size: 11px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
    line-height: 1.2;
}

.popular-stat {
    font-size: 10px;
    color: #8B5CF6;
    font-weight: 500;
}

.popular-stat.liked {
    color: #8B5CF6;
}

/* Just Like It */
.featured-grid {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 8px;
    cursor: grab;
    scroll-snap-type: x mandatory;
}

.featured-grid:active {
    cursor: grabbing;
}

.featured-grid::-webkit-scrollbar {
    display: none;
}

.featured-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 0.8;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    width: 200px;
    min-width: 200px;
    flex-shrink: 0;
    scroll-snap-align: start;
    user-select: none;
}

.card-image {
    width: 100%;
    height: 100%;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 20px 12px 12px;
    color: white;
}

.card-heart {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(255,255,255,1.0);
    color: #8B5CF6;
    padding: 4px 8px;
    font-size: 16px;
    font-weight: 600;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
}

.card-heart.liked {
    background: white;
    color: #8B5CF6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-subtitle {
    font-size: 11px;
    opacity: 0.9;
    line-height: 1.3;
}

.card-location {
    font-size: 11px;
    opacity: 0.85;
    margin-bottom: 2px;
}

/* More Users - 2열 그리드 */
.more-users-section {
    margin-top: 20px;
}

.more-users-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.more-user-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 0.75;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    border-radius: 12px;
}

.more-user-card .card-image {
    width: 100%;
    height: 100%;
}

.more-user-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.more-user-card .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 20px 10px 10px;
    color: white;
}

.more-user-card .card-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.more-user-card .card-location {
    font-size: 11px;
    opacity: 0.85;
}

.more-user-card .card-intro {
    font-size: 11px;
    opacity: 0.8;
    line-height: 1.3;
    font-style: italic;
}

/* Category Tags */
.category-tags {
    margin-top: 16px;
}

.tag-section {
    margin-bottom: 20px;
}

.tag-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.tag-name {
    background: white;
    color: black;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 16px;
    display: inline-block;
    width: fit-content;
    border: 1px solid #ddd;
}

.tag-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tag-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
}

.tag-card .card-image {
    aspect-ratio: 1.0;
}

.tag-card .card-overlay {
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    padding: 15px 10px 8px;
}

.tag-card .card-title {
    font-size: 12px;
    font-weight: 500;
}

/* Footer Text */
.footer-text {
    margin: 32px 0 20px;
    padding: 0 4px;
}

.footer-text p {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 4px;
}

.copyright {
    margin-top: 8px;
    opacity: 0.7;
}

/* Bottom Navigation styles moved to bottom-nav.css */

/* Responsive Design */
@media (max-width: 390px) {
    .popular-grid {
        gap: 12px;
    }
    
    .popular-item {
        min-width: 65px;
    }
    
    .popular-avatar {
        width: 55px;
        height: 55px;
    }
    
    .featured-grid {
        gap: 10px;
    }
    
    .featured-card {
        min-width: 140px;
    }
    
    .tag-row {
        gap: 10px;
    }
}