/* =========================================
   PROFILE MODULE
   User Dashboard Styles
   ========================================= */

.profile-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 32px auto 40px;
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
}

.profile-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (max-width: 900px) {
    .profile-container {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 24px;
    }

    .profile-card {
        padding: 20px;
    }

    .profile-content-wrapper {
        gap: 20px;
    }
}

.profile-card {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Button Override for Profile */
.profile-card .btn-primary {
    width: auto;
    display: inline-flex;
    padding: 10px 20px;
    min-width: 100px;
    justify-content: center;
    font-size: 0.9rem;
}

.profile-avatar-lg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 12px;
    border: 3px solid white;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-avatar-lg:hover {
    transform: scale(1.05);
}

.profile-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-main);
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-box {
    background: white;
    padding: 8px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: var(--primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-top: 2px;
}

.trips-section h2 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.trip-card {
    background: white;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.trip-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 51, 102, 0.2);
}

.trip-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.trip-dest {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.2;
}

.trip-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.trip-badges {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.badge {
    padding: 2px 6px;
    background: #f1f3f5;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
}

.trip-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px dashed #eee;
}

.trip-price {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-details {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-details::after {
    content: '→';
    transition: transform 0.2s;
}

.btn-details:hover::after {
    transform: translateX(4px);
}

/* =========================================
   Friends Styling
   ========================================= */

.friends-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.friend-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f5;
}

.friend-card:last-child {
    border-bottom: none;
}

.friend-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.friend-info {
    flex: 1;
}

.friend-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.friend-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.request-card {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px dashed var(--secondary);
}