/* ========================================
   AURORA - COMPONENTES ESPECÍFICOS
   Extensão do Framework Aurora
   ======================================== */

/* ========================================
   1. COMPONENTES DE ESCRITA
   ======================================== */

/* Editor de Texto */
.aurora-editor {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-height: 400px;
}

.aurora-editor-toolbar {
    background: var(--muted);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem;
    border-radius: var(--radius) var(--radius) 0 0;
}

.aurora-editor-content {
    padding: 1rem;
    min-height: 350px;
    outline: none;
}

/* Contador de Palavras */
.aurora-word-counter {
    background: var(--accent);
    color: var(--accent-foreground);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Progress Bar */
.aurora-progress {
    background: var(--muted);
    border-radius: var(--radius);
    height: 8px;
    overflow: hidden;
}

.aurora-progress-bar {
    background: var(--primary);
    height: 100%;
    transition: width 0.3s ease;
    border-radius: var(--radius);
}

/* ========================================
   2. COMPONENTES DE PROJETO
   ======================================== */

/* Card de Projeto */
.aurora-project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.aurora-project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.aurora-project-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.aurora-project-content {
    padding: 1.5rem;
}

.aurora-project-footer {
    padding: 1rem 1.5rem;
    background: var(--muted);
    border-top: 1px solid var(--border);
}

/* Status do Projeto */
.aurora-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.aurora-status.rascunho {
    background: var(--muted);
    color: var(--muted-foreground);
}

.aurora-status.em-andamento {
    background: var(--chart-2);
    color: var(--chart-4);
}

.aurora-status.em-revisao {
    background: var(--chart-3);
    color: var(--chart-4);
}

.aurora-status.concluido {
    background: var(--chart-1);
    color: var(--chart-4);
}

/* ========================================
   3. COMPONENTES DE ESTATÍSTICAS
   ======================================== */

/* Card de Estatística */
.aurora-stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.aurora-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.aurora-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.aurora-stat-label {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.aurora-stat-change {
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.aurora-stat-change.positive {
    color: var(--chart-1);
}

.aurora-stat-change.negative {
    color: var(--destructive);
}

/* Gráfico */
.aurora-chart {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.aurora-chart-header {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: between;
    align-items: center;
}

.aurora-chart-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
}

/* ========================================
   4. COMPONENTES DE NAVEGAÇÃO
   ======================================== */

/* Breadcrumb */
.aurora-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    font-size: 0.875rem;
}

.aurora-breadcrumb-item {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s ease;
}

.aurora-breadcrumb-item:hover {
    color: var(--foreground);
    text-decoration: none;
}

.aurora-breadcrumb-item.active {
    color: var(--foreground);
    font-weight: 600;
}

.aurora-breadcrumb-separator {
    color: var(--muted-foreground);
}

/* Tabs */
.aurora-tabs {
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.aurora-tab-list {
    display: flex;
    gap: 0;
}

.aurora-tab {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    color: var(--muted-foreground);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.aurora-tab:hover {
    color: var(--foreground);
    background: var(--muted);
}

.aurora-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ========================================
   5. COMPONENTES DE FORMULÁRIO
   ======================================== */

/* Grupo de Formulário */
.aurora-form-group {
    margin-bottom: 1.5rem;
}

.aurora-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--foreground);
}

.aurora-form-help {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}

.aurora-form-error {
    font-size: 0.875rem;
    color: var(--destructive);
    margin-top: 0.25rem;
}

/* Checkbox e Radio */
.aurora-checkbox,
.aurora-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.aurora-checkbox input,
.aurora-radio input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary);
}

/* ========================================
   6. COMPONENTES DE FEEDBACK
   ======================================== */

/* Toast/Notification */
.aurora-toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    padding: 1rem 1.5rem;
    max-width: 400px;
    z-index: 1000;
    animation: aurora-slide-in-right 0.3s ease-out;
}

@keyframes aurora-slide-in-right {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.aurora-toast.success {
    border-left: 4px solid var(--chart-1);
}

.aurora-toast.error {
    border-left: 4px solid var(--destructive);
}

.aurora-toast.warning {
    border-left: 4px solid var(--chart-2);
}

/* Modal */
.aurora-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: aurora-fade-in 0.2s ease-out;
}

.aurora-modal {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-2xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: aurora-scale-in 0.2s ease-out;
}

@keyframes aurora-scale-in {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.aurora-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: between;
    align-items: center;
}

.aurora-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
}

.aurora-modal-close {
    background: none;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.aurora-modal-close:hover {
    background: var(--muted);
    color: var(--foreground);
}

.aurora-modal-content {
    padding: 1.5rem;
}

.aurora-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ========================================
   7. COMPONENTES DE LISTA
   ======================================== */

/* Lista de Itens */
.aurora-list {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.aurora-list-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}

.aurora-list-item:last-child {
    border-bottom: none;
}

.aurora-list-item:hover {
    background: var(--muted);
}

.aurora-list-item.active {
    background: var(--accent);
    color: var(--accent-foreground);
}

/* ========================================
   8. COMPONENTES DE PAGINAÇÃO
   ======================================== */

.aurora-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.aurora-pagination-item {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--foreground);
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 2.5rem;
    text-align: center;
}

.aurora-pagination-item:hover {
    background: var(--accent);
    color: var(--accent-foreground);
    text-decoration: none;
}

.aurora-pagination-item.active {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.aurora-pagination-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ========================================
   9. COMPONENTES DE CARREGAMENTO
   ======================================== */

/* Spinner */
.aurora-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--muted);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: aurora-spin 1s linear infinite;
}

@keyframes aurora-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.aurora-spinner.large {
    width: 2rem;
    height: 2rem;
    border-width: 3px;
}

/* Skeleton */
.aurora-skeleton {
    background: linear-gradient(90deg, var(--muted) 25%, var(--accent) 50%, var(--muted) 75%);
    background-size: 200% 100%;
    animation: aurora-shimmer 1.5s infinite;
    border-radius: 0.25rem;
}

.aurora-skeleton.text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.aurora-skeleton.title {
    height: 1.5rem;
    margin-bottom: 1rem;
}

.aurora-skeleton.avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
}

/* ========================================
   10. UTILITÁRIOS ESPECÍFICOS
   ======================================== */

/* Text Utilities */
.aurora-text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aurora-text-center {
    text-align: center;
}

.aurora-text-right {
    text-align: right;
}

/* Spacing Utilities */
.aurora-mt-1 { margin-top: 0.25rem; }
.aurora-mt-2 { margin-top: 0.5rem; }
.aurora-mt-3 { margin-top: 0.75rem; }
.aurora-mt-4 { margin-top: 1rem; }
.aurora-mt-5 { margin-top: 1.25rem; }
.aurora-mt-6 { margin-top: 1.5rem; }

.aurora-mb-1 { margin-bottom: 0.25rem; }
.aurora-mb-2 { margin-bottom: 0.5rem; }
.aurora-mb-3 { margin-bottom: 0.75rem; }
.aurora-mb-4 { margin-bottom: 1rem; }
.aurora-mb-5 { margin-bottom: 1.25rem; }
.aurora-mb-6 { margin-bottom: 1.5rem; }

.aurora-p-1 { padding: 0.25rem; }
.aurora-p-2 { padding: 0.5rem; }
.aurora-p-3 { padding: 0.75rem; }
.aurora-p-4 { padding: 1rem; }
.aurora-p-5 { padding: 1.25rem; }
.aurora-p-6 { padding: 1.5rem; }

/* Display Utilities */
.aurora-hidden { display: none; }
.aurora-block { display: block; }
.aurora-inline { display: inline; }
.aurora-inline-block { display: inline-block; }
.aurora-flex { display: flex; }
.aurora-inline-flex { display: inline-flex; }
.aurora-grid { display: grid; }

/* Flex Utilities */
.aurora-flex-col { flex-direction: column; }
.aurora-flex-row { flex-direction: row; }
.aurora-justify-center { justify-content: center; }
.aurora-justify-between { justify-content: space-between; }
.aurora-justify-around { justify-content: space-around; }
.aurora-items-center { align-items: center; }
.aurora-items-start { align-items: flex-start; }
.aurora-items-end { align-items: flex-end; }
