/**
 * Language Academy - Custom Styles
 * Refined Korean Municipal Design System
 */

/* ============================================
   FIX: Desktop browser sub-pixel rendering artifacts
   ============================================ */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   ROOT VARIABLES
   ============================================ */
:root {
    --primary-50: #fdf2f8;
    --primary-100: #fce7f3;
    --primary-200: #fbcfe8;
    --primary-300: #f9a8d4;
    --primary-400: #f472b6;
    --primary-500: #ec4899;
    --primary-600: #db2777;
    --primary-700: #be185d;
    --primary-800: #9d174d;
    --primary-900: #831843;
    
    --accent-50: #eff6ff;
    --accent-100: #dbeafe;
    --accent-200: #bfdbfe;
    --accent-300: #93c5fd;
    --accent-400: #60a5fa;
    --accent-500: #3b82f6;
    --accent-600: #2563eb;
    
    --surface: #FAFBFC;
}

/* ============================================
   BASE STYLES
   ============================================ */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
}

/* ============================================
   DECORATIVE ELEMENTS
   ============================================ */
/* Removed petal animation - using cleaner design */

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* ============================================
   LINE CLAMP UTILITIES
   ============================================ */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   BLOG CONTENT STYLES
   ============================================ */
.prose-sakura {
    line-height: 1.8;
}

.prose-sakura a {
    color: var(--sakura-500);
    text-decoration: underline;
}

.prose-sakura a:hover {
    color: var(--sakura-600);
}

.prose-sakura h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose-sakura h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose-sakura p {
    margin-bottom: 1rem;
}

.prose-sakura ul, .prose-sakura ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.prose-sakura li {
    margin-bottom: 0.5rem;
}

.prose-sakura blockquote {
    border-left: 4px solid var(--sakura-500);
    padding-left: 1rem;
    font-style: italic;
    color: #666;
    margin: 1.5rem 0;
}

.prose-sakura img {
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.prose-sakura code {
    background: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.prose-sakura pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.prose-sakura pre code {
    background: transparent;
    padding: 0;
}

/* ============================================
   VOCABULARY BOX (for language learning posts)
   ============================================ */
.vocab-box {
    background: #EFF6FF;
    border-left: 4px solid #3B82F6;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
}

.vocab-box .word {
    font-weight: 700;
    color: #1D4ED8;
}

.vocab-box .pronunciation {
    color: #6B7280;
    font-style: italic;
}

.vocab-box .meaning {
    margin-top: 0.5rem;
}

/* ============================================
   GRAMMAR BOX
   ============================================ */
.grammar-box {
    background: #F5F3FF;
    border-left: 4px solid #8B5CF6;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
}

.grammar-box h4 {
    font-weight: 700;
    color: #6D28D9;
    margin-bottom: 0.5rem;
}

/* ============================================
   CTA BOX
   ============================================ */
.cta-box {
    background: var(--sakura-50);
    border: 1px solid var(--sakura-200);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0.75rem;
    text-align: center;
}

.cta-box .cta-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: var(--sakura-500);
    color: white;
    border-radius: 9999px;
    font-weight: 500;
    margin-top: 0.75rem;
    text-decoration: none;
    transition: background 0.2s;
}

.cta-box .cta-button:hover {
    background: var(--sakura-600);
}

/* ============================================
   ADMIN TABLE STYLES
   ============================================ */
.admin-table {
    width: 100%;
    font-size: 0.875rem;
    text-align: left;
}

.admin-table th {
    padding: 0.75rem 1rem;
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.admin-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.admin-table tr:hover td {
    background: #f9fafb;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--sakura-500);
    box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.1);
}

.form-error {
    font-size: 0.875rem;
    color: #DC2626;
    margin-top: 0.25rem;
}

.form-hint {
    font-size: 0.75rem;
    color: #6B7280;
    margin-top: 0.25rem;
}

/* ============================================
   BUTTON STYLES
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 9999px;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: var(--sakura-500);
    color: white;
    box-shadow: 0 4px 14px rgba(233, 30, 140, 0.3);
}

.btn-primary:hover {
    background: var(--sakura-600);
}

.btn-secondary {
    background: transparent;
    color: var(--sakura-500);
    border: 2px solid var(--sakura-500);
}

.btn-secondary:hover {
    background: var(--sakura-50);
}

.btn-outline {
    background: transparent;
    color: #374151;
    border: 2px solid #d1d5db;
}

.btn-outline:hover {
    background: #f9fafb;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ============================================
   BADGE STYLES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background: #D1FAE5;
    color: #065F46;
}

.badge-warning {
    background: #FEF3C7;
    color: #92400E;
}

.badge-danger {
    background: #FEE2E2;
    color: #991B1B;
}

.badge-info {
    background: #DBEAFE;
    color: #1E40AF;
}

.badge-sakura {
    background: var(--sakura-100);
    color: var(--sakura-700);
}

/* ============================================
   CARD STYLES
   ============================================ */
.card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    overflow: hidden;
}

.card-hover {
    transition: box-shadow 0.2s;
}

.card-hover:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f4f6;
    border-top-color: var(--sakura-500);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   TRANSITIONS
   ============================================ */
.transition-all {
    transition: all 0.2s ease;
}

.transition-colors {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* ============================================
   MOBILE SHELL NAVIGATION
   ============================================ */
body.mobile-menu-open {
    overflow: hidden;
}

.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(17, 24, 39, 0.48);
    opacity: 0;
    transition: opacity 240ms cubic-bezier(0.32, 0.72, 0, 1);
}

.mobile-menu-backdrop.is-open {
    opacity: 1;
}

.mobile-menu-drawer {
    --mobile-menu-ease: cubic-bezier(0.32, 0.72, 0, 1);
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: flex;
    width: min(22rem, calc(100vw - 2rem));
    max-width: 100%;
    flex-direction: column;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
    box-shadow: -16px 0 40px rgba(15, 23, 42, 0.18);
    transform: translateX(100%);
    transition: transform 320ms var(--mobile-menu-ease);
    will-change: transform;
}

.mobile-menu-drawer.is-open {
    transform: translateX(0);
}

.mobile-menu-drawer.is-closing {
    transform: translateX(100%);
}

.mobile-menu-drawer .mobile-menu-items {
    overflow-x: hidden;
    overscroll-behavior: contain;
}

.mobile-menu-item {
    opacity: 0;
    transform: translate3d(16px, 0, 0);
    transition:
        opacity 320ms var(--mobile-menu-ease),
        transform 520ms var(--mobile-menu-ease);
    transition-delay: 0ms;
    backface-visibility: hidden;
    will-change: opacity, transform;
}

.mobile-menu-drawer.is-open .mobile-menu-item {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition-delay: var(--menu-open-delay, 80ms);
}

.mobile-menu-drawer.is-closing .mobile-menu-item {
    opacity: 0;
    transform: translate3d(10px, 0, 0);
    transition-duration: 220ms, 300ms;
    transition-delay: var(--menu-close-delay, 0ms);
}

.mobile-accordion .accordion-content {
    display: none;
}

.mobile-accordion.is-open .accordion-content {
    display: block;
}

.mobile-accordion.is-open .accordion-icon {
    transform: rotate(180deg);
}

.mobile-cta-bar {
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
}

@media (min-width: 1024px) {
    .mobile-menu-backdrop,
    .mobile-menu-drawer {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-menu-backdrop,
    .mobile-menu-drawer,
    .mobile-menu-item {
        transition: none;
    }

    .mobile-menu-item,
    .mobile-menu-drawer.is-open .mobile-menu-item,
    .mobile-menu-drawer.is-closing .mobile-menu-item {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   KOREAN MUNICIPAL STYLE - HERO SECTION
   ============================================ */
.hero-gradient {
    background: linear-gradient(180deg, #E8F5E9 0%, #FCE4EC 30%, #F3E5F5 60%, #E1F5FE 100%);
    position: relative;
    overflow: hidden;
}

/* hero-gradient and hero-wave styles removed - not in use and can cause rendering artifacts */

.hero-search-box {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.hero-search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.hero-search-input:focus {
    outline: none;
    border-color: var(--sakura-500);
}

/* ============================================
   QUICK LINKS GRID (Icon Services)
   ============================================ */
.quick-links-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #f1f5f9;
}

.quick-link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--sakura-200);
}

.quick-link-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.quick-link-icon.pink { background: #FCE4EC; }
.quick-link-icon.blue { background: #E3F2FD; }
.quick-link-icon.green { background: #E8F5E9; }
.quick-link-icon.purple { background: #F3E5F5; }
.quick-link-icon.orange { background: #FFF3E0; }
.quick-link-icon.cyan { background: #E0F7FA; }

.quick-link-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.875rem;
    text-align: center;
}

.quick-link-subtitle {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* ============================================
   NEWS GRID (Date-based cards)
   ============================================ */
.news-card {
    display: flex;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    transition: all 0.2s;
}

.news-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.news-date {
    flex-shrink: 0;
    width: 70px;
    padding: 1rem;
    background: var(--sakura-500);
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-date .day {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.news-date .month {
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.news-content {
    flex: 1;
    padding: 1rem;
}

.news-title {
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.news-excerpt {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

/* ============================================
   GRADIENT BLUE SECTION (Bottom)
   ============================================ */
/* gradient-blue-section styles removed - not in use and can cause rendering artifacts */

/* ============================================
   ANNOUNCEMENT BANNER
   ============================================ */
.announcement-banner {
    background: linear-gradient(90deg, #FFF9C4, #FFECB3);
    border-left: 4px solid #FFC107;
    padding: 1rem 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
    display: flex;
    align-items: center;
}

.announcement-banner .icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.announcement-banner .text {
    flex: 1;
    font-weight: 500;
    color: #78350F;
}

/* ============================================
   STATS COUNTER
   ============================================ */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--sakura-500);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* ============================================
   PROGRAM CARDS (Colorful)
   ============================================ */
.program-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.program-card-gradient {
    padding: 2rem;
    color: white;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.program-card-gradient.english { background: linear-gradient(180deg, #1976D2, #42A5F5); }
.program-card-gradient.japanese { background: linear-gradient(180deg, #D32F2F, #EF5350); }
.program-card-gradient.chinese { background: linear-gradient(180deg, #FFA000, #FFCA28); }
.program-card-gradient.ielts { background: linear-gradient(180deg, #7B1FA2, #BA68C8); }
.program-card-gradient.kids { background: linear-gradient(180deg, #388E3C, #66BB6A); }
.program-card-gradient.vietnamese { background: linear-gradient(180deg, #E91E8C, #F48FB1); }

.program-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.program-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.program-card-desc {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* ============================================
   FLOATING DECORATIONS
   ============================================ */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    pointer-events: none;
}

.floating-shape.pink {
    background: radial-gradient(circle, rgba(233, 30, 140, 0.3), transparent 70%);
}

.floating-shape.blue {
    background: radial-gradient(circle, rgba(79, 195, 247, 0.3), transparent 70%);
}

.floating-shape.green {
    background: radial-gradient(circle, rgba(129, 199, 132, 0.3), transparent 70%);
}

/* ============================================
   SWIPER CUSTOM STYLES
   ============================================ */
.swiper-pagination-bullet-active {
    background: var(--sakura-500) !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--sakura-500) !important;
}

/* ============================================
   TAB NAVIGATION
   ============================================ */
.tab-nav {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.tab-nav-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-nav-item:hover {
    color: var(--sakura-500);
}

.tab-nav-item.active {
    color: var(--sakura-500);
    border-bottom-color: var(--sakura-500);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--sakura-500);
    border-radius: 2px;
    margin-right: 0.75rem;
}

.section-link {
    font-size: 0.875rem;
    color: var(--sakura-500);
    font-weight: 500;
    display: flex;
    align-items: center;
}

.section-link:hover {
    text-decoration: underline;
}

/* ============================================
   FRONTEND BLOG/CONTENT PROSE STYLES
   ============================================ */
.prose {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
}

.prose h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    border-bottom: 2px solid var(--primary-500);
    padding-bottom: 0.5rem;
}

.prose h2 {
    font-size: 1.625rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.prose h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.prose h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #4b5563;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.prose p {
    margin-bottom: 1.25rem;
    color: #4b5563;
}

.prose strong {
    font-weight: 700;
    color: #1f2937;
}

.prose em {
    font-style: italic;
    color: #4b5563;
}

.prose a {
    color: var(--primary-600);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.prose a:hover {
    color: var(--primary-700);
}

.prose .prose-btn {
    --btn-bg: var(--primary-600);
    --btn-text: #ffffff;
    --btn-border: var(--primary-600);
    --btn-hover-bg: var(--btn-bg);
    --btn-hover-text: var(--btn-text);
    --btn-hover-border: var(--btn-border);
    --btn-shadow: rgba(15, 23, 42, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0.25rem 0.5rem 0.25rem 0;
    border: 1px solid var(--btn-border);
    background: var(--btn-bg);
    color: var(--btn-text) !important;
    text-decoration: none !important;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 1px 2px var(--btn-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.prose .prose-btn:hover {
    text-decoration: none !important;
    background: var(--btn-hover-bg);
    color: var(--btn-hover-text) !important;
    border-color: var(--btn-hover-border);
}

.prose .prose-btn--hover-lift:hover,
.prose .prose-btn:not([class*="prose-btn--hover-"]):hover {
    transform: translateY(-2px);
    filter: brightness(1.04) saturate(1.05);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.prose .prose-btn--hover-zoom:hover {
    transform: scale(1.04);
    filter: brightness(1.03);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.prose .prose-btn--hover-glow:hover {
    transform: none;
    filter: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--btn-hover-border) 35%, transparent), 0 10px 24px rgba(15, 23, 42, 0.18);
}

.prose .prose-btn--hover-none:hover {
    transform: none;
    filter: none;
    box-shadow: 0 1px 2px var(--btn-shadow);
}

.prose .prose-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.16);
}

.prose .prose-btn:focus-visible {
    outline: 2px solid var(--btn-border);
    outline-offset: 2px;
}

.prose .prose-btn--primary {
    --btn-bg: var(--primary-600);
    --btn-text: #ffffff;
    --btn-border: var(--primary-600);
}

.prose .prose-btn--outline {
    --btn-bg: transparent;
    --btn-text: var(--primary-700);
    --btn-border: var(--primary-500);
}

.prose .prose-btn--soft {
    --btn-bg: var(--primary-100);
    --btn-text: var(--primary-700);
    --btn-border: var(--primary-200);
}

.prose .prose-btn--dark {
    --btn-bg: #111827;
    --btn-text: #f9fafb;
    --btn-border: #111827;
}

.prose .prose-btn--success {
    --btn-bg: #16a34a;
    --btn-text: #ffffff;
    --btn-border: #16a34a;
}

.prose .prose-btn--sm {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
}

.prose .prose-btn--md {
    padding: 0.65rem 1.05rem;
    font-size: 0.9rem;
}

.prose .prose-btn--lg {
    padding: 0.85rem 1.3rem;
    font-size: 1rem;
}

.prose .prose-btn--square {
    border-radius: 0;
}

.prose .prose-btn--rounded {
    border-radius: 0.5rem;
}

.prose .prose-btn--pill {
    border-radius: 999px;
}

.prose .prose-btn--align-left {
    margin-right: auto;
}

.prose .prose-btn--align-center {
    display: flex;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.prose .prose-btn--align-right {
    display: flex;
    width: fit-content;
    margin-left: auto;
    margin-right: 0;
}

.prose .prose-btn--align-full {
    display: flex;
    width: 100%;
}

.prose .md-form-embed {
    margin: 2rem 0;
}

.prose .md-form-embed p {
    margin-bottom: 0;
}

.prose .md-form-embed .embedded-form-instance {
    width: 100%;
}

.prose .md-form-embed .embedded-form-field {
    min-width: 0;
}

.prose .md-form-embed .embedded-form-field input,
.prose .md-form-embed .embedded-form-field textarea,
.prose .md-form-embed .embedded-form-field select {
    font-size: 0.95rem;
}

.prose .md-form-embed .embedded-form-field.hidden {
    display: none;
}

.prose .md-form-embed .embedded-file-dropzone {
    border-color: #d1d5db;
}

.prose .md-form-embed .embedded-file-dropzone:hover {
    border-color: var(--primary-400);
}

@media (max-width: 768px) {
    .prose .md-form-embed {
        margin: 1.5rem 0;
    }

    .prose .md-form-embed .embedded-form-field {
        grid-column: span 1 / span 1 !important;
    }

    .prose .md-form-embed [data-embed-submit] {
        width: 100%;
    }
}

.prose ul, .prose ol {
    margin: 1.25rem 0;
    padding-left: 1.75rem;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
    color: #4b5563;
}

.prose li::marker {
    color: var(--primary-500);
}

.prose blockquote {
    border-left: 4px solid var(--primary-500);
    background: var(--primary-50);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: #6b7280;
}

.prose blockquote p {
    margin-bottom: 0;
}

.prose code {
    background: #f3f4f6;
    color: #dc2626;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
}

.prose pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 1.25rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.prose pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

.prose img {
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    max-width: 100%;
    height: auto;
    box-shadow: none !important;
    background: transparent;
}

.prose hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 2rem 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.prose th, .prose td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
    text-align: left;
}

.prose th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.prose tr:hover td {
    background: #f9fafb;
}

/* First element shouldn't have top margin */
.prose > *:first-child {
    margin-top: 0;
}

/* Last element shouldn't have bottom margin */
.prose > *:last-child {
    margin-bottom: 0;
}

/* ============================================
   EASYMDE EDITOR FIXES (Admin)
   ============================================ */
.EasyMDEContainer .editor-toolbar button {
    color: #374151 !important;
}

.EasyMDEContainer .editor-toolbar button:hover {
    background: #f3f4f6;
    color: #1f2937 !important;
}

.EasyMDEContainer .editor-toolbar button.active {
    background: #e5e7eb;
    color: #1f2937 !important;
}

.EasyMDEContainer .editor-toolbar i.separator {
    border-left-color: #d1d5db;
    border-right-color: #d1d5db;
}
