/* Resume Builder Minimal CSS - Only Essential Styles */

/* ==================== Extracted Inline Styles ==================== */

/* These replace inline styles in React components */
.editor-min-height {
    min-height: 120px;
}

.message-wrap {
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-container-height {
    max-height: 500px;
}

/* ==================== Custom Animations ==================== */

/* Spinner animation - Cannot be replaced with Tailwind */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rb-spinner {
    animation: spin 1s linear infinite;
    height: 1rem;
    width: 1rem;
    color: white;
}

/* Navigation underline animation - Complex animation not available in Tailwind */
.nav-links {
    display: flex;
    gap: 1.5rem;
    font-size: 1.125rem;
    font-weight: 500;
}

.nav-links a {
    color: #4b5563;
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a:hover {
    color: #2563eb;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #2563eb;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* ==================== Experience Reorder Controls ==================== */

/* Complex hover visibility logic */
.rb-reorder-container {
    position: relative;
}

.rb-reorder-buttons {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.2s;
}

.rb-reorder-container:hover .rb-reorder-buttons {
    opacity: 1;
}

.rb-reorder-content {
    padding-left: 1.5rem;
}

/* ==================== Loading States ==================== */

/* Complex loading animation for editable sections */
.editable-section--saving {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.editable-section--saving::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid #2563eb;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ==================== Editor.js Specific Styles ==================== */

/* These styles are required for Editor.js to function properly */
.editor-container .codex-editor {
    padding: 0;
    min-height: auto !important;
}

.editor-container .ce-block__content {
    max-width: 100%;
    padding: 0.25rem 0;
}

.editor-container .codex-editor__redactor {
    padding-bottom: 20px !important;
}

.editor-container .ce-toolbar {
    opacity: 1;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.editor-container .ce-toolbar__content {
    max-width: 100%;
}

.editor-container .ce-block {
    padding: 0.25rem 0;
}

.editor-container .ce-block--selected .ce-block__content {
    background-color: #f0f9ff;
}

/* Inline toolbar styles */
.editor-container .ce-inline-toolbar {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.editor-container .ce-inline-tool {
    color: #374151;
}

.editor-container .ce-inline-tool:hover {
    background-color: #f3f4f6;
}

.editor-container .ce-inline-tool--active {
    background-color: #2563eb;
    color: white;
}

/* Editor typography */
.editor-container .ce-header {
    padding: 0.5rem 0;
    font-weight: 600;
    color: #111827;
}

.editor-container .ce-paragraph {
    padding: 0.25rem 0;
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.6;
}

.editor-container .cdx-list {
    padding: 0.25rem 0;
}

.editor-container .cdx-list__item {
    padding: 0.125rem 0;
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Editor placeholder */
.editor-container .ce-block--empty .ce-paragraph::before {
    color: #9ca3af;
    font-style: italic;
}

/* Ensure toolbars appear above other content */
.ce-toolbar,
.ce-inline-toolbar,
.ce-conversion-toolbar,
.ce-settings {
    z-index: 100 !important;
}

/* Editor plus button */
.editor-container .ce-toolbar__plus {
    color: #6b7280;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.editor-container .ce-toolbar__plus:hover {
    background-color: #f3f4f6;
    color: #374151;
}

/* Settings button */
.editor-container .ce-toolbar__settings-btn {
    color: #6b7280;
}

.editor-container .ce-toolbar__settings-btn:hover {
    color: #374151;
}

/* ==================== Summary Section Specific ==================== */

.summary-section {
    background-color: #f9fafb;
    padding: 1rem;
    border-radius: 0.375rem;
}


/* ==================== Prose Content Styling ==================== */

/* For rendered content that needs consistent typography */
.prose h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.prose h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
}

.prose ul {
    list-style-type: disc;
    padding-left: 1.25rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.prose li {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.prose p {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}