/* WP SEO Schema Plugin - Frontend Styles */

/* FAQ Schema Styling */
.wp-seo-schema-faq {
    margin: 20px 0;
}

.wp-seo-schema-faq-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.wp-seo-schema-faq-question {
    background: #f9f9f9;
    padding: 15px;
    margin: 0;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    border-bottom: 1px solid #ddd;
}

.wp-seo-schema-faq-question:hover {
    background: #f0f0f0;
}

.wp-seo-schema-faq-question::after {
    content: '+';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    transition: transform 0.3s;
}

.wp-seo-schema-faq-question.active::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.wp-seo-schema-faq-answer {
    padding: 15px;
    display: none;
    background: #fff;
}

.wp-seo-schema-faq-answer.active {
    display: block;
}

/* Recipe Schema Styling */
.wp-seo-schema-recipe {
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.wp-seo-schema-recipe-header {
    background: #f9f9f9;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.wp-seo-schema-recipe-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
}

.wp-seo-schema-recipe-meta {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.wp-seo-schema-recipe-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
}

.wp-seo-schema-recipe-meta-item strong {
    color: #333;
}

.wp-seo-schema-recipe-content {
    padding: 20px;
}

.wp-seo-schema-recipe-section {
    margin-bottom: 25px;
}

.wp-seo-schema-recipe-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 5px;
}

.wp-seo-schema-recipe-ingredients,
.wp-seo-schema-recipe-instructions {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wp-seo-schema-recipe-ingredients li,
.wp-seo-schema-recipe-instructions li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.wp-seo-schema-recipe-ingredients li::before {
    content: '•';
    color: #0073aa;
    font-weight: bold;
    margin-right: 8px;
}

.wp-seo-schema-recipe-instructions li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 30px;
}

.wp-seo-schema-recipe-instructions li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 8px;
    background: #0073aa;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.wp-seo-schema-recipe-instructions {
    counter-reset: step-counter;
}

/* Review Schema Styling */
.wp-seo-schema-review {
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    background: #f9f9f9;
}

.wp-seo-schema-review-header {
    margin-bottom: 15px;
}

.wp-seo-schema-review-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #333;
}

.wp-seo-schema-review-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.wp-seo-schema-review-stars {
    display: flex;
    gap: 2px;
}

.wp-seo-schema-review-star {
    color: #ffc107;
    font-size: 18px;
}

.wp-seo-schema-review-star.empty {
    color: #ddd;
}

.wp-seo-schema-review-score {
    font-weight: bold;
    color: #333;
}

.wp-seo-schema-review-item {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
}

/* Breadcrumb Schema Styling */
.wp-seo-schema-breadcrumb {
    margin: 10px 0;
    padding: 10px 0;
    font-size: 14px;
    color: #666;
}

.wp-seo-schema-breadcrumb-item {
    display: inline;
}

.wp-seo-schema-breadcrumb-item:not(:last-child)::after {
    content: ' › ';
    margin: 0 5px;
}

.wp-seo-schema-breadcrumb-item a {
    color: #0073aa;
    text-decoration: none;
}

.wp-seo-schema-breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wp-seo-schema-recipe-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .wp-seo-schema-recipe-content {
        padding: 15px;
    }
    
    .wp-seo-schema-faq-question {
        padding: 12px;
    }
    
    .wp-seo-schema-faq-answer {
        padding: 12px;
    }
    
    .wp-seo-schema-review {
        padding: 15px;
    }
}

/* Accessibility */
.wp-seo-schema-faq-question:focus {
    outline: 2px solid #0073aa;
    outline-offset: -2px;
}

.wp-seo-schema-faq-question[aria-expanded="true"] {
    background: #f0f0f0;
}

/* Print styles */
@media print {
    .wp-seo-schema-faq-answer {
        display: block !important;
    }
    
    .wp-seo-schema-faq-question::after {
        display: none;
    }
}