/* TinyMCE Content CSS for Hub of Flowers */
/* This file is used both for content display and as content_css in TinyMCE editor */

/* Import Font Awesome first to prevent conflicts */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css');

/* Import Prompt font directly for TinyMCE */
@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Force font loading to complete before display */
body.mce-content-body,
body.tinymce,
body,
html {
    font-display: swap;
    font-family: 'Prompt', Arial, Helvetica, Verdana, sans-serif !important;
}

/* Override all elements */
body.mce-content-body *,
body.tinymce *,
body *,
html * {
    font-family: 'Prompt', Arial, Helvetica, Verdana, sans-serif !important;
}

body.mce-content-body,
body.tinymce,
.tinymce-container {
    font-family: 'Prompt', Arial, Helvetica, Verdana, sans-serif !important;
    line-height: 1.6;
    color: #374151;
    max-width: none;
    word-wrap: break-word;
}

/* Headings */
body.mce-content-body h1,
body.mce-content-body h2,
body.mce-content-body h3,
body.mce-content-body h4,
body.mce-content-body h5,
body.mce-content-body h6,
body.tinymce h1,
body.tinymce h2,
body.tinymce h3,
body.tinymce h4,
body.tinymce h5,
body.tinymce h6,
.tinymce-container h1,
.tinymce-container h2,
.tinymce-container h3,
.tinymce-container h4,
.tinymce-container h5,
.tinymce-container h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.25;
    color: #1f2937;
}

body.mce-content-body h1,
body.tinymce h1,
.tinymce-container h1 {
    font-size: 2.25rem;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

body.mce-content-body h2,
body.tinymce h2,
.tinymce-container h2 {
    font-size: 1.875rem;
    padding-bottom: 0.25rem;
}

body.mce-content-body h3,
body.tinymce h3,
.tinymce-container h3 {
    font-size: 1.5rem;
}

body.mce-content-body h4,
body.tinymce h4,
.tinymce-container h4 {
    font-size: 1.25rem;
}

body.mce-content-body h5,
body.tinymce h5,
.tinymce-container h5 {
    font-size: 1.125rem;
}

body.mce-content-body h6,
body.tinymce h6,
.tinymce-container h6 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Paragraphs */
body.mce-content-body p,
body.tinymce p,
.tinymce-container p {
    margin-bottom: 1rem;
    text-align: justify;
}

body.mce-content-body p:last-child,
body.tinymce p:last-child,
.tinymce-container p:last-child {
    margin-bottom: 0;
}

/* Links */
body.mce-content-body a,
body.tinymce a,
.tinymce-container a {
    color: #059669;
    text-decoration: underline;
    text-decoration-color: #a7f3d0;
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

body.mce-content-body a:hover,
body.tinymce a:hover,
.tinymce-container a:hover {
    color: #047857;
    text-decoration-color: #6ee7b7;
    text-decoration-thickness: 2px;
}

/* Lists */
body.mce-content-body ul,
body.mce-content-body ol,
body.tinymce ul,
body.tinymce ol,
.tinymce-container ul,
.tinymce-container ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

body.mce-content-body ul li,
body.tinymce ul li,
.tinymce-container ul li {
    list-style-type: none;
    position: relative;
    margin-bottom: 0.5rem;
}

body.mce-content-body ul li::before,
body.tinymce ul li::before,
.tinymce-container ul li::before {
    content: "🌿";
    position: absolute;
    left: -1.5rem;
    top: 0;
}

body.mce-content-body ol li,
body.tinymce ol li,
.tinymce-container ol li {
    margin-bottom: 0.5rem;
    list-style-type: decimal;
    list-style-position: outside;
}

body.mce-content-body ol li::marker,
body.tinymce ol li::marker,
.tinymce-container ol li::marker {
    color: #059669;
    font-weight: 600;
}

/* Blockquotes */
body.mce-content-body blockquote,
body.tinymce blockquote,
.tinymce-container blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-left: 4px solid #10b981;
    border-radius: 0.5rem;
    font-style: italic;
    position: relative;
}

body.mce-content-body blockquote::before,
body.tinymce blockquote::before,
.tinymce-container blockquote::before {
    content: "";
    font-size: 3rem;
    color: #10b981;
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    opacity: 0.3;
}

/* Tables */
body.mce-content-body table,
body.tinymce table,
.tinymce-container table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body.mce-content-body table th,
body.mce-content-body table td,
body.tinymce table th,
body.tinymce table td,
.tinymce-container table th,
.tinymce-container table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

body.mce-content-body table th,
body.tinymce table th,
.tinymce-container table th {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

/* Images */
body.mce-content-body img,
body.tinymce img,
.tinymce-container img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
}

/* Strong and Emphasis */
body.mce-content-body strong,
body.mce-content-body b,
body.tinymce strong,
body.tinymce b,
.tinymce-container strong,
.tinymce-container b {
    font-weight: 700;
    color: #1f2937;
}

body.mce-content-body em,
body.mce-content-body i,
body.tinymce em,
body.tinymce i,
.tinymce-container em,
.tinymce-container i {
    font-style: italic;
    color: #374151;
}

/* Code */
body.mce-content-body code,
body.tinymce code,
.tinymce-container code {
    background-color: #f3f4f6;
    color: #e11d48;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

body.mce-content-body pre,
body.tinymce pre,
.tinymce-container pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1rem 0;
}

/* Text alignment utilities */
body.mce-content-body .text-left,
body.tinymce .text-left,
.tinymce-container .text-left {
    text-align: left;
}

body.mce-content-body .text-center,
body.tinymce .text-center,
.tinymce-container .text-center {
    text-align: center;
}

body.mce-content-body .text-right,
body.tinymce .text-right,
.tinymce-container .text-right {
    text-align: right;
}

body.mce-content-body .text-justify,
body.tinymce .text-justify,
.tinymce-container .text-justify {
    text-align: justify;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body.mce-content-body,
    body.tinymce,
    .tinymce-container {
        font-size: 0.875rem;
    }
    
    body.mce-content-body h1,
    body.tinymce h1,
    .tinymce-container h1 {
        font-size: 1.875rem;
    }
    
    body.mce-content-body h2,
    body.tinymce h2,
    .tinymce-container h2 {
        font-size: 1.5rem;
    }
    
    body.mce-content-body h3,
    body.tinymce h3,
    .tinymce-container h3 {
        font-size: 1.25rem;
    }
}