/* Custom styles for single catalog pages */
.custom-catalog-details {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* Description sections */
.catalog-description,
.catalog-description-full {
    margin: 20px 0;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.catalog-description h2,
.catalog-description-full h2 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.5em;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.description-full-content {
    line-height: 1.6;
    color: #444;
}

.description-full-content h3 {
    color: #007cba;
    margin: 20px 0 10px 0;
    font-size: 1.2em;
}

.description-full-content ul,
.description-full-content ol {
    margin: 10px 0;
    padding-left: 20px;
}

.description-full-content li {
    margin: 5px 0;
}

.description-full-content strong {
    color: #333;
    font-weight: 600;
}

.description-full-content em {
    color: #666;
    font-style: italic;
}

.description-full-content .ico {
    color: #ffa500;
    font-weight: bold;
}

/* Capability badges */
.capability-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-free {
    background: #4CAF50;
    color: white;
}

.badge-paid {
    background: #FF9800;
    color: white;
}

.badge-trial {
    background: #2196F3;
    color: white;
}

.badge-api {
    background: #9C27B0;
    color: white;
}

.badge-telegram {
    background: #0088cc;
    color: white;
}

/* Extended content sections */
.extended-content-sections {
    margin: 40px 0;
}

.extended-content-sections section {
    margin: 40px 0;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.extended-content-sections h2 {
    color: #2c5aa0;
    margin-bottom: 20px;
    font-size: 1.8em;
    border-bottom: 2px solid #2c5aa0;
    padding-bottom: 10px;
}

.extended-content-sections h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
}

/* Key Features */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 25px;
}

.features-list li:before {
    content: "✓";
    color: #2c5aa0;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.features-list li:last-child {
    border-bottom: none;
}

/* Target Audience */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.audience-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2c5aa0;
}

.audience-item h3 {
    margin-top: 0;
    color: #2c5aa0;
}

/* Pricing */
.pricing-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.pricing-item {
    padding: 30px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    background: #fff;
}

.pricing-item.free {
    border-color: #2c5aa0;
    background: #f0f8ff;
}

.price-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #2c5aa0;
    margin: 15px 0;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.pricing-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Integrations */
.integrations-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.integration-tag {
    background: #2c5aa0;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}

/* FAQ */
.faq-list {
    margin-top: 20px;
}

.faq-item {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2c5aa0;
}

.faq-item h3 {
    margin-top: 0;
    color: #2c5aa0;
}

/* Alternatives */
.alternatives-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.alternative-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.alternative-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.alternative-item h3 {
    margin-top: 0;
    color: #2c5aa0;
}

/* API Section */
.api-section {
    background: #f8f9fa;
    border-left: 4px solid #9C27B0;
}

.sdk-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.sdk-tag {
    background: #9C27B0;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: bold;
}

.integration-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.integration-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    padding-left: 20px;
}

.integration-list li:before {
    content: "→";
    color: #9C27B0;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.api-limits {
    background: #fff3cd;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #ffc107;
    margin-top: 20px;
}

/* Telegram Section */
.telegram-section {
    background: #e3f2fd;
    border-left: 4px solid #0088cc;
}

.telegram-steps {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
}

.telegram-steps li {
    counter-increment: step-counter;
    padding: 10px 0 10px 40px;
    position: relative;
    border-bottom: 1px solid #e0e0e0;
}

.telegram-steps li:before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 10px;
    background: #0088cc;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
}

.telegram-examples {
    margin: 20px 0;
}

.example-item {
    background: #f5f5f5;
    padding: 10px;
    margin: 8px 0;
    border-radius: 4px;
    font-family: monospace;
}

.example-item code {
    background: #0088cc;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
}

.telegram-limits {
    background: #fff3cd;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #ffc107;
    margin-top: 20px;
}

/* Security Section */
.security-section {
    background: #f3e5f5;
    border-left: 4px solid #4CAF50;
}

.security-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.security-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    padding-left: 25px;
}

.security-list li:before {
    content: "🔒";
    position: absolute;
    left: 0;
}

/* Limitations Section */
.limitations-section {
    background: #ffebee;
    border-left: 4px solid #f44336;
}

.limitations-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.limitations-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    padding-left: 25px;
}

.limitations-list li:before {
    content: "⚠️";
    position: absolute;
    left: 0;
}

/* Use Cases Section */
.use-cases-section {
    background: #e8f5e8;
    border-left: 4px solid #4CAF50;
}

.use-cases-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.use-case-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.use-case-item h3 {
    margin-top: 0;
    color: #4CAF50;
}

/* Pricing enhancements */
.pricing-note {
    margin-top: 15px;
    padding: 10px;
    background: #fff3cd;
    border-radius: 4px;
    border-left: 3px solid #ffc107;
}

.trial-info {
    margin-top: 20px;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 6px;
    border-left: 4px solid #2196F3;
}

.trial-info h4 {
    margin-top: 0;
    color: #2196F3;
}

/* Visual Examples Section */
.visual-examples-section {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.visual-examples-section h2 {
    color: #2c5aa0;
    margin-bottom: 20px;
    font-size: 1.8em;
    border-bottom: 2px solid #2c5aa0;
    padding-bottom: 10px;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.screenshot-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.screenshot-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.screenshot-placeholder {
    background: #f5f5f5;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px 20px;
    margin-bottom: 15px;
}

.screenshot-icon {
    font-size: 2em;
    display: block;
    margin-bottom: 10px;
}

.screenshot-description {
    color: #666;
    font-size: 0.9em;
    margin: 0;
}

/* Rating Section */
.rating-section {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #ddd;
    font-size: 1.2em;
    transition: color 0.2s ease;
}

.star.filled {
    color: #ffc107;
}

.rating-value {
    font-weight: bold;
    color: #2c5aa0;
    font-size: 1.1em;
}

.review-count {
    color: #666;
    font-size: 0.9em;
}

/* Technical Specifications */
.tech-specs {
    background: #f0f8ff;
    border-left: 4px solid #2c5aa0;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.spec-item:hover {
    background: #f8f9fa;
}

.spec-name {
    font-weight: bold;
    color: #333;
}

.spec-value {
    color: #2c5aa0;
    font-weight: 500;
}

/* Pricing FAQ */
.pricing-faq {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.pricing-faq h4 {
    margin-top: 0;
    color: #28a745;
    font-size: 1.1em;
}

.pricing-faq ul {
    margin: 10px 0;
    padding-left: 20px;
}

.pricing-faq li {
    margin-bottom: 8px;
    line-height: 1.4;
}

/* API FAQ and CTA */
.api-faq {
    margin-top: 20px;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 8px;
    border-left: 4px solid #2196F3;
}

.api-faq h4 {
    margin-top: 0;
    color: #2196F3;
    font-size: 1.1em;
}

.api-cta {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-api {
    display: inline-block;
    padding: 10px 20px;
    background: #2196F3;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.btn-api:hover {
    background: #1976D2;
    color: white;
}

/* Telegram FAQ and CTA */
.telegram-faq {
    margin-top: 20px;
    padding: 15px;
    background: #f3e5f5;
    border-radius: 8px;
    border-left: 4px solid #9c27b0;
}

.telegram-faq h4 {
    margin-top: 0;
    color: #9c27b0;
    font-size: 1.1em;
}

.telegram-cta {
    margin-top: 20px;
}

.btn-telegram {
    display: inline-block;
    padding: 12px 24px;
    background: #0088cc;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.btn-telegram:hover {
    background: #006699;
    color: white;
}

/* Trial details */
.trial-details {
    margin-top: 15px;
    padding: 15px;
    background: #fff3e0;
    border-radius: 6px;
    border-left: 4px solid #ff9800;
}

.trial-details h5 {
    margin-top: 0;
    color: #f57c00;
    font-size: 1em;
}

.trial-details ul {
    margin: 10px 0;
    padding-left: 20px;
}

.trial-details li {
    margin-bottom: 5px;
    line-height: 1.4;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 20px;
    padding: 10px 0;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    align-items: center;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: #666;
    font-weight: bold;
}

.breadcrumb-item a {
    color: #2c5aa0;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.breadcrumb-item a:hover {
    background-color: #f0f8ff;
    color: #1e3a8a;
}

.breadcrumb-item.current {
    color: #666;
    font-weight: 500;
    padding: 4px 8px;
}

/* Category chip */
.category-chip {
    margin: 10px 0 15px 0;
}

.category-link {
    display: inline-block;
    padding: 6px 12px;
    background: #e3f2fd;
    color: #2c5aa0;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #bbdefb;
}

.category-link:hover {
    background: #bbdefb;
    color: #1e3a8a;
    transform: translateY(-1px);
}

/* Internal links */
.internal-links {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2c5aa0;
}

.internal-links h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c5aa0;
    font-size: 1.2em;
}

.internal-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.internal-link {
    display: inline-block;
    padding: 10px 15px;
    background: white;
    color: #2c5aa0;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
    text-align: center;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.internal-link:hover {
    background: #e3f2fd;
    color: #1e3a8a;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .rating-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .visual-examples-section {
        padding: 20px;
        margin: 20px 0;
    }
    
    .api-cta {
        flex-direction: column;
    }
    
    .btn-api, .btn-telegram {
        text-align: center;
    }
    
    .breadcrumb-list {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }
    
    .breadcrumb-item {
        flex-shrink: 0;
    }
    
    .internal-links-grid {
        grid-template-columns: 1fr;
    }
    
    .internal-link {
        text-align: left;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .breadcrumb-item a,
    .breadcrumb-item.current {
        padding: 6px 8px;
        font-size: 13px;
    }
    
    .category-link {
        font-size: 13px;
        padding: 5px 10px;
    }
    
    .internal-link {
        font-size: 13px;
        padding: 8px 12px;
    }
}

.catalog-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.catalog-main-info h1.entry-title {
    color: #333;
    margin-bottom: 15px;
    font-size: 2.2em;
}

.entry-excerpt {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.catalog-description {
    margin: 20px 0;
}

.catalog-description h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.catalog-description p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.catalog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
    font-size: 0.9em;
}

.last-updated {
    color: #666;
    background: #e8f4f8;
    padding: 5px 10px;
    border-radius: 4px;
}

.price {
    color: #2c5aa0;
    font-weight: bold;
    background: #f0f8ff;
    padding: 5px 10px;
    border-radius: 4px;
}

.catalog-actions {
    margin: 20px 0;
}

.catalog-actions .button {
    background: #2c5aa0;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.catalog-actions .button:hover {
    background: #1e3f73;
    color: white;
}

.related-posts {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 2px solid #e0e0e0;
}

.related-posts h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.related-posts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-posts li {
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 4px;
    border-left: 4px solid #2c5aa0;
}

.related-posts li a {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: bold;
}

.related-posts li a:hover {
    text-decoration: underline;
}

.additional-related-posts {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 2px solid #e0e0e0;
}

.additional-related-posts h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.related-post-item {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.related-post-item h3 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
}

.related-post-item h3 a {
    color: #2c5aa0;
    text-decoration: none;
}

.related-post-item h3 a:hover {
    text-decoration: underline;
}

.related-post-item p {
    color: #666;
    margin: 0;
    line-height: 1.5;
    font-size: 0.9em;
}

/* LCP Image optimization */
.lcp-image-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 20px auto;
    text-align: center;
}

.lcp-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Related posts grid optimization */
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.related-post-item {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.related-post-item h3 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
}

.related-post-item h3 a {
    color: #2c5aa0;
    text-decoration: none;
}

.related-post-item h3 a:hover {
    text-decoration: underline;
}

.related-post-item p {
    color: #666;
    margin: 0 0 10px 0;
    line-height: 1.5;
    font-size: 0.9em;
}

.similarity-info {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #e0e0e0;
}

.similarity-info small {
    color: #888;
    font-size: 0.8em;
    font-style: italic;
}

/* Lazy loading for secondary images */
.related-post-item img,
.alternative-item img {
    loading: lazy;
    width: 100%;
    height: auto;
}

/* Responsive design */
@media (max-width: 768px) {
    .custom-catalog-details {
        margin: 10px 0;
        padding: 15px;
    }
    
    .catalog-main-info h1.entry-title {
        font-size: 1.8em;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .catalog-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .audience-grid,
    .alternatives-list {
        grid-template-columns: 1fr;
    }
    
    .pricing-info {
        grid-template-columns: 1fr;
    }
    
    .extended-content-sections section {
        padding: 20px;
        margin: 20px 0;
    }
}
