/**
 * Style dla bloku opisu taksonomii.
 *
 * @package Branch_Directory
 * @since 1.8.3
 */

.taxonomy-description-block {
    margin-bottom: 30px;
}

.taxonomy-description-block-empty {
    padding: 20px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 30px;
    color: #666;
}

.taxonomy-description-title {
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.taxonomy-description-content {
    line-height: 1.6;
    color: #555;
}

.taxonomy-description-content p {
    margin-bottom: 15px;
}

.taxonomy-description-content p:last-child {
    margin-bottom: 0;
}

.taxonomy-description-content h1,
.taxonomy-description-content h2,
.taxonomy-description-content h3,
.taxonomy-description-content h4,
.taxonomy-description-content h5,
.taxonomy-description-content h6 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: #333;
}

.taxonomy-description-content h1:first-child,
.taxonomy-description-content h2:first-child,
.taxonomy-description-content h3:first-child,
.taxonomy-description-content h4:first-child,
.taxonomy-description-content h5:first-child,
.taxonomy-description-content h6:first-child {
    margin-top: 0;
}

.taxonomy-description-content ul,
.taxonomy-description-content ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.taxonomy-description-content li {
    margin-bottom: 5px;
}

.taxonomy-description-content blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    background-color: #f9f9f9;
    border-left: 4px solid #ddd;
    font-style: italic;
}

.taxonomy-description-content a {
    color: #0073aa;
    text-decoration: none;
}

.taxonomy-description-content a:hover {
    text-decoration: underline;
}

.taxonomy-description-content strong {
    font-weight: 600;
}

.taxonomy-description-content em {
    font-style: italic;
}

/* Wyrównanie tekstu */
.taxonomy-description-block.has-text-align-left {
    text-align: left;
}

.taxonomy-description-block.has-text-align-center {
    text-align: center;
}

.taxonomy-description-block.has-text-align-right {
    text-align: right;
}

.taxonomy-description-block.has-text-align-justify {
    text-align: justify;
}

/* Responsywność */
@media (max-width: 768px) {
    .taxonomy-description-block {
        margin-bottom: 20px;
    }
    
    .taxonomy-description-title {
        font-size: 1.2em;
        margin-bottom: 10px;
    }
    
    .taxonomy-description-content {
        font-size: 14px;
    }
}

/* Podgląd w edytorze */
.taxonomy-description-preview {
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    text-align: center;
    background-color: #fafafa;
}

.taxonomy-description-preview .dashicons {
    color: #666;
    margin-bottom: 10px;
}

.taxonomy-description-preview h3 {
    color: #333;
    font-size: 18px;
    margin: 0 0 10px 0;
}

.taxonomy-description-preview p {
    color: #666;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}
