/**
 * Strona Satelicka - Style CSS
 * 5 wariantów widoku: Grid, List, Cards, Compact, Magazine
 */

/* === RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background-color, #f8fafc);
    color: var(--text-color, #1e293b);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary-color, #3b82f6);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--secondary-color, #1e40af);
}

/* Klikalne linki telefonu i emaila */
a[href^="tel:"] {
    color: var(--primary-color);
    text-decoration: none;
}

a[href^="tel:"]:hover {
    text-decoration: underline;
}

a[href^="mailto:"] {
    color: var(--primary-color);
    text-decoration: none;
}

/* === HERO SECTION === */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

a[href^="mailto:"]:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    a[href^="tel:"] {
        font-weight: 600;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === CONTAINER === */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === HEADER === */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    white-space: nowrap;
}

.logo-image {
    max-height: 50px;
    width: auto;
}

/* === HAMBURGER MENU === */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    gap: 5px;
    transition: all 0.3s ease;
}
.hamburger-btn:hover {
    background: rgba(255,255,255,0.2);
}
.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === CTA BUTTONS === */
.header-cta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.cta-btn {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.cta-btn-primary {
    background: white;
    color: var(--primary-color);
}
.cta-btn-primary:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.cta-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
}
.cta-btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

/* === MENU BAR STICKY === */
.header.menu-bar-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
}
.header:not(.menu-bar-sticky) {
    position: relative;
}

/* === MENU BAR COLOR SCHEMES === */
.header.menu-bar-color-default {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}
.header.menu-bar-color-solid {
    background: var(--primary-color);
}
.header.menu-bar-color-dark {
    background: #1a1a2e;
}
.header.menu-bar-color-light {
    background: #ffffff;
    color: #333;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header.menu-bar-color-light .logo a,
.header.menu-bar-color-light .nav-link,
.header.menu-bar-color-light .hamburger-line {
    color: #333;
}
.header.menu-bar-color-light .hamburger-line {
    background: #333;
}
.header.menu-bar-color-light .search-form {
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.1);
}
.header.menu-bar-color-light .search-input {
    color: #333;
}
.header.menu-bar-color-light .search-input::placeholder {
    color: rgba(0,0,0,0.5);
}
.header.menu-bar-color-light .search-btn {
    color: #333;
}
.header.menu-bar-color-light .cta-btn-primary {
    background: var(--primary-color);
    color: white;
}
.header.menu-bar-color-light .cta-btn-secondary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
/* Jasne tło - widoki i inne elementy */
.header.menu-bar-color-light .view-switcher,
.header.menu-bar-color-light .view-label,
.header.menu-bar-color-light .view-btn {
    color: #333;
}
.header.menu-bar-color-light .view-btn {
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.1);
}
.header.menu-bar-color-light .view-btn:hover,
.header.menu-bar-color-light .view-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
.header.menu-bar-color-transparent {
    background: transparent;
    position: absolute;
    width: 100%;
    z-index: 100;
}

/* === MENU BAR VARIANTS === */

/* Wariant 1: Klasyczny - Logo po lewej, menu i wyszukiwarka po prawej */
.header.menu-bar-1 .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header.menu-bar-1 .hamburger-btn {
    display: none;
}
.header.menu-bar-1 .main-nav {
    display: flex;
    order: 0;
}

/* Wariant 2: Centralny - Logo na środku, menu pod spodem */
.header.menu-bar-2 .header-content {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
}
.header.menu-bar-2 .hamburger-btn {
    display: none;
}
.header.menu-bar-2 .logo {
    order: -1;
}
.header.menu-bar-2 .main-nav {
    display: flex;
    order: 1;
    width: 100%;
    justify-content: center;
}
.header.menu-bar-2 .search-box {
    order: 2;
    max-width: 400px;
}
.header.menu-bar-2 .view-switcher {
    display: none;
}
.header.menu-bar-2 .header-cta {
    order: 3;
}

/* Wariant 3: Minimalistyczny - Logo + hamburger menu */
.header.menu-bar-3 {
    padding: 0.75rem 0;
}
.header.menu-bar-3 .header-content {
    justify-content: space-between;
}
.header.menu-bar-3 .hamburger-btn {
    display: flex;
    order: 10;
}
.header.menu-bar-3 .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-color);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
}
.header.menu-bar-3.menu-bar-color-light .main-nav {
    background: #333;
}
.header.menu-bar-3.menu-bar-color-dark .main-nav {
    background: #1a1a2e;
}
.header.menu-bar-3 .main-nav.active {
    display: flex;
}
.header.menu-bar-3 .main-nav .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: white;
}
.header.menu-bar-3 .search-box {
    display: none;
}
.header.menu-bar-3 .view-switcher {
    display: none;
}
.header.menu-bar-3 .header-cta {
    display: none;
}
.header.menu-bar-3 .main-nav.active + .header-cta,
.header.menu-bar-3.menu-open .header-cta {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 120px);
    left: 1rem;
    right: 1rem;
}

/* Wariant 4: Rozszerzony - Pełna nawigacja z przyciskami CTA */
.header.menu-bar-4 {
    padding: 0.5rem 0;
}
.header.menu-bar-4 .header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.header.menu-bar-4 .hamburger-btn {
    display: none;
}
.header.menu-bar-4 .logo {
    flex-shrink: 0;
}
.header.menu-bar-4 .main-nav {
    display: flex;
    gap: 0.25rem;
}
.header.menu-bar-4 .nav-link {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    font-size: 0.875rem;
}
.header.menu-bar-4 .nav-link:hover,
.header.menu-bar-4 .nav-link.active {
    background: rgba(255,255,255,0.2);
}
.header.menu-bar-4 .search-box {
    flex: 1;
    max-width: 400px;
}
.header.menu-bar-4 .header-cta {
    flex-shrink: 0;
}
.header.menu-bar-4 .view-switcher {
    display: none;
}

/* Wariant 5: Dwupoziomowy - Górny pasek z logo, dolny z menu */
.header.menu-bar-5 {
    padding: 0;
}
.header.menu-bar-5 .container {
    padding: 0;
    max-width: 100%;
}
.header.menu-bar-5 .header-content {
    flex-direction: column;
    gap: 0;
}
.header.menu-bar-5 .hamburger-btn {
    display: none;
}
.header.menu-bar-5 .logo {
    padding: 1rem 1.5rem;
    background: rgba(0,0,0,0.15);
    width: 100%;
    display: flex;
    justify-content: center;
}
.header.menu-bar-5 .main-nav {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: rgba(0,0,0,0.05);
    gap: 2rem;
}
.header.menu-bar-5 .search-box {
    padding: 0.75rem 1.5rem;
    max-width: 100%;
    width: 100%;
    background: rgba(0,0,0,0.05);
}
.header.menu-bar-5 .search-form {
    max-width: 500px;
    margin: 0 auto;
}
.header.menu-bar-5 .view-switcher {
    display: none;
}
.header.menu-bar-5 .header-cta {
    padding: 0.5rem 1.5rem;
    background: rgba(0,0,0,0.1);
    width: 100%;
    justify-content: center;
}

/* === MOBILE RESPONSIVE FOR MENU BAR === */
@media (max-width: 768px) {
    .header.menu-bar-1 .hamburger-btn,
    .header.menu-bar-2 .hamburger-btn,
    .header.menu-bar-4 .hamburger-btn,
    .header.menu-bar-5 .hamburger-btn {
        display: flex;
    }
    
    .header.menu-bar-1 .main-nav,
    .header.menu-bar-2 .main-nav,
    .header.menu-bar-4 .main-nav,
    .header.menu-bar-5 .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        padding: 0.5rem;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        z-index: 1000;
    }
    
    .header .main-nav.active {
        display: flex !important;
    }
    
    .header .main-nav.active .nav-link {
        padding: 0.875rem 1rem;
        border-radius: 8px;
        color: white;
    }
    
    .header .main-nav.active .nav-link:hover {
        background: rgba(255,255,255,0.1);
    }
    
    /* Jasne tło - ciemne menu mobilne */
    .header.menu-bar-color-light .main-nav.active {
        background: #333;
    }
    .header.menu-bar-color-light .main-nav.active .nav-link {
        color: white;
    }
    
    .header.menu-bar-1 .header-cta,
    .header.menu-bar-2 .header-cta,
    .header.menu-bar-4 .header-cta {
        display: none;
    }
    
    .header.menu-bar-5 .header-content {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
    }
    .header.menu-bar-5 .logo {
        padding: 0;
        background: none;
        width: auto;
    }
    .header.menu-bar-5 .main-nav {
        position: absolute;
        top: 100%;
        padding: 0.5rem;
    }
    .header.menu-bar-5 .search-box {
        display: none;
    }
}

/* === SEARCH === */
.search-box {
    flex: 1;
    max-width: 500px;
}

.search-form {
    display: flex;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.search-form:focus-within {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.search-input {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: none;
    background: transparent;
    color: white;
    font-size: 1rem;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-btn {
    padding: 0.875rem 1.25rem;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* === VIEW SWITCHER === */
.view-switcher {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.view-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.view-buttons {
    display: flex;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem;
    border-radius: 8px;
}

.view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

.view-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.view-btn.active {
    background: white;
    color: var(--primary-color);
}

/* === MAIN === */
.main {
    flex: 1;
    padding: 2rem 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
}

/* === SIDEBAR === */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    min-width: 320px;
}

.sidebar-section {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-list {
    list-style: none;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    border-radius: 10px;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.category-link:hover {
    background: var(--background-color);
    color: var(--primary-color);
}

.category-link.active {
    background: var(--primary-color);
    color: white;
}

.category-count {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
    background: var(--background-color);
    border-radius: 20px;
    font-weight: 500;
}

.category-link.active .category-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* === CONTENT === */
.content {
    min-width: 0;
}

.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.results-count {
    color: #64748b;
    font-size: 0.9375rem;
}

.clear-filters {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* === NO RESULTS === */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-results h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.no-results p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    border: 2px solid var(--primary-color);
}

.btn-primary svg {
    stroke: #ffffff;
}

.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-text {
    background: transparent;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
}

.btn-text:hover {
    background: var(--background-color);
}

.btn-block {
    width: 100%;
}

.btn svg {
    flex-shrink: 0;
}

/* === ENTRIES CONTAINER === */
.entries-container {
    display: grid;
    gap: 1rem;
    min-width: 0;
    overflow: hidden;
}

/* === ENTRY ITEM BASE === */
.entry-item {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.entry-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.entry-avatar {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.entry-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entry-avatar img.entry-logo {
    object-fit: contain;
    padding: 0.5rem;
    background: #fff;
}

.entry-voivodeship {
    color: #64748b;
    font-size: 0.875rem;
}

.entry-detail-voivodeship {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.entry-initials {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
}

.entry-content {
    flex: 1;
    min-width: 0;
}

.entry-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    line-height: 1.3;
}

.entry-title a {
    color: var(--text-color);
}

.entry-title a:hover {
    color: var(--primary-color);
}

.entry-category {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--background-color);
    color: var(--primary-color);
    border-radius: 20px;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.entry-address {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.entry-address svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.entry-description {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.entry-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.entry-contact {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #64748b;
    transition: color 0.2s ease;
}

.entry-contact:hover {
    color: var(--primary-color);
}

.entry-contact-disabled {
    cursor: default;
    color: #9ca3af;
}

.entry-contact-disabled:hover {
    color: #9ca3af;
}

.entry-contact svg {
    opacity: 0.7;
}

.entry-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* ============================================
   VIEW VARIANT 1: GRID
   ============================================ */
.view-grid .entries-container {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.view-grid .entry-item {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
    height: 100%;
    display: flex;
}

.view-grid .entry-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.view-grid .entry-description {
    flex: 1;
}

.view-grid .entry-address {
    justify-content: center;
    min-height: 2.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.view-grid .entry-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
}

.view-grid .entry-initials {
    font-size: 1.5rem;
}

.view-grid .entry-contacts {
    justify-content: center;
}

.view-grid .entry-actions {
    margin-top: 1rem;
    width: 100%;
}

.view-grid .entry-actions .btn {
    width: 100%;
}

/* ============================================
   VIEW VARIANT 2: LIST
   ============================================ */
.view-list .entries-container {
    grid-template-columns: 1fr;
}

.view-list .entry-item {
    align-items: center;
}

.view-list .entry-avatar {
    width: 56px;
    height: 56px;
    border-radius: 12px;
}

.view-list .entry-description {
    display: none;
}

/* ============================================
   VIEW VARIANT 3: CARDS (Large Cards with Images)
   ============================================ */
.view-cards .entries-container {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
}

.view-cards .entry-item {
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    height: 100%;
    display: flex;
}

.view-cards .entry-avatar {
    width: 100%;
    height: 200px;
    border-radius: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.view-cards .entry-initials {
    font-size: 3rem;
}

.view-cards .entry-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.view-cards .entry-actions {
    padding: 0 1.5rem 1.5rem;
    width: 100%;
}

.view-cards .entry-actions .btn {
    width: 100%;
}

/* ============================================
   VIEW VARIANT 4: COMPACT
   ============================================ */
.view-compact .entries-container {
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.view-compact .entry-item {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    align-items: center;
}

.view-compact .entry-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.view-compact .entry-initials {
    font-size: 0.875rem;
}

.view-compact .entry-title {
    font-size: 1rem;
    margin-bottom: 0;
}

.view-compact .entry-category,
.view-compact .entry-description,
.view-compact .entry-address {
    display: none;
}

.view-compact .entry-contacts {
    gap: 0.75rem;
}

.view-compact .entry-contact {
    font-size: 0.75rem;
}

.view-compact .entry-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

.view-compact .entry-premium-badge {
    position: static;
    margin-left: auto;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* ============================================
   VIEW VARIANT 5: MAGAZINE
   ============================================ */
.view-magazine .entries-container {
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.view-magazine .entry-item {
    grid-column: span 4;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.view-magazine .entry-item:nth-child(5n + 1) {
    grid-column: span 8;
}

.view-magazine .entry-item:nth-child(5n + 1) .entry-avatar {
    height: 280px;
}

.view-magazine .entry-avatar {
    width: 100%;
    height: 180px;
    border-radius: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.view-magazine .entry-initials {
    font-size: 2.5rem;
}

.view-magazine .entry-content {
    padding: 1.25rem;
}

.view-magazine .entry-title {
    font-size: 1rem;
}

.view-magazine .entry-contacts {
    display: none;
}

.view-magazine .entry-actions {
    padding: 0 1.25rem 1.25rem;
    width: 100%;
}

.view-magazine .entry-actions .btn {
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
}

/* === PAGINATION === */
.pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex;
    gap: 0.375rem;
    list-style: none;
    align-items: center;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: white;
    border-radius: 10px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.pagination-link:hover {
    background: var(--primary-color);
    color: white;
}

.pagination-link.active {
    background: var(--primary-color);
    color: white;
}

.pagination-ellipsis {
    padding: 0 0.5rem;
    color: #94a3b8;
}

/* === ADS === */
.ads-container {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ads-container .ad-item {
    display: flex;
    justify-content: center;
    width: 100%;
}

.ads-header {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.ads-footer {
    display: flex;
    justify-content: center;
}

.ads-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ads-sidebar .ad-item {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.ads-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ads-content .ad-item {
    display: flex;
    justify-content: center;
}

.ad-content-item {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
}

/* === FOOTER === */
.footer {
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

.footer-links {
    margin-top: 0.5rem;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Internal Links Section */
.internal-links {
    display: grid;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}

.internal-links.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.internal-links.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.internal-links-section {
    min-width: 0;
}

.internal-links-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
}

.internal-links-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.internal-links-section li {
    margin-bottom: 0.25rem;
}

.internal-links-section a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.8125rem;
}

.internal-links-section a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-extra-box {
    font-size: 0.875rem;
    color: #475569;
}

@media (max-width: 768px) {
    .internal-links.cols-3,
    .internal-links.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .internal-links.cols-3,
    .internal-links.cols-4 {
        grid-template-columns: 1fr;
    }
}

/* === ENTRY DETAIL PAGE === */
.entry-detail-voivodeship {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
}

.entry-detail-voivodeship:hover {
    color: var(--primary-color);
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #64748b;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .separator {
    opacity: 0.5;
}

.breadcrumb .current {
    color: var(--text-color);
    font-weight: 500;
}

.entry-detail {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
}

.entry-detail-main {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.entry-detail-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.entry-detail-header .qr-code-inline {
    margin-left: auto;
    flex-shrink: 0;
}

.entry-detail-avatar {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.entry-detail-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entry-detail-avatar img.entry-logo {
    object-fit: contain;
    padding: 0.75rem;
    background: #fff;
}

.entry-detail-avatar .entry-initials {
    font-size: 2rem;
}

.entry-detail-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.entry-detail-category {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--background-color);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.entry-detail-section {
    margin-bottom: 2rem;
}

.entry-detail-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.entry-detail-section p {
    color: #64748b;
    line-height: 1.7;
}

.entry-description-content {
    color: #64748b;
    line-height: 1.7;
}

.entry-description-content p {
    margin-bottom: 1rem;
}

.entry-description-content p:last-child {
    margin-bottom: 0;
}

.entry-description-content ul,
.entry-description-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.entry-description-content li {
    margin-bottom: 0.5rem;
}

.entry-description-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.entry-description-content strong,
.entry-description-content b {
    font-weight: 600;
    color: var(--text-color);
}

.entry-detail-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.sidebar-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-color);
}

.contact-list {
    list-style: none;
}

.contact-item {
    display: flex;
    gap: 1rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.contact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-item:first-child {
    padding-top: 0;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--background-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-color);
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.contact-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 0.9375rem;
    color: var(--text-color);
    font-weight: 500;
}

.contact-link {
    color: var(--primary-color);
}

.contact-link:hover {
    text-decoration: underline;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.back-link {
    margin-top: 2rem;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: 240px 1fr;
    }
    
    .entry-detail {
        grid-template-columns: 1fr 320px;
    }
}

@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .sidebar-section {
        margin-bottom: 0;
    }
    
    .entry-detail {
        grid-template-columns: 1fr;
    }
    
    .entry-detail-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
    }
    
    .sidebar-card {
        margin-bottom: 0;
    }
    
    .view-magazine .entries-container {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .view-magazine .entry-item {
        grid-column: span 3;
    }
    
    .view-magazine .entry-item:nth-child(5n + 1) {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-box {
        width: 100%;
        max-width: none;
        order: 3;
    }
    
    .view-switcher {
        margin-left: 0;
    }
    
    .view-label {
        display: none;
    }
    
    .view-grid .entries-container,
    .view-cards .entries-container {
        grid-template-columns: 1fr;
    }
    
    .view-magazine .entries-container {
        grid-template-columns: 1fr;
    }
    
    .view-magazine .entry-item,
    .view-magazine .entry-item:nth-child(5n + 1) {
        grid-column: span 1;
    }
    
    .view-magazine .entry-item:nth-child(5n + 1) .entry-avatar {
        height: 200px;
    }
    
    .entry-detail-header {
        flex-direction: column;
        text-align: center;
    }
    
    .entry-detail-avatar {
        margin: 0 auto;
    }
    
    .results-info {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .entry-item {
        flex-direction: column;
        text-align: center;
    }
    
    .entry-avatar {
        margin: 0 auto;
    }
    
    .entry-contacts {
        justify-content: center;
    }
    
    .entry-actions {
        width: 100%;
        margin-top: 1rem;
    }
    
    .entry-actions .btn {
        width: 100%;
    }
    
    .view-compact .entry-item {
        flex-direction: row;
        text-align: left;
    }
    
    .view-compact .entry-avatar {
        margin: 0;
    }
    
    .pagination-link {
        min-width: 36px;
        height: 36px;
        font-size: 0.8125rem;
    }
    
    .pagination-prev,
    .pagination-next {
        display: none;
    }
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.entry-item {
    animation: fadeIn 0.3s ease forwards;
}

.entry-item:nth-child(1) { animation-delay: 0.05s; }
.entry-item:nth-child(2) { animation-delay: 0.1s; }
.entry-item:nth-child(3) { animation-delay: 0.15s; }
.entry-item:nth-child(4) { animation-delay: 0.2s; }
.entry-item:nth-child(5) { animation-delay: 0.25s; }
.entry-item:nth-child(6) { animation-delay: 0.3s; }

/* ============================================
   LAYOUT VARIANTS
   ============================================ */

/* Layout 1: Sidebar Left (default) */
.layout-sidebar-left .content-wrapper {
    grid-template-columns: 320px 1fr;
}

/* Layout 2: Sidebar Right */
.layout-sidebar-right .content-wrapper {
    grid-template-columns: 1fr 320px;
}

.layout-sidebar-right .sidebar {
    order: 2;
}

.layout-sidebar-right .content {
    order: 1;
}

/* Layout 3: Full Width (no sidebar) */
.layout-full-width .content-wrapper {
    grid-template-columns: 1fr;
}

.layout-full-width .sidebar {
    display: none;
}

/* Layout 4: Two Sidebars */
.layout-two-sidebars .content-wrapper {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 280px;
    gap: 2rem;
}

.layout-two-sidebars .sidebar {
    position: static;
    min-width: 0;
}

.layout-two-sidebars .content {
    min-width: 0;
    overflow: hidden;
}

.layout-two-sidebars .sidebar-right {
    order: 3;
    min-width: 0;
}

/* City List (prawy sidebar) */
.city-list {
    list-style: none;
}

.city-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--text-color);
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.city-link:hover,
.voivodeship-link:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

.city-name,
.voivodeship-name {
    font-size: 0.875rem;
}

.city-count,
.voivodeship-count {
    font-size: 0.75rem;
    background: var(--background-color);
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    color: #64748b;
}

/* Voivodeship List */
.voivodeship-list {
    list-style: none;
}

.voivodeship-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--text-color);
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

/* Stats Widget */
.stats-widget {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--background-color);
    border-radius: 10px;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Recent List (prawy sidebar) */
.recent-list {
    list-style: none;
}

.recent-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.recent-list li:last-child {
    border-bottom: none;
}

.recent-link {
    display: block;
    color: var(--text-color);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.recent-link:hover {
    color: var(--primary-color);
}

.recent-category {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.125rem;
}

.sidebar-text {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
}

/* ============================================
   BLOG & ARTICLES
   ============================================ */
.main-nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.blog-subtitle {
    color: #64748b;
    font-size: 1.125rem;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.article-item {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.article-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.article-title a {
    color: var(--text-color);
    transition: color 0.2s ease;
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.article-meta time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-excerpt {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Article Detail */
.article-detail {
    background: #fff;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.article-detail.full-width {
    max-width: 100%;
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.article-detail-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #374151;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.article-footer .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Content Above/Below (z panelu centralnego) */
.content-above,
.content-below {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    line-height: 1.7;
}

.content-below {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.content-below.full-width {
    grid-column: 1 / -1;
    max-width: 100%;
}

/* ============================================
   LATEST ENTRIES SECTION
   ============================================ */
.latest-entries {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.section-title svg {
    color: var(--primary-color);
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.latest-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    color: var(--text-color);
}

.latest-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    color: var(--text-color);
}

.latest-avatar {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.latest-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-avatar span {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
}

.latest-info {
    flex: 1;
    min-width: 0;
}

.latest-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.latest-category {
    display: inline-block;
    font-size: 0.6875rem;
    padding: 0.125rem 0.5rem;
    background: var(--background-color);
    color: var(--primary-color);
    border-radius: 10px;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.latest-city {
    font-size: 0.8125rem;
    color: #64748b;
}

/* ============================================
   RELATED ENTRIES SECTION
   ============================================ */
.related-entries {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
}

.related-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    color: var(--text-color);
}

.related-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    color: var(--text-color);
}

.related-avatar {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.related-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-avatar span {
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

.related-info {
    flex: 1;
    min-width: 0;
}

.related-info h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-info p {
    font-size: 0.8125rem;
    color: #64748b;
}

/* ============================================
   RESPONSIVE LAYOUT ADJUSTMENTS
   ============================================ */
@media (max-width: 992px) {
    .layout-sidebar-left .content-wrapper,
    .layout-sidebar-right .content-wrapper,
    .layout-two-sidebars .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .layout-sidebar-right .sidebar,
    .layout-sidebar-right .content {
        order: unset;
    }
    
    .latest-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .latest-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
}

/* === RATING STARS === */
.stars-display {
    display: inline-flex;
    gap: 2px;
}

.star {
    font-size: 1.2rem;
    line-height: 1;
}

.star-full {
    color: #fbbf24;
}

.star-half {
    color: #fbbf24;
    opacity: 0.7;
}

.star-empty {
    color: #d1d5db;
}

.rating-widget {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.rating-interactive {
    display: inline-flex;
    gap: 2px;
    cursor: pointer;
}

.rating-interactive .star {
    font-size: 1.5rem;
    transition: transform 0.1s, color 0.1s;
}

.rating-interactive .star:hover {
    transform: scale(1.2);
}

.rating-interactive[data-readonly="true"] {
    cursor: default;
}

.rating-interactive[data-readonly="true"] .star:hover {
    transform: none;
}

.rating-info {
    font-size: 0.875rem;
    color: #6b7280;
}

.rating-average {
    font-weight: 600;
    color: #1f2937;
}

/* === QR CODE === */

.qr-code-inline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.qr-code-inline img {
    width: 80px;
    height: 80px;
    border-radius: 4px;
}

.qr-code-inline span {
    font-size: 0.65rem;
    color: #6b7280;
    text-align: center;
}

/* === SIDEBAR RATING === */
.sidebar-rating {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-rating .rating-interactive {
    display: flex;
    gap: 0.25rem;
}

.sidebar-rating .star {
    font-size: 1.5rem;
}

.rating-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.rating-score {
    font-weight: 600;
    color: #1f2937;
}

.rating-voted {
    color: #10b981;
    font-size: 0.85rem;
    font-weight: 500;
}

.qr-code-section {
    text-align: center;
    padding: 1rem;
    background: #f9fafb;
    border-radius: var(--radius);
    margin-top: 1rem;
}

.qr-code-section img {
    max-width: 150px;
    height: auto;
}

.qr-code-section p {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* === ENTRY STATS === */
.entry-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.entry-stat-item {
    background: #f8fafc;
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
}

.entry-stat-label {
    display: block;
    font-size: 0.7rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.entry-stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.entry-stat-unique {
    display: block;
    font-size: 0.7rem;
    color: #94a3b8;
}

/* === TOP RATED BOX === */
.top-rated-section {
    background: linear-gradient(135deg, var(--top-rated-color-start, #fef3c7) 0%, var(--top-rated-color-end, #fde68a) 100%);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.top-rated-section .section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #92400e;
}

.top-rated-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.top-rated-item {
    background: white;
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.top-rated-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.top-rated-item .item-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
    display: block;
}

.top-rated-item .item-category {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.top-rated-item .item-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-rated-item .rating-value {
    font-weight: 700;
    color: #92400e;
}

/* === BLOG PAGE === */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.blog-hero-content {
    text-align: center;
    color: white;
}

.blog-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.blog-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.blog-hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.blog-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.blog-card-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.blog-card-featured .blog-card-image {
    height: 100%;
    min-height: 300px;
}

.blog-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-placeholder span {
    font-size: 3rem;
    opacity: 0.5;
}

.blog-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.blog-card:hover .blog-card-overlay {
    opacity: 1;
}

.blog-card-link {
    color: white;
    background: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.blog-card-link:hover {
    background: #1e40af;
}

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.blog-card-meta time,
.blog-card-read-time {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.blog-card-meta svg {
    opacity: 0.7;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card-title a:hover {
    color: var(--primary-color);
}

.blog-card-excerpt {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.blog-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: gap 0.2s;
}

.blog-card-btn:hover {
    gap: 0.75rem;
}

/* === ARTICLE PAGE === */
.article-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.article-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.article-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.article-hero-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.article-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.article-content {
    background: white;
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 2rem 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.article-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin: 1.5rem 0 0.75rem;
}

.article-content p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: #4b5563;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f8fafc;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: #4b5563;
}

.article-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.article-content code {
    background: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e11d48;
}

.article-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.article-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: gap 0.2s;
}

.article-nav-link:hover {
    gap: 0.75rem;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.article-share-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.article-share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.2s;
}

.article-share-btn:hover {
    transform: scale(1.1);
}

.article-share-btn.facebook { background: #1877f2; }
.article-share-btn.twitter { background: #1da1f2; }
.article-share-btn.linkedin { background: #0a66c2; }

@media (max-width: 768px) {
    .blog-hero {
        padding: 3rem 0;
    }
    
    .blog-hero-title {
        font-size: 1.75rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card-featured {
        grid-template-columns: 1fr;
    }
    
    .blog-card-featured .blog-card-image {
        min-height: 200px;
    }
    
    .article-hero-title {
        font-size: 1.75rem;
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .article-nav {
        flex-direction: column;
        gap: 1rem;
    }
}

/* === PREMIUM SLIDER === */
.premium-slider-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-radius: 12px;
    border: 2px solid var(--premium-border-color, #ffc107);
}

.premium-slider-section .section-title {
    margin-bottom: 1rem;
    color: #92400e;
}

.premium-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.premium-slider-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.5rem 0;
    flex: 1;
}

.premium-slider-track::-webkit-scrollbar {
    display: none;
}

.premium-slide {
    flex: 0 0 280px;
    background: #fff;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    border: 2px solid var(--premium-border-color, #ffc107);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.premium-slide:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
}

.premium-avatar {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}

.premium-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.premium-info {
    flex: 1;
    min-width: 0;
}

.premium-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #1e293b;
}

.premium-category {
    font-size: 0.75rem;
    color: #64748b;
    display: block;
}

.premium-city {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

.premium-badge {
    position: absolute;
    top: -8px;
    right: 10px;
    background: var(--premium-border-color, #ffc107);
    color: var(--premium-text-color, #000);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

.slider-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #64748b;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.slider-btn:hover {
    background: var(--premium-border-color, #ffc107);
    color: #000;
}

@media (max-width: 768px) {
    .premium-slide {
        flex: 0 0 240px;
    }
    
    .slider-btn {
        display: none;
    }
}

/* === PREMIUM ENTRY LIST ITEM === */
.entry-item.entry-item-premium {
    border: 2px solid var(--premium-border-color, #ffc107);
    position: relative;
    background: linear-gradient(135deg, #fffbeb 0%, #fff 50%);
}

.entry-premium-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--premium-border-color, #ffc107);
    color: var(--premium-text-color, #000);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === PREMIUM SIDEBAR BADGE === */
.sidebar-premium-badge {
    background: var(--premium-border-color, #ffc107);
    color: var(--premium-text-color, #000);
    padding: 0.75rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* === DARK MODE SUPPORT (optional) === */
@media (prefers-color-scheme: dark) {
    body.dark-mode {
        --background-color: #0f172a;
        --text-color: #f1f5f9;
    }
    
    body.dark-mode .entry-item,
    body.dark-mode .sidebar-section,
    body.dark-mode .sidebar-card,
    body.dark-mode .results-info,
    body.dark-mode .entry-detail-main,
    body.dark-mode .no-results,
    body.dark-mode .latest-item,
    body.dark-mode .related-item {
        background: #1e293b;
    }
    
    body.dark-mode .footer {
        background: #1e293b;
        border-color: #334155;
    }
}
