/* Estilos adicionales específicos para el template de Notion */

:root {
    --notion-gray-100: #f7f6f3;
    --notion-gray-200: #e9e9e7;
    --notion-gray-300: #ddd;
    --notion-gray-600: #6b7280;
    --notion-gray-800: #1f2937;
    --notion-blue-500: #3b82f6;
    --notion-blue-600: #2563eb;
    --notion-green-500: #10b981;
    --notion-green-600: #059669;
    --notion-orange-500: #f59e0b;
    --notion-orange-600: #d97706;
    --notion-red-500: #ef4444;
    --notion-red-600: #dc2626;
    --notion-purple-500: #8b5cf6;
    --notion-purple-600: #7c3aed;
}

/* Animaciones suaves */
* {
    transition: all 0.2s ease-in-out;
}

/* Estilos de bloques Notion */
.notion-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--notion-gray-800);
}

.notion-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--notion-gray-800);
}

.notion-subtitle {
    font-size: 1.1rem;
    color: var(--notion-gray-600);
    margin-bottom: 40px;
}

/* Bloques de contenido */
.notion-block {
    margin: 8px 0;
    line-height: 1.6;
}

.notion-heading-1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 32px 0 8px 0;
    color: var(--notion-gray-800);
}

.notion-heading-2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 24px 0 8px 0;
    color: var(--notion-gray-800);
}

.notion-heading-3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 16px 0 8px 0;
    color: var(--notion-gray-800);
}

/* Callouts */
.notion-callout {
    background: var(--notion-gray-100);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    border-left: 4px solid var(--notion-blue-500);
    display: flex;
    align-items: flex-start;
}

.notion-callout.info {
    border-left-color: var(--notion-blue-500);
    background: #eff6ff;
}

.notion-callout.success {
    border-left-color: var(--notion-green-500);
    background: #ecfdf5;
}

.notion-callout.warning {
    border-left-color: var(--notion-orange-500);
    background: #fffbeb;
}

.notion-callout.error {
    border-left-color: var(--notion-red-500);
    background: #fef2f2;
}

.notion-callout-icon {
    font-size: 1.2rem;
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

.notion-callout-content {
    flex: 1;
}

/* Toggles (collapsible content) */
.notion-toggle {
    margin: 8px 0;
}

.notion-toggle-title {
    cursor: pointer;
    padding: 8px 0;
    font-weight: 500;
    color: var(--notion-gray-800);
    display: flex;
    align-items: center;
    user-select: none;
}

.notion-toggle-title:hover {
    background: var(--notion-gray-100);
    border-radius: 4px;
}

.notion-toggle-icon {
    margin-right: 8px;
    transition: transform 0.2s;
}

.notion-toggle.open .notion-toggle-icon {
    transform: rotate(90deg);
}

.notion-toggle-content {
    padding-left: 24px;
    margin-top: 8px;
    display: none;
}

.notion-toggle.open .notion-toggle-content {
    display: block;
}

/* Tablas */
.notion-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.notion-table th {
    background: var(--notion-gray-100);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--notion-gray-800);
    border-bottom: 1px solid var(--notion-gray-200);
}

.notion-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--notion-gray-200);
    vertical-align: top;
}

.notion-table tr:last-child td {
    border-bottom: none;
}

.notion-table tr:hover {
    background: var(--notion-gray-100);
}

/* Listas */
.notion-list {
    margin: 8px 0;
    padding-left: 24px;
}

.notion-list-item {
    margin: 4px 0;
    line-height: 1.6;
}

/* Checkboxes */
.notion-checkbox {
    display: flex;
    align-items: flex-start;
    margin: 4px 0;
    cursor: pointer;
}

.notion-checkbox input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 4px;
    cursor: pointer;
}

.notion-checkbox.checked {
    color: var(--notion-gray-600);
    text-decoration: line-through;
}

/* Quotes */
.notion-quote {
    border-left: 4px solid var(--notion-gray-300);
    padding-left: 16px;
    margin: 16px 0;
    font-style: italic;
    color: var(--notion-gray-600);
    background: var(--notion-gray-100);
    border-radius: 0 8px 8px 0;
    padding: 16px;
}

/* Code blocks */
.notion-code {
    background: var(--notion-gray-100);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    overflow-x: auto;
    border: 1px solid var(--notion-gray-200);
}

.notion-inline-code {
    background: var(--notion-gray-100);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.9em;
    color: var(--notion-red-600);
}

/* Dividers */
.notion-divider {
    border: none;
    border-top: 1px solid var(--notion-gray-200);
    margin: 32px 0;
}

/* Database styles */
.notion-database {
    margin: 16px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background: white;
}

.notion-database-header {
    background: var(--notion-gray-100);
    padding: 16px;
    border-bottom: 1px solid var(--notion-gray-200);
}

.notion-database-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--notion-gray-800);
}

.notion-database-row {
    padding: 12px 16px;
    border-bottom: 1px solid var(--notion-gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}

.notion-database-row:hover {
    background: var(--notion-gray-100);
}

.notion-database-row:last-child {
    border-bottom: none;
}

/* Property types */
.notion-property {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.notion-select {
    background: var(--notion-blue-500);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.notion-select.status-todo {
    background: var(--notion-gray-300);
    color: var(--notion-gray-800);
}

.notion-select.status-in-progress {
    background: var(--notion-blue-500);
}

.notion-select.status-done {
    background: var(--notion-green-500);
}

.notion-select.priority-high {
    background: var(--notion-red-500);
}

.notion-select.priority-medium {
    background: var(--notion-orange-500);
}

.notion-select.priority-low {
    background: var(--notion-green-500);
}

/* Buttons */
.notion-button {
    background: var(--notion-blue-500);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.notion-button:hover {
    background: var(--notion-blue-600);
}

.notion-button.secondary {
    background: var(--notion-gray-200);
    color: var(--notion-gray-800);
}

.notion-button.secondary:hover {
    background: var(--notion-gray-300);
}

/* Links */
.notion-link {
    color: var(--notion-blue-600);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.notion-link:hover {
    border-bottom-color: var(--notion-blue-600);
}

/* Emojis */
.notion-emoji {
    font-size: 1.2em;
    margin-right: 8px;
}

/* Responsive design */
@media (max-width: 768px) {
    .notion-page {
        padding: 40px 16px;
    }
    
    .notion-title {
        font-size: 2rem;
    }
    
    .notion-heading-1 {
        font-size: 1.5rem;
    }
    
    .notion-table {
        font-size: 0.9rem;
    }
    
    .notion-callout {
        padding: 12px;
    }
    
    .notion-code {
        padding: 12px;
        font-size: 0.8rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --notion-gray-100: #2d2d2d;
        --notion-gray-200: #404040;
        --notion-gray-300: #4a4a4a;
        --notion-gray-600: #a0a0a0;
        --notion-gray-800: #e0e0e0;
    }
    
    body {
        background: #1a1a1a;
        color: var(--notion-gray-800);
    }
    
    .notion-callout.info {
        background: #1e3a8a;
    }
    
    .notion-callout.success {
        background: #064e3b;
    }
    
    .notion-callout.warning {
        background: #92400e;
    }
    
    .notion-callout.error {
        background: #991b1b;
    }
}

/* Animaciones para interactividad */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notion-block {
    animation: fadeIn 0.3s ease-out;
}

/* Utilidades */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-4 {
    margin-top: 16px;
}

.mb-4 {
    margin-bottom: 16px;
}

.p-4 {
    padding: 16px;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-4 {
    gap: 16px;
}

.w-full {
    width: 100%;
}

.hidden {
    display: none;
}