/* ============================================================
   J2ST.ICU — PROFILE EDITOR STYLES (v4.0)
   Organized Card Layout
   ============================================================ */

.profile-grid-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: flex-start;
}

.editor-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 100px; /* Space for sticky footer */
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-premium);
}

.editor-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.editor-section-header i {
    color: var(--text-secondary);
    font-size: 18px;
}

.editor-section-header h3 {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* AVATAR BOX */
.avatar-edit-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.avatar-preview-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
}

.avatar-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    opacity: 0;
    transition: var(--transition);
}

.avatar-preview-wrapper:hover .avatar-overlay { opacity: 1; }
.avatar-preview-wrapper:hover .avatar-preview-image { transform: scale(1.1); }

.avatar-info p {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
}

.avatar-info span {
    color: var(--text-muted);
    font-size: 12px;
}

/* FORM FIELDS */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field.full { grid-column: span 2; }

.form-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    padding-left: 4px;
}

.form-input {
    background: #0e0e0e;
    border: 1px solid var(--accent-border);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: #fff;
    background: #111;
}

.form-textarea {
    resize: none;
    height: 100px;
}

/* COLOR GROUP */
.color-picker-suite {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #0e0e0e;
    border: 1px solid var(--accent-border);
    padding: 6px 6px 6px 12px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.color-picker-suite:focus-within {
    border-color: #fff;
}

.color-preview-box {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
}

.hex-inp {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Space Grotesk', monospace;
    font-size: 13px;
    font-weight: 600;
    outline: none;
    text-transform: uppercase;
}

/* PREVIEW PANEL */
.preview-panel {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: center;
}

.phone {
    width: 320px;
    height: 650px;
    background: #000;
    border-radius: 40px;
    border: 8px solid #141414;
    position: relative;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
    overflow: hidden;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #141414;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 10;
}

.phone-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #000;
}

.phone-banner {
    height: 120px;
    background-size: cover;
    background-position: center;
}

.phone-body {
    padding: 0 20px;
    margin-top: -30px;
    text-align: center;
}

.phone-avatar {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    border: 2px solid #000;
    margin-bottom: 12px;
    object-fit: cover;
}

.phone-name { font-size: 18px; font-weight: 800; }
.phone-handle { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.phone-bio { font-size: 11px; margin-top: 8px; line-height: 1.5; color: #ccc; }

/* BADGES IN PREVIEW */
.badge-item {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.badge-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.badge-item::after {
    content: attr(data-label);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
    pointer-events: none;
    z-index: 1000;
}

.badge-item:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.badge-item:hover {
    transform: translateY(-3px) scale(1.2);
}

/* STICKY FOOTER */
.save-action-footer {
    position: fixed;
    bottom: 30px;
    left: 300px; /* sidebar (280) + padding */
    right: 40px;  /* main padding */
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--accent-border);
    padding: 16px 32px;
    border-radius: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.save-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.save-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.save-btn:disabled {
    background: #333;
    color: #888;
    cursor: not-allowed;
    transform: none;
}
