/* ====================================
   PROFILE PAGE - COMPLETE STYLING
   ==================================== */

/* Profile Container */
.sc-profile {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Profile Header */
.sc-profile__header {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
}

/* Avatar */
.sc-profile__avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #f3f4f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sc-profile__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Meta Info */
.sc-profile__meta {
    flex: 1;
}

.sc-profile__name {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px 0;
}

.sc-profile__sub {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.sc-profile__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.sc-profile__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0ea5e9;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.sc-profile__link:hover {
    color: #0284c7;
}

/* Call to Action Buttons */
.sc-profile__cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Tabs */
.sc-profile__tabs {
    background: white;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    display: flex;
    gap: 0;
}

.sc-profile__tabs a {
    flex: 1;
    padding: 16px 24px;
    text-align: center;
    text-decoration: none;
    color: #6b7280;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sc-profile__tabs a:first-child {
    border-radius: 12px 0 0 12px;
}

.sc-profile__tabs a:last-child {
    border-radius: 0 12px 12px 0;
}

.sc-profile__tabs a:hover {
    background: #f9fafb;
    color: #1f2937;
}

.sc-profile__tabs a.is-active {
    color: #0ea5e9;
    background: #f0f9ff;
    border-bottom-color: #0ea5e9;
}

/* Profile Body */
.sc-profile__body {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

/* Cards - Hyves Style */
.sc-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    overflow: hidden;
}

.sc-card:last-child {
    margin-bottom: 0;
}

.sc-card__title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    padding: 14px 20px;
    background: linear-gradient(135deg, #669ACB 0%, #5a8abf 100%);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: none;
}

.sc-card__title i {
    font-size: 16px;
    opacity: 0.9;
}

/* Card content area */
.sc-card>.sc-avatar-edit,
.sc-card>.sc-form {
    padding: 24px;
}

.sc-prose {
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 20px;
}

.sc-muted {
    color: #9ca3af;
    font-style: italic;
    margin-bottom: 20px;
}

.sc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sc-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 15px;
    color: #374151;
}

.sc-list li:last-child {
    border-bottom: none;
}

.sc-list li strong {
    color: #1f2937;
    font-weight: 600;
    margin-right: 8px;
}

/* ====================================
   FRIENDSHIP BUTTONS
   ==================================== */

.sc-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    white-space: nowrap;
}

.sc-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sc-btn--primary {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
}

.sc-btn--primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.sc-btn--success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.sc-btn--success:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.sc-btn--danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.sc-btn--danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.sc-btn--secondary {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    color: #374151;
}

.sc-btn--secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
}

/* ====================================
   FRIENDS GRID
   ==================================== */

.sc-friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.sc-friend-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.sc-friend-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    border-color: #0ea5e9;
}

.sc-friend-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f3f4f6;
}

.sc-friend-card__name {
    font-weight: 600;
    color: #1f2937;
}

.sc-friend-card__username {
    font-size: 14px;
    color: #6b7280;
}

.sc-friends-count {
    text-align: center;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    color: #6b7280;
    font-weight: 600;
}

.sc-friends-count i {
    margin-right: 8px;
}

/* ====================================
   EMPTY STATE
   ==================================== */

.sc-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.sc-empty-state__icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.sc-empty-state__title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.sc-empty-state__text {
    color: #6b7280;
    font-size: 16px;
}

/* ====================================
   ICONS
   ==================================== */

.sc-profile__tabs a i {
    margin-right: 6px;
}

.sc-profile__pill i,
.sc-profile__link i {
    margin-right: 6px;
    opacity: 0.7;
}

/* ====================================
   NOTIFICATIONS
   ==================================== */

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.sc-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sc-notification--success {
    background: #10b981;
}

.sc-notification--error {
    background: #ef4444;
}

.sc-notification i {
    font-size: 20px;
}

/* ====================================
   RESPONSIVE
   ==================================== */

@media (max-width: 968px) {
    .sc-profile__header {
        grid-template-columns: auto 1fr;
        gap: 20px;
    }

    .sc-profile__cta {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .sc-profile {
        padding: 10px;
    }

    .sc-profile__header {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 20px;
    }

    .sc-profile__avatar {
        margin: 0 auto;
    }

    .sc-profile__meta {
        text-align: center;
    }

    .sc-profile__sub {
        justify-content: center;
    }

    .sc-profile__cta {
        width: 100%;
        flex-direction: column;
    }

    .sc-btn {
        width: 100%;
        justify-content: center;
    }

    .sc-profile__tabs {
        flex-direction: column;
        gap: 0;
    }

    .sc-profile__tabs a {
        border-radius: 0;
        border-bottom: 1px solid #e5e7eb;
        border-left: 3px solid transparent;
    }

    .sc-profile__tabs a:first-child {
        border-radius: 12px 12px 0 0;
    }

    .sc-profile__tabs a:last-child {
        border-radius: 0 0 12px 12px;
        border-bottom: none;
    }

    .sc-profile__tabs a.is-active {
        border-bottom-color: transparent;
        border-left-color: #0ea5e9;
    }

    .sc-friends-grid {
        grid-template-columns: 1fr;
    }

    .sc-profile__body {
        padding: 20px;
    }
}

/* ====================================
   PROFILE EDIT PAGE
   ==================================== */

/* Page Header */
.sc-profile__page-header {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sc-profile__page-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sc-profile__page-title h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.sc-profile__page-title i {
    color: #669ACB;
    font-size: 28px;
}

/* Profile Edit Form */
.sc-profile-edit {
    max-width: 900px;
    margin: 0 auto;
}

/* Avatar Edit Section */
.sc-avatar-edit {
    display: flex;
    gap: 30px;
    align-items: center;
}

.sc-avatar-edit__preview {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #f3f4f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.sc-avatar-edit__preview:hover {
    transform: scale(1.05);
}

.sc-avatar-edit__preview:hover .sc-avatar-edit__overlay {
    opacity: 1;
}

.sc-avatar-edit__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sc-avatar-edit__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.sc-avatar-edit__overlay i {
    color: white;
    font-size: 32px;
}

.sc-avatar-edit__actions {
    flex: 1;
}

.sc-avatar-edit__actions .sc-btn {
    margin-right: 12px;
    margin-bottom: 12px;
}

.sc-avatar-edit__hint {
    color: #6b7280;
    font-size: 14px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Form Styling */
.sc-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sc-form__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sc-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.sc-form__label {
    font-weight: 600;
    color: #1f2937;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sc-form__label i {
    color: #6b7280;
    font-size: 14px;
}

.sc-form__input,
.sc-form__textarea,
.sc-form__select {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    color: #1f2937;
    transition: all 0.2s;
    font-family: inherit;
}

.sc-form__input:focus,
.sc-form__textarea:focus,
.sc-form__select:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.sc-form__textarea {
    resize: vertical;
    min-height: 120px;
}

.sc-form__hint {
    color: #6b7280;
    font-size: 13px;
    font-style: italic;
}

.sc-form__select {
    cursor: pointer;
    background: white;
}

/* Save Actions */
.sc-profile-edit__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sc-btn--large {
    padding: 14px 32px;
    font-size: 16px;
}

/* ====================================
   RESPONSIVE - PROFILE EDIT
   ==================================== */

@media (max-width: 768px) {
    .sc-profile__page-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .sc-profile__page-title {
        flex-direction: column;
    }

    .sc-avatar-edit {
        flex-direction: column;
        text-align: center;
    }

    .sc-avatar-edit__actions {
        width: 100%;
    }

    .sc-avatar-edit__actions .sc-btn {
        width: 100%;
        margin-right: 0;
        justify-content: center;
    }

    .sc-form__row {
        grid-template-columns: 1fr;
    }

    .sc-profile-edit__actions {
        flex-direction: column;
    }

    .sc-profile-edit__actions .sc-btn {
        width: 100%;
    }
}

/* Online indicator op profiel avatar */
.sc-profile__avatar {
    position: relative;
    display: inline-block;
}

.sc-profile__avatar .online-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    background: #22c55e;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
