/**
 * ============================================================================
 * PYZITHEME - MAIN STYLESHEET
 * ============================================================================
 * 
 * Główny plik stylów dla motywu PyziTheme
 * 
 * Ten plik zawiera wszystkie podstawowe style motywu WordPress.
 * Definiuje zmienne, reset, layout, komponenty i style responsywne.
 *
 * @package     PyziTheme
 * @author      Patryk Kowalski
 * @copyright   2025 KamikStudio & PyziPyzi
 * @license     Proprietary
 * @version     1.0.0
 * @since       1.0.0
 * 
 * ============================================================================
 * DEVELOPER INFO
 * ============================================================================
 * 
 * Developer:   Patryk Kowalski
 * Company:     KamikStudio Patryk Kowalski
 * Email:       p.kowalski@kamikstudio.pl
 * Phone:       +48 519 109 063
 * Website:     https://kamikstudio.pl
 * 
 * ============================================================================
 * CLIENT INFO
 * ============================================================================
 * 
 * Client:      Kamila Kowalska
 * Company:     PyziPyzi - Domowe wyroby cukiernicze
 * Website:     https://pyzipyzi.pl
 * 
 * ============================================================================
 * COLOR PALETTE
 * ============================================================================
 * 
 * Primary:     #ef6341 (Pomarańczowy)
 * Secondary:   #5e341c (Brązowy)
 * Accent:      #fef8f4 (Kremowy)
 * Text:        #333333 (Ciemny szary)
 * Background:  #ffffff (Biały)
 * 
 * ============================================================================
 * TYPOGRAPHY
 * ============================================================================
 * 
 * Font Family: 'Plus Jakarta Sans', sans-serif
 * Base Size:   16px
 * Line Height: 1.6
 * 
 * ============================================================================
 * BREAKPOINTS
 * ============================================================================
 * 
 * Mobile:      375px - 640px
 * Tablet:      641px - 1024px
 * Desktop:     1025px - 1400px
 * Large:       1401px+
 * 
 * ============================================================================
 * TABLE OF CONTENTS
 * ============================================================================
 * 
 * 1.  CSS Variables
 * 2.  Reset & Base Styles
 * 3.  Typography
 * 4.  Layout
 * 5.  Header & Navigation
 * 6.  Hero Section
 * 7.  Content Areas
 * 8.  Sidebar
 * 9.  Footer
 * 10. Components
 * 11. Utilities
 * 12. Responsive
 * 
 * ============================================================================
 */

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(94, 52, 28, 0.85) 0%, rgba(239, 99, 65, 0.75) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 24px);
    margin-bottom: 40px;
    line-height: 1.5;
    opacity: 0.95;
}

.hero-cta {
    display: inline-block;
    padding: 18px 45px;
    font-size: 18px;
    font-weight: 600;
    background: #fff;
    color: #ef6341;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
    color: #d94f2e;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.about-section {
    padding: 80px 0;
    background: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.about-content h2 {
    font-size: clamp(32px, 4vw, 42px);
    color: #5e341c;
    margin-bottom: 25px;
}

.about-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */

.features-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #fef8f4 0%, #fff 100%);
}

.section-title {
    font-size: clamp(32px, 4vw, 42px);
    color: #5e341c;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 40px 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 22px;
    color: #5e341c;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */

.testimonials-section {
    padding: 80px 0;
    background: #fff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-item {
    background: #fef8f4;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
    margin-bottom: 15px;
}

.testimonial-rating .star {
    color: #ffc107;
    font-size: 20px;
    margin-right: 2px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 25px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #e0d5cb;
}

.author-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    color: #5e341c;
    font-size: 16px;
}

.author-location {
    font-size: 14px;
    color: #999;
}

/* ==========================================================================
   POST CARDS (Blog Grid)
   ========================================================================== */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.post-content {
    padding: 30px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-meta svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.post-category a {
    color: #ef6341;
    text-decoration: none;
    font-weight: 500;
}

.post-category a:hover {
    text-decoration: underline;
}

.post-title {
    font-size: 24px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-title a {
    color: #5e341c;
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: #ef6341;
}

.post-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

/* ==========================================================================
   SINGLE POST LAYOUT
   ========================================================================== */

.single-post-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.single-post-content {
    max-width: 800px;
}

.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    font-size: clamp(32px, 5vw, 48px);
    color: #5e341c;
    line-height: 1.2;
    margin-bottom: 20px;
}

.entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: #5e341c;
}

.entry-content p {
    margin-bottom: 25px;
}

.entry-content img {
    border-radius: 8px;
    margin: 30px 0;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 25px;
    padding-left: 30px;
}

.entry-content li {
    margin-bottom: 10px;
}

.entry-content blockquote {
    border-left: 4px solid #ef6341;
    padding: 20px 30px;
    margin: 30px 0;
    background: #fef8f4;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* Post Navigation */
.post-navigation {
    margin: 60px 0;
    padding: 30px 0;
    border-top: 2px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-subtitle {
    display: block;
    font-size: 14px;
    color: #999;
    margin-bottom: 8px;
}

.nav-title {
    font-size: 18px;
    font-weight: 600;
    color: #5e341c;
}

.nav-previous a:hover .nav-title,
.nav-next a:hover .nav-title {
    color: #ef6341;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.widget {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 20px;
    color: #5e341c;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ef6341;
}

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

.widget ul li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.widget ul li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.widget a:hover {
    color: #ef6341;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.pagination {
    margin: 60px 0;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-flex;
    list-style: none;
    padding: 0;
    gap: 10px;
}

.pagination .page-numbers li {
    display: inline-block;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: #fff;
    color: #666;
    border: 2px solid #e3e3e3;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination .current {
    background: #ef6341;
    color: #fff;
    border-color: #ef6341;
    transform: translateY(-2px);
}

/* ==========================================================================
   COMMENTS
   ========================================================================== */

.comments-area {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 2px solid #f0f0f0;
}

.comments-title {
    font-size: 28px;
    color: #5e341c;
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 30px;
    padding: 25px;
    background: #fef8f4;
    border-radius: 12px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.comment-metadata {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
}

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

.reply {
    margin-top: 15px;
}

.comment-reply-link {
    display: inline-block;
    padding: 8px 20px;
    background: #ef6341;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.comment-reply-link:hover {
    background: #d94f2e;
    transform: translateY(-2px);
}

/* ==========================================================================
   HOMEPAGE WIDGETS
   ========================================================================== */

.homepage-widgets {
    padding: 80px 0;
    background: #f5f5f5;
}

.homepage-widget {
    margin-bottom: 60px;
}

.homepage-widget:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   PAGE HEADER
   ========================================================================== */

.page-header {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 50px;
}

.page-title {
    font-size: clamp(32px, 5vw, 48px);
    color: #5e341c;
    margin-bottom: 15px;
}

.archive-description {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   PAGE THUMBNAIL
   ========================================================================== */

.page-thumbnail {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 40px;
}

.page-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   EDIT LINK
   ========================================================================== */

.entry-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

.edit-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.edit-link a:hover {
    color: #ef6341;
}

/* ==========================================================================
   RESPONSIVE - TABLET
   ========================================================================== */

@media (max-width: 1024px) {
    .about-grid {
        gap: 40px;
    }
    
    .single-post-layout {
        grid-template-columns: 1fr 300px;
        gap: 40px;
    }
}

/* ==========================================================================
   RESPONSIVE - MOBILE
   ========================================================================== */

@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
    }
    
    .about-section,
    .features-section,
    .testimonials-section,
    .homepage-widgets {
        padding: 50px 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .single-post-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .sidebar {
        position: static;
        margin-top: 50px;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 20px;
    }
}