/* Ukrainian Flavors - Main Stylesheet */

/* Base styles and variables */
:root {
    --primary-color: #0057b7; /* Ukrainian blue */
    --secondary-color: #ffd700; /* Ukrainian yellow */
    --accent-color: #e74c3c; /* Warm red for accents */
    --dark-color: #333333;
    --medium-color: #555555;
    --light-color: #f8f8f8;
    --white-color: #ffffff;
    --success-color: #27ae60;
    --error-color: #e74c3c;
    --border-radius: 6px;
    --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* Global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--dark-color);
    line-height: 1.3;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.2rem;
}

/* Translation styling */
.translation {
    display: block;
    font-size: 0.8em;
    color: var(--medium-color);
    font-style: italic;
    margin-top: 0.2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-heading);
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.primary-btn:hover {
    background-color: #004494;
    color: var(--white-color);
}

.secondary-btn {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

.secondary-btn:hover {
    background-color: #e6c200;
    color: var(--dark-color);
}

.tertiary-btn {
    background-color: var(--light-color);
    color: var(--dark-color);
    border: 1px solid var(--medium-color);
}

.tertiary-btn:hover {
    background-color: #ebebeb;
}

.center-btn {
    text-align: center;
    margin: 2rem 0;
}

/* Header */
header {
    background-color: var(--white-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    flex: 0 0 auto;
}

.logo img {
    max-height: 60px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

nav ul li a.active {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/4.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    padding: 6rem 0;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white-color);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Featured posts */
.featured-posts {
    padding: 5rem 0;
}

.featured-posts h2,
.about-preview h2,
.newsletter h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.post-image {
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    margin-bottom: 0.5rem;
}

.post-content p {
    margin-bottom: 1.5rem;
    color: var(--medium-color);
}

/* Blog page */
.blog-header {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/7.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    padding: 5rem 0;
    text-align: center;
}

.blog-header h1 {
    color: var(--white-color);
}

.blog-posts {
    padding: 5rem 0;
}

.blog-grid .post-card {
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--medium-color);
}

.post-meta span {
    margin-right: 1.5rem;
    display: flex;
    align-items: center;
}

.post-meta span i {
    margin-right: 0.3rem;
}

/* About section */
.about-preview {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

/* About page */
.about-header {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/8.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    padding: 5rem 0;
    text-align: center;
}

.about-header h1 {
    color: var(--white-color);
}

.about-story {
    padding: 5rem 0;
}

.about-mission {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.mission-content h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.mission-points {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.mission-point {
    padding: 2rem;
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.mission-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-team {
    padding: 5rem 0;
}

.about-team h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
}

.team-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    box-shadow: var(--box-shadow);
}

.team-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.testimonials {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.testimonial-content p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 600;
}

/* Contact page */
.contact-header {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/9.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    padding: 5rem 0;
    text-align: center;
}

.contact-header h1 {
    color: var(--white-color);
}

.contact-content {
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h2,
.contact-form h2 {
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    min-width: 30px;
}

.info-text h3 {
    margin-bottom: 0.3rem;
}

.social-media {
    margin-top: 2rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 87, 183, 0.2);
}

.map-section {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.map-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.faq-section {
    padding: 5rem 0;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-item {
    margin-bottom: 2rem;
}

.faq-item h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Recipe post */
.recipe-article {
    padding: 5rem 0;
}

.recipe-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}

.recipe-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.recipe-intro h1 {
    margin-bottom: 1rem;
}

.recipe-rating {
    margin-bottom: 1.5rem;
}

.stars {
    color: var(--secondary-color);
}

.rating-count {
    color: var(--medium-color);
    margin-left: 0.5rem;
}

.recipe-description {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.recipe-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.recipe-content {
    margin-bottom: 3rem;
}

.ingredients, 
.instructions, 
.recipe-tips, 
.recipe-cultural-notes, 
.recipe-variations, 
.recipe-nutrition {
    margin-bottom: 3rem;
}

.ingredients ul,
.recipe-tips ul {
    list-style-type: none;
    padding-left: 0;
}

.ingredients ul li,
.recipe-tips ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.ingredients ul li:before,
.recipe-tips ul li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.instructions ol {
    counter-reset: item;
    list-style-type: none;
    padding-left: 0;
}

.instructions ol li {
    counter-increment: item;
    margin-bottom: 1rem;
}

.instructions h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.instructions h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.ingredient-notes {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
}

.ingredient-notes h3 {
    margin-top: 0;
}

.nutrition-table {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.nutrition-item {
    background-color: var(--light-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
}

.nutrition-label {
    font-weight: 600;
}

.nutrition-disclaimer {
    font-size: 0.9rem;
    color: var(--medium-color);
    font-style: italic;
}

.variation-item {
    margin-bottom: 1.5rem;
}

.variation-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.recipe-comments {
    margin-bottom: 3rem;
}

.comment {
    display: flex;
    margin-bottom: 2rem;
}

.comment-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    align-items: center;
}

.comment-header h3 {
    margin-bottom: 0;
}

.comment-date {
    color: var(--medium-color);
    font-size: 0.9rem;
}

.comment-reply {
    margin-top: 1rem;
}

.add-comment h3 {
    margin-bottom: 1.5rem;
}

.related-recipes {
    margin-top: 5rem;
}

.related-recipes h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.related-card {
    text-align: center;
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.related-image {
    height: 150px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1rem;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card h3 {
    margin-bottom: 1rem;
}

/* Newsletter */
.newsletter {
    padding: 5rem 0;
    background-color: var(--light-color);
    text-align: center;
}

.newsletter p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-family: var(--font-body);
}

.newsletter-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Policy pages */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/10.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    padding: 5rem 0;
    text-align: center;
}

.page-header h1 {
    color: var(--white-color);
}

.policy-content {
    padding: 5rem 0;
}

.policy-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.policy-section {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.policy-section:last-child {
    margin-bottom: 0;
}

.policy-section h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.policy-section h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.refund-steps {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 5rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo img {
    max-height: 60px;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links a,
.footer-contact a {
    color: var(--white-color);
    opacity: 0.8;
}

.footer-links a:hover,
.footer-contact a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-contact p {
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 0.5rem;
    min-width: 20px;
    color: var(--secondary-color);
}

.footer-social h3 {
    color: var(--white-color);
}

.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.footer-bottom-links a {
    color: var(--white-color);
    margin: 0 0.5rem;
    opacity: 0.8;
}

.footer-bottom-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    z-index: 1000;
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    margin-bottom: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cookie-content a {
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white-color);
    margin: auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.thank-you-message {
    text-align: center;
}

.thank-you-message i {
    font-size: 3rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

/* Responsive styles */
@media (max-width: 992px) {
    .recipe-header {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: var(--border-radius);
        margin-bottom: 1rem;
    }
    
    .newsletter-form button {
        border-radius: var(--border-radius);
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu-active nav {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white-color);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-menu-active nav ul {
        flex-direction: column;
        padding: 1rem;
    }
    
    .mobile-menu-active nav ul li {
        margin: 0;
        margin-bottom: 1rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .post-meta {
        flex-direction: column;
    }
    
    .post-meta span {
        margin-bottom: 0.5rem;
    }
}
