/* Fuente personalizada */
.font-inter {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Estilos para tabs */
.tab-btn {
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn.active {
    color: #92400e;
    border-bottom-color: #d97706;
}

.tab-btn:hover {
    color: #92400e;
}

/* Contenido de tabs */
.tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modales */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    margin: auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Formularios */
.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

/* Tarjetas de personajes */
.character-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.character-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Mapa del pueblo */
.location-marker {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.location-marker:hover {
    transform: scale(1.1);
}

.location-marker.bakery { background: #dc2626; top: 30%; left: 20%; }
.location-marker.library { background: #2563eb; top: 25%; left: 60%; }
.location-marker.teahouse { background: #7c3aed; top: 50%; left: 40%; }
.location-marker.forest { background: #059669; top: 70%; left: 70%; }
.location-marker.bookstore { background: #ca8a04; top: 45%; left: 15%; }

/* Pistas */
.clue-item {
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clue-item:hover {
    transform: translateX(4px);
}

.clue-crucial {
    background: #fef2f2;
    border-color: #dc2626;
}

.clue-false {
    background: #eff6ff;
    border-color: #2563eb;
}

.clue-complementary {
    background: #f0fdf4;
    border-color: #059669;
}

/* Timeline */
.timeline {
    display: flex;
    min-width: 800px;
    padding: 20px 0;
}

.timeline-item {
    flex: 1;
    position: relative;
    text-align: center;
    padding: 0 10px;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 25px;
    right: -1px;
    width: 20px;
    height: 2px;
    background: #d1d5db;
    z-index: 1;
}

.timeline-marker {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f3f4f6;
    border: 3px solid #d1d5db;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

.timeline-marker.has-clue {
    background: #fbbf24;
    border-color: #f59e0b;
    color: white;
}

/* Kanban */
.kanban-column {
    min-width: 300px;
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
}

.kanban-header {
    font-weight: bold;
    padding: 8px 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 16px;
}

.chapter-card {
    background: white;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: move;
    transition: transform 0.2s ease;
}

.chapter-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Inspiración */
.inspiration-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Ideas guardadas */
.saved-idea {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #d97706;
}

/* Progreso */
.progress-item {
    margin-bottom: 16px;
}

/* Relaciones entre personajes */
.relationship-line {
    position: absolute;
    height: 2px;
    background: #d1d5db;
    transform-origin: left center;
    pointer-events: none;
    z-index: 1;
}

.relationship-line.positive {
    background: #10b981;
}

.relationship-line.negative {
    background: #ef4444;
}

.relationship-line.neutral {
    background: #6b7280;
}

/* Responsivo */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .timeline {
        min-width: 600px;
    }
    
    .kanban-column {
        min-width: 250px;
    }
}

/* Efectos de carga */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Tooltips */
.tooltip {
    position: relative;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #374151;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
}

/* Drag and drop */
.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.drop-zone {
    border: 2px dashed #d97706;
    background: #fef3c7;
}

/* Notificaciones */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    color: white;
    z-index: 1100;
    animation: slideInRight 0.3s ease;
}

.notification.success { background: #10b981; }
.notification.error { background: #ef4444; }
.notification.info { background: #3b82f6; }

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .bg-amber-50 {
        background: white !important;
    }
}