/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header i nawigacja */
.site-header {
    background: #ffffff;
    color: #2e7d32;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

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

/* Logo */
.logo-container {
    flex: 0 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2e7d32;
    font-weight: bold;
    font-size: 1.5rem;
}

.logo img {
    height: 80px;
    margin-right: 0.5rem;
}

/* Główna nawigacja */
.main-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

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

.nav-item {
    margin: 0 0.5rem;
}

.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: #388e3c;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.nav-link:hover {
    background: rgba(56, 142, 60, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(56, 142, 60, 0.15);
    color: #1b5e20;
}

/* Social media */
.social-nav {
    display: flex;
    gap: 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: #2e7d32;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(56, 142, 60, 0.1);
    transform: translateY(-2px);
}

.icon-telegram:before {
    content: "\1F4E8";
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.icon-whatsapp:before {
    content: "\1F4AC";
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Przycisk menu mobilnego */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #2e7d32;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background: #2e7d32;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #2e7d32;
    left: 0;
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    bottom: -6px;
}

/* Responsywność nagłówka */
@media (max-width: 992px) {
    .social-text {
        display: none;
    }
    .icon-telegram:before,
    .icon-whatsapp:before {
        margin-right: 0;
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        order: 3;
    }
    .logo-container {
        order: 1;
    }
    .social-nav {
        order: 2;
    }
    .main-nav {
        flex: 1 0 100%;
        order: 4;
        display: none;
    }
    .main-nav.active {
        display: block;
        margin-top: 1rem;
    }
    .nav-list {
        flex-direction: column;
    }
    .nav-item {
        margin: 0;
    }
    .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 0;
    }
}

.site-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
}

/* Filtry tagów */
.filters-section {
    background: white;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.filters-section h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-filter {
    padding: 0.5rem 1rem;
    border: 2px solid #c8e6c9;
    background: #f1f8e9;
    color: #2e7d32;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.tag-filter:hover {
    border-color: #66bb6a;
    background: #e8f5e9;
}

.tag-filter.active {
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
    color: white;
    border-color: transparent;
}

/* Grid promocji */
.promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Karty promocji */
.promotion-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

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

.promotion-card.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    position: absolute;
    left: -9999px;
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #fdd835, #fbc02d);
    color: #212121;
    padding: 0.5rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.card-content {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

.price-section {
    margin-bottom: 1rem;
}

.current-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 0.25rem;
}

.lowest-price {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.card-actions {
    display: flex;
    gap: 1rem;
}

.amazon-link, .details-link, .ceneo-link {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.amazon-link {
    background: linear-gradient(135deg, #ffb300, #ffa000);
    color: white;
}

.amazon-link:hover {
    background: linear-gradient(135deg, #f57c00, #ef6c00);
    transform: translateY(-2px);
}

.details-link, .ceneo-link {
    background: #ecf0f1;
    color: #2c3e50;
    border: 2px solid #bdc3c7;
}

.details-link:hover, .ceneo-link:hover {
    background: #d5dbdb;
    border-color: #95a5a6;
}

/* Loading i infinite scroll */
.loading {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
}

.loading.hidden {
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ecf0f1;
    border-top: 4px solid #66bb6a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.load-more-section {
    text-align: center;
    margin: 2rem 0;
}

.load-more-btn {
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 187, 106, 0.3);
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    .promotions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .tag-filters {
        justify-content: center;
    }
    .card-actions {
        flex-direction: column;
    }
    .site-title {
        font-size: 1.5rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.promotion-card {
    animation: fadeInUp 0.6s ease forwards;
}

.promotion-card:nth-child(odd) {
    animation-delay: 0.1s;
}

.promotion-card:nth-child(even) {
    animation-delay: 0.2s;
}

/* Container bloga – używa tych samych zasad co header/footer */
.post-section .container,
.post-hero .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Wnętrze posta */
.post-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.post-content {
  width: 100%;
  line-height: 1.8;
  font-size: 1.1rem;
  padding: 0;
}

/* Hero section */
.post-hero {
  width: 100%;
  padding: 3rem 0;
  margin-bottom: 2rem;
  background: #f8f9fa;
  text-align: center;
}

.post-title {
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 700;
  margin: 1rem 0;
}

/* Sekcje pod treścią */
.author-section,
.post-navigation {
  width: 100%;
  margin: 2rem 0;
}

/* Responsywność */
@media (max-width: 768px) {
  .post-section .container,
  .post-hero .container {
    padding: 0 15px;
  }

  .post-content {
    font-size: 1rem;
  }

  .post-content h2 {
    font-size: 1.5rem;
  }

  .post-content h3 {
    font-size: 1.25rem;
  }

  .post-title {
    font-size: 2rem;
  }
}