/**
 * Smort SEO Setup - Frontend Styles
 * Styles for generated category content and AI-optimized text
 */

:root {
    --smort-text: #192214;
    --smort-text-muted: #56644a;
    --smort-primary: #b9e953;
    --smort-primary-strong: #9fd63d;
    --smort-secondary: #21301d;
    --smort-border: #000000;
}

/* Category archive description (AI-generated content) */
.woocommerce-products-header .page-title,
.woocommerce .page-title {
    margin-bottom: 24px;
}

/* Smort category content container */
.smort-category-content,
.smort-category-content-wrap {
    max-width: 100%;
    margin: 28px 0;
    padding: 24px;
    background: #fafbf8;
    border: 1px solid var(--smort-border);
    border-radius: 12px;
    line-height: 1.7;
    color: var(--smort-text);
}

.smort-category-content {
    padding: 0;
    background: transparent;
    border: none;
}

/* Headers in AI-generated content */
.smort-category-content h2,
.smort-category-content-wrap h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--smort-secondary);
    margin-top: 32px;
    margin-bottom: 16px;
    line-height: 1.3;
    border-bottom: 2px solid #000000;
    padding-bottom: 10px;
}

.smort-category-content h2:first-child,
.smort-category-content-wrap h2:first-child {
    margin-top: 0;
}

.smort-category-content h3,
.smort-category-content-wrap h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--smort-secondary);
    margin-top: 24px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.smort-category-content h4,
.smort-category-content-wrap h4 {
    font-size: 16px;
    font-weight: 600;
    color: #314227;
    margin-top: 18px;
    margin-bottom: 10px;
}

/* Paragraphs */
.smort-category-content p,
.smort-category-content-wrap p {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--smort-text);
}

.smort-category-content p:last-child,
.smort-category-content-wrap p:last-child {
    margin-bottom: 0;
}

/* Lists */
.smort-category-content ul,
.smort-category-content ol,
.smort-category-content-wrap ul,
.smort-category-content-wrap ol {
    margin: 16px 0 20px 24px;
    line-height: 1.8;
}

.smort-category-content li,
.smort-category-content-wrap li {
    margin-bottom: 10px;
    color: var(--smort-text);
    font-size: 15px;
}

.smort-category-content ol {
    list-style-type: decimal;
}

.smort-category-content ul {
    list-style-type: disc;
}

/* Bold text (important terms) */
.smort-category-content strong,
.smort-category-content b,
.smort-category-content-wrap strong,
.smort-category-content-wrap b {
    font-weight: 700;
    color: var(--smort-secondary);
}

/* Links in content */
.smort-category-content a,
.smort-category-content-wrap a {
    color: #2f6fed;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.smort-category-content a:hover,
.smort-category-content-wrap a:hover {
    color: #0f3f90;
    border-bottom-color: #2f6fed;
}

/* Emphasis (italics) */
.smort-category-content em,
.smort-category-content i,
.smort-category-content-wrap em,
.smort-category-content-wrap i {
    font-style: italic;
    color: var(--smort-text-muted);
}

/* Code blocks (if any) */
.smort-category-content code,
.smort-category-content pre,
.smort-category-content-wrap code,
.smort-category-content-wrap pre {
    background: #f0f5eb;
    border: 1px solid #000000;
    border-radius: 6px;
    padding: 12px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    overflow-x: auto;
}

/* Blockquote styling */
.smort-category-content blockquote,
.smort-category-content-wrap blockquote {
    border-left: 4px solid #000000;
    padding: 16px 20px;
    margin: 20px 0;
    background: #f8fcef;
    font-style: italic;
    color: var(--smort-text-muted);
    border-radius: 4px;
}

/* Related links/hub section */
.smort-hub-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--smort-secondary);
    margin: 24px 0 16px;
    border-bottom: 2px solid #000000;
    padding-bottom: 8px;
}

.smort-hub-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

.smort-hub-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: #fafbf8;
    border: 1px solid #000000;
    border-radius: 8px;
    text-decoration: none;
    color: var(--smort-text);
    transition: all 0.2s ease;
}

.smort-hub-link:hover {
    background: #f0f5eb;
    border-color: #000000;
    transform: translateX(4px);
}

.smort-hub-link-name {
    font-weight: 600;
    color: var(--smort-secondary);
    flex: 1;
}

.smort-hub-link-meta {
    font-size: 13px;
    color: var(--smort-text-muted);
    white-space: nowrap;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .smort-category-content,
    .smort-category-content-wrap {
        padding: 16px;
        margin: 20px 0;
    }

    .smort-category-content h2,
    .smort-category-content-wrap h2 {
        font-size: 20px;
        margin-top: 24px;
        margin-bottom: 14px;
    }

    .smort-category-content h3,
    .smort-category-content-wrap h3 {
        font-size: 16px;
        margin-top: 18px;
    }

    .smort-category-content ul,
    .smort-category-content ol,
    .smort-category-content-wrap ul,
    .smort-category-content-wrap ol {
        margin-left: 16px;
    }

    .smort-hub-link {
        flex-direction: column;
        align-items: flex-start;
    }

    .smort-hub-link-meta {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .smort-category-content,
    .smort-category-content-wrap {
        padding: 12px;
    }

    .smort-category-content h2,
    .smort-category-content-wrap h2 {
        font-size: 18px;
    }

    .smort-category-content p,
    .smort-category-content-wrap p {
        font-size: 14px;
    }
}
