/**
 * AC Archive Page Pro - User Card
 * Developer: Team AskCollab
 * Website: https://www.askcollab.com
 * 
 * Updates v1.0.3:
 * - 65/35 image/content ratio (changed from 62/38)
 * - Reduced spacing between name and location (6px gap)
 * - "From" text before state
 * - Optimized padding for smaller content section
 */

.ac-app-user-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ac-app-user-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Profile Image - 65% of card height - CLICKABLE */
.ac-app-card-image {
    width: 100%;
    height: 65%;
    overflow: hidden;
    position: relative;
}

.ac-app-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.ac-app-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ac-app-card-image:hover img {
    transform: scale(1.05);
}

/* Content Section - 35% of card height (reduced from 38%) */
.ac-app-card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

/* Creator Name */
.ac-app-card-name {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
    text-align: center;
}

/* State with "From" text and icon */
.ac-app-card-state {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-top: -2px; /* Reduced space from name (total 6px gap) */
}

.ac-app-card-state .location-icon {
    flex-shrink: 0;
    opacity: 0.8;
}

.ac-app-card-state .from-text {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.ac-app-card-state .state-text {
    font-size: 13px;
    color: #333;
    font-weight: 700;
}

/* Social Stats - Icon > Name > Count */
.ac-app-card-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ac-app-stat-item {
    padding: 0;
}

.ac-app-stat-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
    padding: 4px 0;
}

.ac-app-stat-item a:hover {
    color: #007bff;
}

/* Icon first */
.ac-app-stat-item .platform-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    order: 1;
}

/* Name second */
.ac-app-stat-item .platform-name {
    font-size: 13px;
    font-weight: 500;
    order: 2;
    flex: 1;
}

/* Count third */
.ac-app-stat-item .follower-count {
    font-size: 12px;
    font-weight: 600;
    color: #007bff;
    order: 3;
}

/* Languages Section with Label */
.ac-app-card-languages-section {
    margin-top: 2px;
}

.ac-app-languages-label {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

/* Language Pills - Dark colors with white text */
.ac-app-card-languages {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.language-pill {
    padding: 5px 10px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    flex: 0 0 calc(33.333% - 5px); /* 3 pills per row */
    text-align: center;
    box-sizing: border-box;
}

/* Separator Line (between pills and buttons) */
.ac-app-card-separator {
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd 20%, #ddd 80%, transparent);
    margin: 6px 0 4px 0;
}

/* Buttons */
.ac-app-card-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
}

.ac-app-btn {
    padding: 10px 14px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: none;
    line-height: 1.2;
}

.ac-app-btn-primary {
    background: #007bff;
    color: #fff;
}

.ac-app-btn-primary:hover {
    background: #0056b3;
    color: #fff;
}

.ac-app-btn-secondary {
    background: #28a745;
    color: #fff;
}

.ac-app-btn-secondary:hover {
    background: #1e7e34;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ac-app-card-content {
        padding: 14px;
        gap: 7px;
    }
    
    .ac-app-card-name {
        font-size: 15px;
    }
    
    .ac-app-card-state {
        padding: 5px 8px;
    }
    
    .ac-app-card-state .from-text {
        font-size: 11px;
    }
    
    .ac-app-card-state .state-text {
        font-size: 12px;
    }
    
    .ac-app-stat-item .platform-icon {
        width: 18px;
        height: 18px;
    }
    
    .ac-app-stat-item .platform-name {
        font-size: 12px;
    }
    
    .ac-app-stat-item .follower-count {
        font-size: 11px;
    }
    
    .ac-app-languages-label {
        font-size: 10px;
        margin-bottom: 5px;
    }
    
    .language-pill {
        flex: 0 0 calc(50% - 3px); /* 2 pills per row on mobile */
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .ac-app-btn {
        padding: 9px 12px;
        font-size: 12px;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .ac-app-card-content {
        padding: 15px;
        gap: 7px;
    }
    
    .ac-app-card-name {
        font-size: 16px;
    }
    
    .ac-app-languages-label {
        font-size: 10px;
    }
    
    .language-pill {
        font-size: 10px;
        padding: 4px 9px;
    }
}
