/* Trix editor egyedi stílusok */
trix-editor {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.75rem;
    min-height: 200px;
    background-color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    /* Biztosítjuk a visszavonás működését */
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

trix-editor:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: 0;
}

trix-toolbar {
    border: 1px solid #ced4da;
    border-bottom: none;
    border-radius: 0.375rem 0.375rem 0 0;
    background-color: #f8f9fa;
    padding: 0.5rem;
}

trix-toolbar .trix-button-group {
    margin-right: 0.5rem;
}

trix-toolbar .trix-button {
    border: 1px solid #ced4da;
    background-color: #fff;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin-right: 0.125rem;
}

trix-toolbar .trix-button:hover {
    background-color: #e9ecef;
}

trix-toolbar .trix-button.trix-active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

trix-toolbar .trix-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Trix editor tartalom stílusok - P elemekkel */
trix-editor h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

trix-editor h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

trix-editor h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

trix-editor h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

trix-editor h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

trix-editor h6 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

trix-editor p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

trix-editor ul, trix-editor ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
    line-height: 1.6;
}

trix-editor li {
    margin-bottom: 0.25rem;
}

trix-editor blockquote {
    border-left: 4px solid #dee2e6;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #6c757d;
    font-style: italic;
    line-height: 1.6;
}

trix-editor a {
    color: #007bff;
    text-decoration: underline;
}

trix-editor a:hover {
    color: #0056b3;
}

trix-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 0.25rem;
    margin: 0.5rem 0;
}

/* Szövegformázás */
trix-editor strong, trix-editor b {
    font-weight: bold;
}

trix-editor em, trix-editor i {
    font-style: italic;
}

trix-editor u {
    text-decoration: underline;
}

trix-editor s, trix-editor strike {
    text-decoration: line-through;
}

/* Igazítás - Tailwind CSS classok mip- prefixszel */
trix-editor .mip-text-left {
    text-align: left;
}

trix-editor .mip-text-center {
    text-align: center;
}

trix-editor .mip-text-right {
    text-align: right;
}

trix-editor .mip-text-justify {
    text-align: justify;
}

/* Betűméret beállítások - Tailwind CSS classok mip- prefixszel */
trix-editor .mip-text-xs {
    font-size: 0.75rem; /* 12px */
    line-height: 1rem; /* 16px */
}

trix-editor .mip-text-sm {
    font-size: 0.875rem; /* 14px */
    line-height: 1.25rem; /* 20px */
}

trix-editor .mip-text-base {
    font-size: 1rem; /* 16px */
    line-height: 1.5rem; /* 24px */
}

trix-editor .mip-text-lg {
    font-size: 1.125rem; /* 18px */
    line-height: 1.75rem; /* 28px */
}

trix-editor .mip-text-xl {
    font-size: 1.25rem; /* 20px */
    line-height: 1.75rem; /* 28px */
}

trix-editor .mip-text-2xl {
    font-size: 1.5rem; /* 24px */
    line-height: 2rem; /* 32px */
}

trix-editor .mip-text-3xl {
    font-size: 1.875rem; /* 30px */
    line-height: 2.25rem; /* 36px */
}

/* Sorok közötti távolság - Tailwind CSS classok mip- prefixszel */
trix-editor .mip-leading-tight {
    line-height: 1.25;
}

trix-editor .mip-leading-normal {
    line-height: 1.5;
}

trix-editor .mip-leading-relaxed {
    line-height: 1.625;
}

trix-editor .mip-leading-loose {
    line-height: 2;
}

/* Font súlyozás - Tailwind CSS classok mip- prefixszel */
trix-editor .mip-font-normal {
    font-weight: 400;
}

trix-editor .mip-font-medium {
    font-weight: 500;
}

trix-editor .mip-font-semibold {
    font-weight: 600;
}

trix-editor .mip-font-bold {
    font-weight: 700;
}

trix-editor .mip-font-extrabold {
    font-weight: 800;
}

/* Font stílus - Tailwind CSS classok mip- prefixszel */
trix-editor .mip-italic {
    font-style: italic;
}

trix-editor .mip-not-italic {
    font-style: normal;
}

/* Blockquote formázás article-content-en belül */
.article-content blockquote {
    padding: 1rem;
    margin: 1rem 0;
    border-left: 4px solid var(--primary);
    background-color: #f9fafb;
    border-radius: 0.375rem;
    color: var(--primary);
}

.article-content blockquote p {
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.625;
    color: var(--secondary);
    margin: 0;
}




/* Trix toolbar egyedi gombok */
.trix-button--icon-font-size .trix-button-icon {
    font-weight: bold;
    font-size: 14px;
}

.trix-button--icon-line-height .trix-button-icon {
    font-size: 12px;
    line-height: 1;
}

.trix-button--icon-align-left .trix-button-icon,
.trix-button--icon-align-center .trix-button-icon,
.trix-button--icon-align-right .trix-button-icon,
.trix-button--icon-align-justify .trix-button-icon {
    font-size: 12px;
    font-weight: bold;
}

/* Responsive design */
@media (max-width: 768px) {
    trix-toolbar {
        padding: 0.25rem;
    }
    
    trix-toolbar .trix-button {
        padding: 0.125rem 0.25rem;
        font-size: 12px;
    }
    
    trix-editor {
        padding: 0.5rem;
        min-height: 150px;
    }
}
