﻿/**
 * PROFILE COMPONENTS
 * ==================
 * 
 * Profile-specific components and form enhancements
 */

.profile-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

    .profile-card:hover {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        transform: translateY(-1px);
    }

.bookmark-link {
    display: block;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: #f9fafb;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

    .bookmark-link:hover {
        background: var(--bg-tint);
        transform: translateX(2px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

        .bookmark-link:hover .bookmark-title {
            color: var(--primary);
        }

        .bookmark-link:hover .bookmark-arrow {
            color: var(--primary);
            transform: translateX(2px);
        }

.bookmark-title {
    font-weight: 500;
    color: #374151;
    transition: color 0.3s ease;
}

.bookmark-arrow {
    transition: all 0.3s ease;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

    .quick-action:hover {
        background: var(--bg-tint);
        color: var(--primary);
        border-color: var(--primary);
        transform: translateY(-1px);
    }

        .quick-action:hover .quick-action-icon {
            color: var(--primary);
            transform: scale(1.1);
        }

.quick-action-icon {
    transition: all 0.3s ease;
}

.form-section-header {
    border-bottom: 2px solid var(--bg-tint);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

    .form-section-header h3 {
        color: var(--text-primary);
        font-family: "gelica", sans-serif;
        font-weight: 700;
        font-size: 1.25rem;
        margin: 0;
    }

    .form-section-header p {
        color: #6b7280;
        font-size: 0.875rem;
        margin: 0.25rem 0 0 0;
    }

.char-count-warning {
    color: #f59e0b !important;
}

.char-count-danger {
    color: #ef4444 !important;
}

.last-login {
    background: linear-gradient(135deg, var(--bg-tint) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

    .last-login .date-label {
        font-size: 0.75rem;
        color: #6b7280;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-weight: 600;
        margin-bottom: 0.25rem;
    }

    .last-login .date-value {
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--text-primary);
    }

.profile-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-left: 4px solid #22c55e;
}

.form-loading {
    position: relative;
    pointer-events: none;
}

    .form-loading::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.8);
        border-radius: inherit;
        z-index: 10;
    }

    .form-loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 2rem;
        height: 2rem;
        border: 2px solid #e5e7eb;
        border-top-color: var(--primary);
        border-radius: 50%;
        animation: spin 1s linear infinite;
        z-index: 11;
    }

/* Profile theme overrides */
body.theme-nature .profile-card {
    border-left-color: #4caf50;
}

body.theme-sky .profile-card {
    border-left-color: #2196f3;
}

body.theme-sunset .profile-card {
    border-left-color: #ff7043;
}

body.theme-mystical .profile-card {
    border-left-color: #7e57c2;
}
