/* assets/css/main.css */
body {
    -webkit-font-smoothing: antialiased;
}

/* Hide scrollbars but keep functionality */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Notion-like interactive elements */
.slash-item {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.slash-item:hover {
    background: #f1f1ef;
    transform: translateX(4px);
}

.notion-file-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(0,0,0,0.1);
}

/* Typography & Layout */
textarea {
    resize: none;
    line-height: 1.8;
    transition: height 0.1s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
}

#note-title {
    letter-spacing: -0.02em;
    color: #37352f;
}

#note-title::placeholder {
    color: #e9e9e8;
}

/* Markdown prose overrides for Notion feel */
.prose h1 { margin-top: 1.5em; margin-bottom: 0.5em; font-weight: 800; color: #37352f; border-bottom: 1px solid #f1f1ef; padding-bottom: 0.3em; letter-spacing: -0.02em; }
.prose h2 { margin-top: 1.2em; margin-bottom: 0.4em; font-weight: 700; color: #37352f; letter-spacing: -0.01em; }
.prose p { margin-top: 0.8em; margin-bottom: 0.8em; line-height: 1.8; color: #37352f; }
.prose blockquote { border-left-width: 3px; border-left-color: #f1f1ef; font-style: normal; color: #9ca3af; font-size: 0.95em; padding-left: 1.5em; }
.prose a { color: #2383e2; text-decoration: none; font-weight: 500; }
.prose a:hover { text-decoration: underline; background: rgba(35, 131, 226, 0.05); border-radius: 3px; }

/* Notion Callouts */
.notion-callout { display: flex; gap: 12px; padding: 16px; border-radius: 10px; margin: 16px 0; border: 1px solid transparent; }
.callout-info { background: #f1f6fb; border-color: #d1e3f6; color: #1e3a8a; }
.callout-warning { background: #fffbeb; border-color: #fef3c7; color: #92400e; }
.callout-tip { background: #f0fdf4; border-color: #dcfce7; color: #166534; }

/* Notion Toggle */
.notion-toggle { margin: 8px 0; }
.notion-toggle summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 8px; color: #37352f; }
.notion-toggle summary::before { content: '▶'; font-size: 10px; transition: transform 0.2s; color: #9ca3af; }
.notion-toggle[open] summary::before { transform: rotate(90deg); }
.notion-toggle-content { padding-left: 24px; margin-top: 4px; border-left: 2px solid #f1f1ef; }

/* Colors */
.text-red { color: #eb5757; }
.text-blue { color: #2383e2; }
.text-green { color: #0f7a40; }
.bg-yellow-highlight { background: #fff5c2; padding: 0 4px; border-radius: 3px; }

/* Table styling */
.prose table { border-collapse: collapse; width: 100%; margin: 24px 0; border: 1px solid #f1f1ef; }
.prose th { background: #f7f7f5; padding: 10px; border: 1px solid #f1f1ef; text-align: left; font-size: 13px; }
.prose td { padding: 10px; border: 1px solid #f1f1ef; font-size: 14px; }

/* Image upload styling */
.prose img {
    border-radius: 12px;
    margin: 24px auto;
    max-width: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f1f1ef;
}

/* Safe areas for mobile notched phones */
.safe-bottom {
    padding-bottom: env(safe-area-inset-bottom, 12px);
}
