/**
 * Profile Module - Horizontal List Shopping Habits
 * White background, clean list design matching Collabstr
 */

/* Import Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ========================================
   PROFILE SECTION - REMOVE OUTLINE
   ======================================== */

.ac-spp-profile {
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    font-family: 'Poppins', sans-serif;
}

/* ========================================
   PROFILE HEADER
   ======================================== */

.ac-spp-profile-header {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    align-items: flex-start;
}

/* Avatar - First Gallery Image */
.ac-spp-profile-avatar {
    flex-shrink: 0;
}

.ac-spp-avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e5e7eb;
}

/* Profile Info */
.ac-spp-profile-info {
    flex: 1;
    min-width: 0;
}

/* Name Row with Verified Badge */
.ac-spp-profile-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.ac-spp-profile-name {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
    font-family: 'Poppins', sans-serif;
}

/* Verified Badge - Green Circle with Checkmark + Text */
.ac-spp-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Poppins', sans-serif;
}

.ac-spp-verified-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #10b981;
    border-radius: 50%;
    color: #ffffff;
    flex-shrink: 0;
}

.ac-spp-verified-icon svg {
    display: block;
}

.ac-spp-verified-text {
    font-size: 14px;
    font-weight: 600;
    color: #10b981;
}

/* Location */
.ac-spp-profile-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #666;
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
}

.ac-spp-profile-location svg {
    color: #6366f1;
    flex-shrink: 0;
}

/* Languages Section with Heading */
.ac-spp-profile-languages-section {
    margin-top: 16px;
}

.ac-spp-languages-heading {
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.ac-spp-profile-languages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ac-spp-language-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
}

/* ========================================
   SOCIAL STATUS SECTION
   ======================================== */

.ac-spp-social-status-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.ac-spp-social-status-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    font-family: 'Poppins', sans-serif;
}

/* Social Grid - 2 columns on desktop, stacks on mobile */
.ac-spp-social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Social Box - Vertical Layout */
.ac-spp-social-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s ease;
}

.ac-spp-social-box:hover {
    background: #f3f4f6;
    border-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.ac-spp-social-box-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

.ac-spp-social-box-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ac-spp-social-box-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    font-family: 'Poppins', sans-serif;
}

.ac-spp-social-box-stat {
    font-size: 14px;
    color: #6b7280;
    font-family: 'Poppins', sans-serif;
}

.ac-spp-social-box-stat strong {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 18px;
}

/* ========================================
   SHOPPING HABITS SECTION - HORIZONTAL LIST
   ======================================== */

.ac-spp-shopping-habits-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.ac-spp-shopping-habits-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    font-family: 'Poppins', sans-serif;
}

/* Shopping List - Horizontal Rows */
.ac-spp-shopping-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

/* Shopping Item - Horizontal Row */
.ac-spp-shopping-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
}

.ac-spp-shopping-item:last-child {
    border-bottom: none;
}

.ac-spp-shopping-item:hover {
    background-color: #f9fafb;
}

.ac-spp-shopping-item-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ac-spp-shopping-item-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.ac-spp-shopping-item-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.ac-spp-shopping-item-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    font-family: 'Poppins', sans-serif;
}

.ac-spp-shopping-item-frequency {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    font-family: 'Poppins', sans-serif;
}

/* ========================================
   TABLET RESPONSIVE (1024px and below)
   ======================================== */

@media (max-width: 1024px) {
    .ac-spp-profile-header {
        gap: 16px;
    }

    .ac-spp-avatar-img {
        width: 100px;
        height: 100px;
    }

    .ac-spp-profile-name {
        font-size: 28px;
    }

    .ac-spp-verified-icon {
        width: 22px;
        height: 22px;
    }

    .ac-spp-verified-icon svg {
        width: 12px;
        height: 12px;
    }

    .ac-spp-social-grid {
        gap: 14px;
    }

    .ac-spp-social-box {
        padding: 18px;
    }

    .ac-spp-social-box-icon {
        width: 42px;
        height: 42px;
    }

    .ac-spp-shopping-item {
        padding: 14px 18px;
    }

    .ac-spp-shopping-item-icon {
        width: 36px;
        height: 36px;
    }

    .ac-spp-shopping-item-icon img {
        width: 36px;
        height: 36px;
    }
}

/* ========================================
   MOBILE RESPONSIVE (768px and below)
   ======================================== */

@media (max-width: 768px) {
    .ac-spp-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .ac-spp-avatar-img {
        width: 90px;
        height: 90px;
    }

    .ac-spp-profile-info {
        width: 100%;
    }

    .ac-spp-profile-name-row {
        justify-content: center;
    }

    .ac-spp-profile-name {
        font-size: 24px;
    }

    .ac-spp-verified-icon {
        width: 20px;
        height: 20px;
    }

    .ac-spp-verified-icon svg {
        width: 11px;
        height: 11px;
    }

    .ac-spp-verified-text {
        font-size: 13px;
    }

    .ac-spp-profile-location {
        justify-content: center;
    }

    .ac-spp-languages-heading {
        text-align: center;
    }

    .ac-spp-profile-languages {
        justify-content: center;
    }

    .ac-spp-social-status-section,
    .ac-spp-shopping-habits-section {
        margin-top: 24px;
        padding-top: 20px;
    }

    .ac-spp-social-status-title,
    .ac-spp-shopping-habits-title {
        font-size: 18px;
        text-align: center;
    }

    /* Keep 2 columns on mobile for better use of space */
    .ac-spp-social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .ac-spp-social-box {
        padding: 16px 12px;
    }

    .ac-spp-social-box-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }

    .ac-spp-social-box-name {
        font-size: 14px;
    }

    .ac-spp-social-box-stat {
        font-size: 13px;
    }

    .ac-spp-social-box-stat strong {
        font-size: 16px;
    }

    /* Shopping list stays horizontal on mobile */
    .ac-spp-shopping-item {
        padding: 12px 16px;
    }

    .ac-spp-shopping-item-icon {
        width: 32px;
        height: 32px;
    }

    .ac-spp-shopping-item-icon img {
        width: 32px;
        height: 32px;
    }

    .ac-spp-shopping-item-name {
        font-size: 14px;
    }

    .ac-spp-shopping-item-frequency {
        font-size: 13px;
    }
}

/* ========================================
   SMALL MOBILE (480px and below)
   ======================================== */

@media (max-width: 480px) {
    .ac-spp-avatar-img {
        width: 80px;
        height: 80px;
    }

    .ac-spp-profile-name {
        font-size: 22px;
    }

    .ac-spp-profile-location {
        font-size: 14px;
    }

    .ac-spp-languages-heading {
        font-size: 13px;
    }

    .ac-spp-language-pill {
        font-size: 12px;
        padding: 5px 14px;
    }

    .ac-spp-social-status-title,
    .ac-spp-shopping-habits-title {
        font-size: 17px;
    }

    /* Stack to single column on very small screens */
    .ac-spp-social-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ac-spp-social-box {
        padding: 14px;
    }

    /* Shopping item: stack name and frequency vertically on very small screens */
    .ac-spp-shopping-item-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .ac-spp-shopping-item {
        padding: 12px 14px;
    }
}

/* Age Group */
.ac-spp-age-group {
    font-size: 14px;
    color: #718096;
    margin: 12px 0 16px 0;
    line-height: 1.4;
}

.ac-spp-age-group strong {
    color: #2d3748;
    font-weight: 600;
}

/* Status Badges */
.ac-spp-status-badges {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: 15px;
}

.ac-spp-status-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ac-spp-status-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
}

.ac-spp-status-label {
    font-size: 10px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Adjust profile name row to accommodate badges */
.ac-spp-profile-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Mobile-only: Status badges always on new line below name */
@media (max-width: 768px) {
    .ac-spp-profile-name-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .ac-spp-status-badges {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-top: 0;
        /* Optional: limit max width to prevent stretching */
        max-width: 100%;
    }

    .ac-spp-status-badge {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-width: 56px; /* ensures consistent sizing */
    }

    .ac-spp-status-icon {
        width: 24px;
        height: 24px;
        margin-bottom: 4px;
    }

    .ac-spp-status-label {
        font-size: 10px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }
}