/**
 * Frontend styles for What We Bring to the Party plugin
 */

/* General Styles */
.wbttp-culture-single,
.wbttp-cultures-archive,
.wbttp-story-single,
.wbttp-stories-archive,
.wbttp-recipe-single,
.wbttp-recipes-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Typography */
.wbttp-culture-title,
.wbttp-story-title,
.wbttp-recipe-title,
.wbttp-archive-title {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.2;
}

.wbttp-archive-description {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Culture Single Page */
.wbttp-culture-hero {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.wbttp-culture-image {
    flex: 0 0 400px;
}

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

.wbttp-culture-title-section {
    flex: 1;
}

.wbttp-culture-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.wbttp-culture-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    color: #555;
}

.wbttp-culture-meta .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #0073aa;
}

/* Content Sections */
.wbttp-culture-content section,
.wbttp-story-content > div,
.wbttp-recipe-content section {
    margin-bottom: 40px;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.wbttp-culture-content h2,
.wbttp-story-content h3,
.wbttp-recipe-content h2 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 10px;
}

.wbttp-content {
    line-height: 1.7;
    color: #444;
}

.wbttp-content p {
    margin-bottom: 15px;
}

/* Notable Figures Grid */
.wbttp-notable-figures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.wbttp-notable-figure {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}

.wbttp-figure-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.wbttp-figure-content {
    flex: 1;
}

.wbttp-figure-name {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.wbttp-figure-years {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.wbttp-figure-description {
    font-size: 0.95em;
    line-height: 1.5;
    color: #555;
}

/* Traditional Events Grid */
.wbttp-traditional-events-grid,
.wbttp-traditional-dishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.wbttp-traditional-event,
.wbttp-traditional-dish {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wbttp-traditional-event:hover,
.wbttp-traditional-dish:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.wbttp-event-image img,
.wbttp-dish-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.wbttp-event-content,
.wbttp-dish-content {
    padding: 20px;
}

.wbttp-event-name,
.wbttp-dish-name {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.wbttp-event-date {
    margin-bottom: 15px;
    color: #0073aa;
    font-weight: 500;
}

.wbttp-event-description,
.wbttp-dish-description {
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.wbttp-dish-ingredients,
.wbttp-dish-preparation {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.wbttp-dish-ingredients strong,
.wbttp-dish-preparation strong {
    color: #333;
    display: block;
    margin-bottom: 8px;
}

/* Archive Pages */
.wbttp-archive-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    border-radius: 12px;
}

.wbttp-archive-title {
    color: white;
    margin-bottom: 15px;
}

.wbttp-archive-description {
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Filters */
.wbttp-cultures-filters {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.wbttp-filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.wbttp-culture-search {
    display: flex;
    flex: 1;
    min-width: 250px;
}

.wbttp-culture-search input[type="search"] {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px 0 0 6px;
    font-size: 14px;
}

.wbttp-culture-search button {
    padding: 10px 15px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wbttp-culture-search button:hover {
    background: #005a87;
}

.wbttp-category-filter select,
.wbttp-region-filter select,
.wbttp-sort-filter select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    min-width: 150px;
}

/* Results Info */
.wbttp-results-info {
    margin-bottom: 20px;
    padding: 15px;
    background: #e7f3ff;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
}

.wbttp-results-count {
    font-weight: 500;
    color: #333;
}

/* Cultures Grid */
.wbttp-cultures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.wbttp-culture-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wbttp-culture-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.wbttp-culture-card-image {
    position: relative;
    overflow: hidden;
}

.wbttp-culture-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wbttp-culture-card:hover .wbttp-culture-thumbnail {
    transform: scale(1.05);
}

.wbttp-culture-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f1f1f1 0%, #e1e1e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wbttp-culture-placeholder .dashicons {
    font-size: 48px;
    color: #999;
}

.wbttp-culture-card-content {
    padding: 25px;
}

.wbttp-culture-card-title {
    margin-bottom: 15px;
}

.wbttp-culture-card-title a {
    color: #333;
    text-decoration: none;
    font-size: 1.4em;
    font-weight: bold;
    transition: color 0.3s ease;
}

.wbttp-culture-card-title a:hover {
    color: #0073aa;
}

.wbttp-culture-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.wbttp-culture-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85em;
    color: #666;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 15px;
}

.wbttp-culture-card-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.wbttp-culture-card-categories {
    margin-bottom: 20px;
}

.wbttp-culture-category-tag {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.8em;
    margin-right: 8px;
    margin-bottom: 5px;
    transition: background-color 0.3s ease;
}

.wbttp-culture-category-tag:hover {
    background: #005a87;
    color: white;
}

.wbttp-culture-card-footer {
    text-align: center;
}

.wbttp-read-more-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0073aa;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.wbttp-read-more-button:hover {
    background: #005a87;
    color: white;
    transform: translateX(3px);
}

.wbttp-read-more-button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Story Single Page */
.wbttp-story-header {
    margin-bottom: 40px;
}

.wbttp-story-featured-image {
    margin-bottom: 30px;
    text-align: center;
}

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

.wbttp-story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.wbttp-story-author,
.wbttp-story-date {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wbttp-author-label,
.wbttp-date-label {
    font-weight: 600;
    color: #333;
}

.wbttp-author-name {
    color: #0073aa;
    font-weight: 500;
}

.wbttp-author-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 0.9em;
}

.wbttp-story-featured-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9em;
}

.wbttp-story-text {
    font-size: 1.1em;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}

.wbttp-story-text p {
    margin-bottom: 20px;
}

.wbttp-story-cultural-connection {
    background: #e7f3ff;
    border-left: 4px solid #0073aa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.wbttp-story-cultures {
    margin-bottom: 30px;
}

.wbttp-culture-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wbttp-culture-tag {
    background: #0073aa;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.wbttp-culture-tag:hover {
    background: #005a87;
    color: white;
}

/* Social Sharing */
.wbttp-story-sharing,
.wbttp-culture-sharing {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* Author Bio */
.wbttp-story-author-bio {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.wbttp-author-bio-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.wbttp-author-info {
    flex: 0 0 200px;
}

.wbttp-author-info h4 {
    font-size: 1.2em;
    margin-bottom: 5px;
    color: #333;
}

.wbttp-author-bio-text {
    flex: 1;
    line-height: 1.6;
    color: #555;
}

/* Related Content */
.wbttp-related-stories-grid,
.wbttp-related-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.wbttp-related-story,
.wbttp-related-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.wbttp-related-story:hover,
.wbttp-related-item:hover {
    transform: translateY(-3px);
}

.wbttp-related-story-link,
.wbttp-related-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.wbttp-related-story-image img,
.wbttp-related-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.wbttp-related-story-content,
.wbttp-related-content {
    padding: 15px;
}

.wbttp-related-story-title,
.wbttp-related-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.wbttp-related-story-author {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
}

.wbttp-related-story-excerpt {
    font-size: 0.9em;
    color: #555;
    line-height: 1.5;
}

.wbttp-related-type {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8em;
}

/* Navigation */
.wbttp-culture-navigation,
.wbttp-story-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.wbttp-nav-previous,
.wbttp-nav-next {
    flex: 1;
    max-width: 45%;
}

.wbttp-nav-previous a,
.wbttp-nav-next a {
    display: block;
    padding: 20px;
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.wbttp-nav-previous a:hover,
.wbttp-nav-next a:hover {
    background: #f8f9fa;
    border-color: #0073aa;
}

.wbttp-nav-label {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.wbttp-nav-title {
    display: block;
    font-weight: bold;
    color: #333;
}

.wbttp-nav-next {
    text-align: right;
}

/* Call to Action */
.wbttp-story-cta {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
}

.wbttp-cta-content h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: white;
}

.wbttp-cta-content p {
    font-size: 1.1em;
    margin-bottom: 25px;
    opacity: 0.9;
}

.wbttp-cta-button {
    display: inline-block;
    background: white;
    color: #0073aa;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.wbttp-cta-button:hover {
    background: #f1f1f1;
    color: #005a87;
    transform: translateY(-2px);
}

/* Sidebar */
.wbttp-cultures-sidebar {
    margin-top: 40px;
}

.wbttp-featured-cultures,
.wbttp-popular-categories,
.wbttp-newsletter-signup-widget {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.wbttp-featured-cultures h3,
.wbttp-popular-categories h3,
.wbttp-newsletter-signup-widget h3 {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.wbttp-featured-culture-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.wbttp-featured-culture-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.wbttp-featured-culture-link {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.wbttp-featured-culture-image img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

.wbttp-featured-culture-content h4 {
    font-size: 1em;
    margin-bottom: 5px;
    color: #333;
}

.wbttp-featured-culture-content p {
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
}

.wbttp-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wbttp-categories-list li {
    margin-bottom: 10px;
}

.wbttp-categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s ease;
}

.wbttp-categories-list a:hover {
    background: #e9ecef;
}

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

/* Pagination */
.wbttp-pagination {
    text-align: center;
    margin-top: 40px;
}

.wbttp-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.wbttp-pagination .page-numbers:hover,
.wbttp-pagination .page-numbers.current {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* No Results */
.wbttp-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.wbttp-no-results h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #333;
}

.wbttp-no-results p {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 30px;
}

.wbttp-no-results-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.wbttp-button {
    display: inline-block;
    padding: 12px 24px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.wbttp-button:hover {
    background: #005a87;
    color: white;
}

.wbttp-button-secondary {
    background: #6c757d;
}

.wbttp-button-secondary:hover {
    background: #5a6268;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wbttp-culture-hero {
        flex-direction: column;
    }
    
    .wbttp-culture-image {
        flex: none;
    }
    
    .wbttp-cultures-grid {
        grid-template-columns: 1fr;
    }
    
    .wbttp-filters-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wbttp-culture-search {
        min-width: auto;
    }
    
    .wbttp-notable-figures-grid,
    .wbttp-traditional-events-grid,
    .wbttp-traditional-dishes-grid {
        grid-template-columns: 1fr;
    }
    
    .wbttp-notable-figure {
        flex-direction: column;
        text-align: center;
    }
    
    .wbttp-culture-navigation,
    .wbttp-story-navigation {
        flex-direction: column;
    }
    
    .wbttp-nav-previous,
    .wbttp-nav-next {
        max-width: 100%;
    }
    
    .wbttp-nav-next {
        text-align: left;
    }
    
    .wbttp-author-bio-content {
        flex-direction: column;
    }
    
    .wbttp-author-info {
        flex: none;
    }
    
    .wbttp-related-stories-grid,
    .wbttp-related-content-grid {
        grid-template-columns: 1fr;
    }
    
    .wbttp-story-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .wbttp-no-results-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .wbttp-culture-single,
    .wbttp-cultures-archive,
    .wbttp-story-single {
        padding: 10px;
    }
    
    .wbttp-culture-title,
    .wbttp-story-title,
    .wbttp-archive-title {
        font-size: 1.8em;
    }
    
    .wbttp-culture-content section,
    .wbttp-story-content > div {
        padding: 20px;
    }
    
    .wbttp-cta-content {
        padding: 20px;
    }
    
    .wbttp-featured-cultures,
    .wbttp-popular-categories,
    .wbttp-newsletter-signup-widget {
        padding: 15px;
    }
}

