/**
 * PyziTheme - responsive.css (pyzitheme/assets/css/responsive.css)
 * 
 * Responsywność
 *
 * @package     PyziTheme
 * @subpackage  Assets/CSS
 * @author      Patryk Kowalski <p.kowalski@kamikstudio.pl>
 * @copyright   2025 KamikStudio & PyziPyzi
 * @license     Proprietary
 * @version     1.0.0
 * @since       1.0.0
 * 
 * Client: PyziPyzi - Domowe wyroby cukiernicze
 * Website: https://pyzipyzi.pl
 * 
 * This file is part of PyziTheme.
 * Unauthorized copying or distribution is prohibited.
 */


/* ==========================================================================
   LARGE DESKTOP (1440px+)
   ========================================================================== */

@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-section {
        min-height: 700px;
    }
}

/* ==========================================================================
   DESKTOP (1025px - 1439px)
   ========================================================================== */

@media (min-width: 1025px) and (max-width: 1439px) {
    .container {
        max-width: 1200px;
        padding: 0 30px;
    }
}

/* ==========================================================================
   TABLET LANDSCAPE (769px - 1024px)
   ========================================================================== */

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
    
    .hero-section {
        min-height: 550px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .single-post-layout {
        grid-template-columns: 1fr 280px;
        gap: 35px;
    }
}

/* ==========================================================================
   TABLET PORTRAIT (481px - 768px)
   ========================================================================== */

@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-section {
        min-height: 500px;
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 30px;
    }
    
    .hero-cta {
        padding: 16px 40px;
        font-size: 16px;
    }
    
    .about-section,
    .features-section,
    .testimonials-section {
        padding: 60px 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image {
        order: 1;
    }
    
    .about-content {
        order: 2;
    }
    
    .section-title {
        font-size: 36px;
        margin-bottom: 40px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .feature-item {
        padding: 30px 25px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .post-card {
        margin-bottom: 0;
    }
    
    .single-post-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .sidebar {
        position: static;
        margin-top: 40px;
    }
    
    .entry-title {
        font-size: 36px;
    }
    
    .entry-content {
        font-size: 17px;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-previous,
    .nav-next {
        width: 100%;
    }
}

/* ==========================================================================
   MOBILE (320px - 480px)
   ========================================================================== */

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .content-wrapper {
        padding: 30px 15px;
    }
    
    /* Hero */
    .hero-section {
        min-height: 450px;
        padding: 40px 0;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .hero-cta {
        padding: 14px 30px;
        font-size: 15px;
    }
    
    /* Sections */
    .about-section,
    .features-section,
    .testimonials-section,
    .homepage-widgets {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .about-content h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .about-content p {
        font-size: 16px;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-item {
        padding: 25px 20px;
    }
    
    .feature-icon {
        font-size: 40px;
        margin-bottom: 15px;
    }
    
    .feature-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .feature-description {
        font-size: 15px;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .testimonial-item {
        padding: 25px 20px;
    }
    
    .testimonial-text {
        font-size: 15px;
    }
    
    .author-photo {
        width: 45px;
        height: 45px;
    }
    
    .author-name {
        font-size: 15px;
    }
    
    .author-location {
        font-size: 13px;
    }
    
    /* Posts Grid */
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .post-thumbnail {
        height: 220px;
    }
    
    .post-content {
        padding: 25px 20px;
    }
    
    .post-meta {
        gap: 12px;
        font-size: 13px;
    }
    
    .post-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .post-excerpt {
        font-size: 15px;
    }
    
    .read-more-btn {
        font-size: 14px;
        padding: 10px 25px;
    }
    
    /* Single Post */
    .single-post-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .sidebar {
        position: static;
        margin-top: 40px;
    }
    
    .entry-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .entry-content {
        font-size: 16px;
        line-height: 1.7;
    }
    
    .entry-content h2 {
        font-size: 24px;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    
    .entry-content h3 {
        font-size: 20px;
        margin-top: 25px;
        margin-bottom: 12px;
    }
    
    .entry-content p {
        margin-bottom: 20px;
    }
    
    .entry-content blockquote {
        padding: 15px 20px;
        margin: 25px 0;
        font-size: 15px;
    }
    
    /* Post Navigation */
    .post-navigation {
        margin: 40px 0;
        padding: 20px 0;
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-title {
        font-size: 16px;
    }
    
    /* Pagination */
    .pagination {
        margin: 40px 0;
    }
    
    .pagination a,
    .pagination span {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 14px;
    }
    
    /* Comments */
    .comments-area {
        margin-top: 40px;
        padding-top: 40px;
    }
    
    .comments-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .comment {
        margin-bottom: 20px;
        padding: 20px 15px;
    }
    
    .comment-author img {
        width: 45px;
        height: 45px;
    }
    
    .comment-metadata {
        font-size: 13px;
    }
    
    .comment-reply-link {
        padding: 6px 18px;
        font-size: 13px;
    }
    
    /* Widgets */
    .widget {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    
    .widget-title {
        font-size: 18px;
        margin-bottom: 18px;
        padding-bottom: 12px;
    }
    
    .widget ul li {
        margin-bottom: 10px;
        padding-bottom: 10px;
        font-size: 15px;
    }
    
    /* Page Header */
    .page-header {
        padding: 30px 0;
        margin-bottom: 35px;
    }
    
    .page-title {
        font-size: 32px;
        margin-bottom: 12px;
    }
    
    .archive-description {
        font-size: 16px;
    }
    
    /* Page Thumbnail */
    .page-thumbnail {
        max-height: 350px;
        margin-bottom: 30px;
        border-radius: 8px;
    }
    
    /* Buttons */
    .btn,
    button,
    input[type="submit"] {
        padding: 12px 25px;
        font-size: 15px;
    }
}

/* ==========================================================================
   SMALL MOBILE (< 360px)
   ========================================================================== */

@media (max-width: 359px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .hero-cta {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .feature-item {
        padding: 20px 15px;
    }
    
    .testimonial-item {
        padding: 20px 15px;
    }
    
    .post-content {
        padding: 20px 15px;
    }
    
    .widget {
        padding: 20px 15px;
    }
}

/* ==========================================================================
   LANDSCAPE MODE (Mobile/Tablet)
   ========================================================================== */

@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 400px;
        padding: 30px 0;
    }
    
    .hero-title {
        font-size: 36px;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .hero-cta {
        padding: 12px 30px;
    }
}

/* ==========================================================================
   HIGH DPI / RETINA DISPLAYS
   ========================================================================== */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .hero-section {
        background-size: cover;
    }
    
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ==========================================================================
   PRINT STYLES (for responsive print)
   ========================================================================== */

@media print {
    .hero-section {
        min-height: auto;
        padding: 40px 0;
    }
    
    .hero-overlay {
        display: none;
    }
    
    .sidebar,
    .post-navigation,
    .comments-area,
    .edit-link {
        display: none;
    }
    
    .single-post-layout {
        grid-template-columns: 1fr;
    }
    
    .entry-content {
        font-size: 12pt;
        line-height: 1.6;
    }
}

/* ==========================================================================
   TOUCH DEVICE OPTIMIZATIONS
   ========================================================================== */

@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets for mobile */
    .btn,
    button,
    input[type="submit"],
    a {
        min-height: 44px;
        min-width: 44px;
    }
    
    .post-card {
        transition: none;
    }
    
    .post-card:hover {
        transform: none;
    }
    
    .feature-item:hover,
    .testimonial-item:hover {
        transform: none;
    }
}

/* ==========================================================================
   REDUCED MOTION (Accessibility)
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   DARK MODE PREFERENCE (Optional)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    /* Dark mode styles - możesz włączyć w przyszłości */
    /*
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .hero-overlay {
        background: linear-gradient(135deg, rgba(94, 52, 28, 0.95) 0%, rgba(239, 99, 65, 0.85) 100%);
    }
    */
}