/**
 * ETNH Events - Styl frontend
 */

/* === ZMIENNE CSS - PALETA KOLORÓW === */
:root {
    /* Kolory główne */
    --etnh-primary-dark: #2c3e50;
    --etnh-primary-darker: #1a2332;
    --etnh-accent-blue: #3498db;
    --etnh-accent-blue-dark: #2980b9;

    /* Kolory tła */
    --etnh-bg-white: #fff;
    --etnh-bg-light: #f8f9fa;
    --etnh-bg-lighter: #f5f6f7;
    --etnh-bg-off-white: #f9f9f9;

    /* Kolory tekstowe */
    --etnh-text-dark: #2c3e50;
    --etnh-text-medium: #555;
    --etnh-text-light: #666;
    --etnh-text-lighter: #777;
    --etnh-text-muted: #999;
    --etnh-text-faint: #ccc;

    /* Kolory ramek i linii */
    --etnh-border-light: #e0e0e0;
    --etnh-border-lighter: #e5e9ed;
    --etnh-border-medium: #ddd;
    --etnh-border-gray: #d0d0d0;

    /* Kolory elementów UI */
    --etnh-shadow-light: rgba(0, 0, 0, 0.08);
    --etnh-shadow-medium: rgba(0, 0, 0, 0.1);
    --etnh-shadow-dark: rgba(0, 0, 0, 0.3);

    /* Kolory ciemne (przyciski, gradient) */
    --etnh-black: #0a0a0a;
    --etnh-black-light: #1a1a1a;
    --etnh-black-lighter: #2a2a2a;

    /* Kolory kategorii ocen */
    --etnh-rating-trasa: #e74c3c;
    --etnh-rating-trasa-dark: #c0392b;
    --etnh-rating-komunikacja: #3498db;
    --etnh-rating-komunikacja-dark: #2980b9;
    --etnh-rating-pakiet: #9b59b6;
    --etnh-rating-pakiet-dark: #8e44ad;
    --etnh-rating-atmosfera: #f39c12;
    --etnh-rating-atmosfera-dark: #d68910;

    /* Kolory statusów */
    --etnh-success-bg: #d4edda;
    --etnh-success-text: #155724;
    --etnh-success-border: #28a745;
    --etnh-error-bg: #f8d7da;
    --etnh-error-text: #721c24;
    --etnh-error-border: #dc3545;
    --etnh-info-bg: #d1ecf1;
    --etnh-info-text: #0c5460;
    --etnh-info-border: #17a2b8;
    --etnh-warning-bg: #fff3cd;
    --etnh-warning-text: #856404;
    --etnh-warning-border: #ffc107;

    /* Kolory specjalne */
    --etnh-heading-underline: #d6cbcb;
    --etnh-star-color: #f39c12;
}

/* === WSPÓLNE STYLE NAGŁÓWKÓW === */
.etnh-section-heading {
    font-size: 28px;
    color: var(--etnh-text-dark);
    margin: 0 0 0px 0;
    padding-bottom: 15px;
    font-weight: 900;
    display: inline-block;
    font-family: Poppins;
    text-transform: uppercase;
}

.etnh-section-heading::after {
    content: '';
    display: block;
    width: 100%;
    height: 12px;
    background: var(--etnh-heading-underline);
    margin-top: -18px;
}

/* Mniejszy nagłówek (h3) */
.etnh-section-heading-small {
    font-size: 22px;
}

/* === TABELA WYDARZEŃ - NOWOCZESNY WIDOK KART === */
.etnh-events-table-wrapper {
    margin: 30px 0;
    max-width: 100%;
}

/* Sekcja miesiąca */
.etnh-month-section {
    margin-bottom: 40px;
}

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

/* Nagłówek miesiąca */
.etnh-month-header {
    font-size: 28px;
    font-weight: 700;
    color: var(--etnh-text-dark);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--etnh-accent-blue);
    display: inline-block;
    position: relative;
}

.etnh-month-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, var(--etnh-black) 0%, var(--etnh-black-light) 50%, #0d0d0d 100%);
}

/* Ukryj starą tabelę, pokaż jako karty */
.etnh-events-table {
    width: 100%;
    border-collapse: collapse;
    display: table;
}

.etnh-events-table thead {
    display: none; /* Ukryj nagłówki na mobile */
}

.etnh-events-table tbody {
    display: block;
}

.etnh-events-table tbody tr {
    display: flex;
    align-items: center;
    background: var(--etnh-bg-white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px var(--etnh-shadow-light);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    gap: 20px;
}

.etnh-events-table tbody tr:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-left-color: var(--etnh-accent-blue);
}

/* Data - duża, po lewej */
.etnh-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 12px;
    background: linear-gradient(135deg, var(--etnh-black) 0%, var(--etnh-black-light) 50%, #0d0d0d 100%);
    color: var(--etnh-bg-white);
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: 0 4px 12px var(--etnh-shadow-dark);
    border: 1px solid var(--etnh-black-lighter);
}

.etnh-event-date .day {
    font-size: 32px;
    font-weight: 700;
    display: block;
}

.etnh-event-date .month {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    display: block;
}

/* Logo wydarzenia */
.etnh-event-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--etnh-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.etnh-event-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.etnh-event-logo .placeholder {
    font-size: 24px;
    color: var(--etnh-text-faint);
}

/* Główna treść */
.etnh-event-content {
    flex: 1;
    min-width: 0;
    border: 0px solid var(--etnh-bg-white);
}

.etnh-event-name {
    margin: 0 0 8px 0;
}

.etnh-event-name a {
    color: var(--etnh-text-dark);
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.2s;
}

.etnh-event-name a:hover {
    color: var(--etnh-accent-blue);
}

.etnh-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--etnh-text-light);
}

.etnh-event-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.etnh-event-meta-item::before {
    content: "•";
    margin-right: 4px;
    color: var(--etnh-text-muted);
}

.etnh-event-meta-item:first-child::before {
    display: none;
}

.etnh-event-city {
    color: var(--etnh-text-light);
    font-weight: 500;
}

.etnh-event-excerpt {
    color: var(--etnh-text-lighter);
    font-size: 14px;
    line-height: 1.5;
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Oceny - po prawej */
.etnh-event-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-width: 100px;
    text-align: right;
}

.etnh-gravel-index-mini {
    font-size: 10px;
    font-weight: 600;
    color: var(--etnh-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.etnh-rating-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--etnh-black);
    line-height: 1;
    margin-bottom: 6px;
}

.etnh-event-rating .rating-count {
    font-size: 11px;
    color: var(--etnh-text-muted);
    margin-top: 4px;
    display: block;
}

.etnh-event-rating .no-ratings {
    color: var(--etnh-text-faint);
    font-style: italic;
    font-size: 13px;
}

/* === GWIAZDKI === */
.etnh-stars {
    display: inline-flex;
    gap: 3px;
}

.etnh-stars .star {
    font-size: 20px;
    color: var(--etnh-border-medium);
    transition: color 0.2s;
}

.etnh-stars .star.filled {
    color: var(--etnh-star-color);
}

/* Większe gwiazdki w average rating */
.etnh-average-rating .etnh-stars .star {
    font-size: 25px;
    color: var(--etnh-border-medium); /* Szare puste gwiazdki */
}

.etnh-average-rating .etnh-stars .star.filled {
    color: var(--etnh-black); /* Czarne wypełnione gwiazdki */
}

.etnh-stars:not(.readonly) .star {
    cursor: pointer;
}

.etnh-stars:not(.readonly) .star:hover,
.etnh-stars:not(.readonly) .star.hover {
    color: var(--etnh-star-color);
}

.etnh-stars-input {
    display: inline-flex;
    gap: 3px;
}

.etnh-stars-input .star {
    font-size: 24px;
    color: var(--etnh-border-medium);
    cursor: pointer;
    transition: all 0.2s;
}

.etnh-stars-input .star:hover,
.etnh-stars-input .star.filled {
    color: var(--etnh-star-color);
}

/* === SZCZEGÓŁY WYDARZENIA === */
.etnh-event-details {
    background: var(--etnh-bg-light);
    padding: 25px;
    margin: 30px 0;
    border-radius: 8px;
    border-left: 4px solid var(--etnh-accent-blue);
}

.etnh-event-meta-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.etnh-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.etnh-meta-item .dashicons {
    color: var(--etnh-accent-blue);
}

.etnh-meta-item strong {
    margin-right: 5px;
}

/* === POJEDYNCZE WYDARZENIE - WIDOK SZCZEGÓŁOWY === */
.etnh-single-event {
    max-width: 100%;
}

/* Hero sekcja - Jasny design */
.etnh-event-hero {
    background: linear-gradient(135deg, var(--etnh-bg-light) 0%, #ffffff 50%, var(--etnh-bg-lighter) 100%);
    color: var(--etnh-text-dark);
    padding: 50px 40px;
    border-radius: 16px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--etnh-shadow-light);
    border: 1px solid #e0e4e8;
}

.etnh-event-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.etnh-event-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--etnh-accent-blue) 50%, transparent 100%);
    opacity: 0.3;
}

.etnh-event-hero-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
}

.etnh-event-hero-image {
    flex-shrink: 0;
    max-width: 200px;
    width: auto;
}

.etnh-event-hero-image img {
    max-width: 200px;
    width: auto;
    height: auto;
    display: block;
}

.etnh-event-hero-header {
    flex: 1;
    min-width: 0;
}

.etnh-event-title {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: var(--etnh-primary-darker);
    text-shadow: none;
}

.etnh-event-tagline {
    font-size: 18px;
    margin: 0 0 30px 0;
    color: #5a6c7d;
    line-height: 1.6;
}

/* Rząd z info i przyciskiem */
.etnh-event-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin: 30px 0 20px 0;
    flex-wrap: wrap;
}

/* Kluczowe informacje */
.etnh-event-key-info {
    display: flex;
    gap: 20px;
    flex: 1;
    flex-wrap: wrap;
}

/* Rząd z tagami - pełna szerokość */
.etnh-event-tags-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--etnh-border-lighter);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

.etnh-key-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.etnh-info-icon {
    font-size: 28px;
    line-height: 1;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

.etnh-info-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #000;
}

.etnh-info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.etnh-info-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    font-weight: 600;
}

.etnh-info-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--etnh-text-dark);
}

/* Style dla tagów */
.etnh-event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.etnh-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    background: transparent;
    border: 1px solid var(--etnh-border-gray);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--etnh-text-light);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.etnh-tag:hover {
    border-color: var(--etnh-text-muted);
    color: #333;
}
@media screen and (max-width: 768px) {
    .etnh-tag {
        font-size: 9px;
    }
    
}

.etnh-tag-icon {
    font-size: 11px;
    line-height: 1;
    filter: grayscale(100%);
    opacity: 0.7;
}

.etnh-day-of-week {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.9;
}

/* Przyciski akcji */
.etnh-event-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.etnh-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.etnh-btn-primary {
    background: linear-gradient(135deg, var(--etnh-black-light) 0%, var(--etnh-black) 100%);
    background-size: 200% 200%;
    color: var(--etnh-bg-white);
    font-weight: 700;
    border: 1px solid #000;
    box-shadow: 0 3px 10px var(--etnh-shadow-dark);
    animation: gradientShift 3s ease infinite;
    position: relative;
    overflow: hidden;
}

.etnh-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.etnh-btn-primary:hover::before {
    left: 100%;
}

.etnh-btn-primary:hover {
    background: linear-gradient(135deg, var(--etnh-black) 0%, #000 100%);
    color: var(--etnh-bg-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.etnh-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Treść główna */
.etnh-event-content-main {
    background: var(--etnh-bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--etnh-shadow-light);
    margin-bottom: 40px;
}

.etnh-event-description h2 {
    /* Style dziedziczony z .etnh-section-heading */
}

.etnh-event-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--etnh-text-medium);
}

.etnh-event-text p {
    margin-bottom: 15px;
}

/* Eksport do kalendarza */
.etnh-calendar-export {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--etnh-border-medium);
}

.etnh-calendar-export h3 {
    margin-top: 0;
    font-size: 16px;
    margin-bottom: 10px;
}

.etnh-calendar-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.etnh-calendar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--etnh-black) 0%, var(--etnh-black-light) 100%);
    color: var(--etnh-bg-white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s;
    border: 1px solid var(--etnh-black-lighter);
}

.etnh-calendar-btn:hover {
    background: linear-gradient(135deg, var(--etnh-black-light) 0%, var(--etnh-black-lighter) 100%);
    color: var(--etnh-bg-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.etnh-calendar-btn .dashicons {
    font-size: 18px;
}

/* === SEKCJA OCEN === */
.etnh-ratings-section {
    margin: 40px 0;
    padding: 30px;
    background: var(--etnh-bg-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--etnh-shadow-medium);
}


.etnh-ratings-section h2 {
    /* Style dziedziczony z .etnh-section-heading */
}

.etnh-ratings-summary {
    background: var(--etnh-bg-light);
    padding: 30px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 2px 8px var(--etnh-shadow-light);
}

.etnh-summary-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

.etnh-average-rating {
    text-align: center;
    padding: 20px;
    background: var(--etnh-bg-white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.etnh-gravel-index-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--etnh-text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.etnh-rating-number {
    font-size: 56px;
    font-weight: bold;
    color: var(--etnh-black);
    line-height: 1;
    margin-bottom: 15px;
}

.etnh-rating-count {
    margin-top: 15px;
    color: var(--etnh-text-lighter);
    font-size: 14px;
}

/* Breakdown kategorii - Gauges */
.etnh-rating-breakdown {
    padding: 10px 0;
}

.etnh-rating-breakdown h4 {
    margin: 0 0 25px 0;
    color: var(--etnh-text-dark);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    grid-column: 1 / -1;
}

/* Grid layout dla gauges - obok siebie */
.etnh-rating-breakdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.etnh-breakdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.etnh-breakdown-item:last-child {
    margin-bottom: 0;
}

.etnh-breakdown-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.etnh-breakdown-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--etnh-text-dark);
    font-size: 13px;
    margin-bottom: 5px;
}

.etnh-breakdown-weight {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    border: 1px solid #90caf9;
}

.etnh-breakdown-value {
    font-weight: 700;
    color: var(--etnh-text-dark);
    font-size: 20px;
    margin-top: 8px;
}

/* Circular Gauge - metoda z cssscript.com */
.etnh-progress-bar {
    width: 140px;
    height: 70px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin: 20px auto 10px;
    overflow: hidden;
}

/* Tło gauge - szary półokrąg górny (gauge-a) */
.etnh-progress-bar::before {
    content: '';
    z-index: 1;
    position: absolute;
    background-color: #e8ecef;
    width: 140px;
    height: 70px;
    top: 0;
    border-radius: 140px 140px 0 0;
}

/* Wewnętrzny biały półokrąg (gauge-b) - tworzy pierścień */
.etnh-progress-bar::after {
    content: '';
    z-index: 3;
    position: absolute;
    background-color: var(--etnh-bg-light);
    width: 100px;
    height: 50px;
    top: 20px;
    left: 20px;
    border-radius: 100px 100px 0 0;
}

/* Kolorowe wypełnienie - dolny półokrąg obracający się (gauge-c) */
.etnh-progress-fill {
    z-index: 2;
    position: absolute;
    width: 140px;
    height: 70px;
    top: 70px;
    left: 0;
    border-radius: 0 0 140px 140px;
    transform-origin: center top;
    transform: rotate(0turn);
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Kolory dla kategorii - ciemniejsze gradienty */
.etnh-progress-fill[data-category="trasa"] {
    background: linear-gradient(90deg, #000000 0%, #c0392b 100%);
    transform: rotate(calc(var(--progress) / 100 * 0.5turn));
}

.etnh-progress-fill[data-category="komunikacja"] {
    background: linear-gradient(90deg, #1d1f20 0%, #2980b9 100%);
    transform: rotate(calc(var(--progress) / 100 * 0.5turn));
}

.etnh-progress-fill[data-category="atmosfera"] {
    background: linear-gradient(90deg, #4f4739 0%, #d68910 100%);
    transform: rotate(calc(var(--progress) / 100 * 0.5turn));
}

.etnh-progress-fill[data-category="pakiet"] {
    background: linear-gradient(90deg, #38323a 0%, #8e44ad 100%);
    transform: rotate(calc(var(--progress) / 100 * 0.5turn));
}

/* Liczba w środku gauge */
.etnh-progress-bar .gauge-value {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    font-size: 20px;
    font-weight: 700;
    color: var(--etnh-text-dark);
}

.etnh-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Różne kolory dla różnych kategorii - ciemniejsze gradienty */
.etnh-progress-fill[data-category="trasa"] {
    background: linear-gradient(90deg, #000000 0%, #c0392b 100%);
}

.etnh-progress-fill[data-category="komunikacja"] {
    background: linear-gradient(90deg, #1d1f20 0%, #2980b9 100%);
}

.etnh-progress-fill[data-category="pakiet"] {
    background: linear-gradient(90deg, #38323a 0%, #8e44ad 100%);
}

.etnh-progress-fill[data-category="atmosfera"] {
    background: linear-gradient(90deg, #4f4739 0%, #d68910 100%);
}

/* === FORMULARZ OCENY === */
.etnh-rating-form {
    margin: 30px 0;
    padding: 30px;
    background: var(--etnh-bg-white);
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--etnh-shadow-light);
}


.etnh-rating-form h3 {
    /* Style dziedziczony z .etnh-section-heading i .etnh-section-heading-small */
}

.etnh-form-intro {
    color: var(--etnh-text-light);
    margin-bottom: 25px;
    font-size: 15px;
}

/* Pola osobiste */
.etnh-rating-personal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--etnh-border-light);
}

.etnh-logged-in-notice {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: #e8f5e9;
    border: 2px solid #4caf50;
    border-radius: 8px;
    color: #2e7d32;
    font-size: 15px;
}

.etnh-logged-in-notice .dashicons {
    color: #4caf50;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.etnh-logged-in-notice .admin-badge {
    margin-left: auto;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--etnh-black) 0%, var(--etnh-black-light) 100%);
    color: var(--etnh-bg-white);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid var(--etnh-black-lighter);
}

.etnh-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--etnh-text-dark);
}

.etnh-form-group .required {
    color: var(--etnh-rating-trasa);
}

.etnh-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--etnh-border-light);
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.etnh-form-group input:focus {
    outline: none;
    border-color: var(--etnh-accent-blue);
}

.etnh-form-group small {
    display: block;
    margin-top: 5px;
    color: var(--etnh-text-muted);
    font-size: 13px;
}

/* Kategorie ocen */
.etnh-rating-form h4 {
    margin: 25px 0 10px;
    color: var(--etnh-text-dark);
    font-size: 18px;
}

.etnh-weights-info {
    color: var(--etnh-text-light);
    font-size: 14px;
    margin-bottom: 20px;
}

/* Container dla wszystkich kategorii */
.etnh-rating-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.etnh-rating-category {
    padding: 20px;
    background: var(--etnh-bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--etnh-accent-blue);
}

.etnh-subcriteria {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    color: var(--etnh-text-light);
    font-style: italic;
    line-height: 1.4;
}

.etnh-category-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--etnh-text-dark);
    font-size: 16px;
}

.etnh-weight-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    background: linear-gradient(135deg, var(--etnh-black) 0%, var(--etnh-black-light) 100%);
    color: var(--etnh-bg-white);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--etnh-black-lighter);
}

.etnh-tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--etnh-accent-blue);
    color: var(--etnh-bg-white);
    border-radius: 50%;
    font-size: 14px;
    cursor: help;
    font-style: normal;
    transition: all 0.3s;
}

.etnh-tooltip-icon:hover {
    background: var(--etnh-accent-blue-dark);
    transform: scale(1.1);
}

.etnh-tooltip-popup {
    position: absolute;
    background: var(--etnh-black);
    color: var(--etnh-bg-white);
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    max-width: 250px;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--etnh-black-lighter);
    pointer-events: none; /* Nie reaguje na myszkę - zapobiega miganiu */
}

.etnh-tooltip-popup::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--etnh-black);
}

/* Notice'y */
.etnh-notice {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
}

.etnh-notice-success {
    background: var(--etnh-success-bg);
    color: var(--etnh-success-text);
    border-left: 4px solid var(--etnh-success-border);
}

.etnh-notice-info {
    background: var(--etnh-info-bg);
    color: var(--etnh-info-text);
    border-left: 4px solid var(--etnh-info-border);
}

.etnh-notice-error {
    background: var(--etnh-error-bg);
    color: var(--etnh-error-text);
    border-left: 4px solid var(--etnh-error-border);
}

.etnh-rating-comment {
    margin: 25px 0;
}

.etnh-rating-comment label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--etnh-text-medium);
}

.etnh-rating-comment textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--etnh-border-medium);
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

/* Zgody RODO */
.etnh-rating-consents {
    margin: 25px 0;
    padding: 20px;
    background: var(--etnh-bg-off-white);
    border-radius: 8px;
    border-left: 4px solid #2271b1;
}

.etnh-consent-item {
    margin-bottom: 15px;
}

.etnh-consent-item:last-child {
    margin-bottom: 0;
}

.etnh-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.6;
}

.etnh-consent-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.etnh-consent-text {
    flex: 1;
    color: var(--etnh-text-medium);
}

.etnh-consent-text a {
    color: #2271b1;
    text-decoration: underline;
}

.etnh-consent-text a:hover {
    color: #135e96;
}

.etnh-required {
    color: #d63638;
    font-weight: bold;
    margin-left: 3px;
}

.etnh-submit-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--etnh-black) 0%, var(--etnh-black-light) 100%);
    color: var(--etnh-bg-white);
    border: 1px solid var(--etnh-black-lighter);
    padding: 14px 35px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.etnh-submit-rating:hover {
    background: linear-gradient(135deg, var(--etnh-black-light) 0%, var(--etnh-black-lighter) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.etnh-submit-rating:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    border: 1px solid #7f8c8d;
}

.etnh-submit-rating .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.etnh-submit-rating .spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.etnh-rating-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 5px;
    display: none;
}

.etnh-rating-message.success {
    background: var(--etnh-success-bg);
    color: var(--etnh-success-text);
    border: 2px solid var(--etnh-success-border);
    border-radius: 8px;
    display: block;
}

.etnh-rating-message.success strong {
    font-weight: 700;
}

.etnh-rating-message.error {
    background: var(--etnh-error-bg);
    color: var(--etnh-error-text);
    border: 2px solid var(--etnh-error-border);
    border-radius: 8px;
    display: block;
}

.etnh-rating-message.error strong {
    font-weight: 700;
}

/* === LISTA OCEN === */
.etnh-ratings-list {
    margin-top: 40px;
}



.etnh-ratings-list h3 {
    /* Style dziedziczony z .etnh-section-heading i .etnh-section-heading-small */
}


.etnh-rating-item {
    padding: 20px;
    background: var(--etnh-bg-light);
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid var(--etnh-black);
}

.etnh-rating-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.etnh-rating-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.etnh-rating-author {
    font-weight: 600;
    color: var(--etnh-text-dark);
}

.etnh-rating-date {
    font-size: 12px;
    color: var(--etnh-text-muted);
}

.etnh-rating-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin: 15px 0;
    font-size: 14px;
}

.etnh-rating-detail {
    display: flex;
    flex-direction: column;
}

.etnh-rating-detail-label {
    font-size: 12px;
    color: var(--etnh-text-lighter);
    margin-bottom: 3px;
}

.etnh-rating-comment-text {
    margin-top: 15px;
    padding-top: 15px;
    padding-bottom: 25px;
    border-top: 1px solid var(--etnh-border-medium);
    color: var(--etnh-text-medium);
    line-height: 1.6;
    position: relative;
}

/* Przycisk polajkowania - przy dacie */
.etnh-like-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 3px 6px;
    transition: transform 0.2s;
}

.etnh-like-btn:hover {
    transform: scale(1.1);
}

.etnh-heart-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #6c757d;
    stroke-width: 2;
    transition: all 0.3s;
}

.etnh-like-btn:hover .etnh-heart-icon {
    fill: #6c757d;
    stroke: #6c757d;
}

.etnh-like-btn.etnh-liked .etnh-heart-icon {
    fill: #6c757d;
    stroke: #6c757d;
    animation: heartBeat 0.3s ease-in-out;
}

.etnh-like-count {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    min-width: 15px;
    text-align: left;
}

/* Link zgłaszania */
.etnh-report-link {
    position: absolute;
    bottom: 5px;
    right: 0;
    font-size: 11px;
    color: var(--etnh-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.etnh-report-link:hover {
    color: #d9534f;
    text-decoration: underline;
}

/* Animacja "pop" przy kliknięciu */
.etnh-like-btn.etnh-heart-pop {
    animation: heartPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPop {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.4);
    }
    50% {
        transform: scale(1.2);
    }
    70% {
        transform: scale(1.35);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.15);
    }
    50% {
        transform: scale(1.05);
    }
}

.etnh-login-notice {
    text-align: center;
    padding: 30px;
    background: var(--etnh-warning-bg);
    border: 1px solid var(--etnh-warning-border);
    border-radius: 8px;
    margin: 20px 0;
}

.etnh-login-notice .button {
    margin-top: 10px;
}

/* === KALENDARZ === */
.etnh-calendar-wrapper {
    margin: 30px 0;
    max-width: 100%;
}

.etnh-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--etnh-primary-dark);
    color: var(--etnh-bg-white);
    border-radius: 8px 8px 0 0;
}

.etnh-calendar-header h3 {
    margin: 0;
    font-size: 20px;
}

.etnh-calendar-prev,
.etnh-calendar-next {
    background: transparent;
    border: 2px solid var(--etnh-bg-white);
    color: var(--etnh-bg-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.etnh-calendar-prev:hover,
.etnh-calendar-next:hover {
    background: var(--etnh-bg-white);
    color: var(--etnh-primary-dark);
}

.etnh-calendar {
    background: var(--etnh-bg-white);
    padding: 20px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px var(--etnh-shadow-medium);
}

.etnh-calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.etnh-calendar-day-name {
    text-align: center;
    font-weight: 600;
    color: var(--etnh-text-dark);
    padding: 10px;
    font-size: 14px;
}

.etnh-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.etnh-calendar-day {
    min-height: 80px;
    padding: 8px;
    border: 1px solid var(--etnh-border-light);
    border-radius: 5px;
    position: relative;
    transition: all 0.3s;
}

.etnh-calendar-day.empty {
    background: #f5f5f5;
}

.etnh-calendar-day.today {
    border: 2px solid var(--etnh-accent-blue);
    background: #ebf5fb;
}

.etnh-calendar-day.has-events {
    background: #fff9e6;
    border-color: var(--etnh-star-color);
    cursor: pointer;
}

.etnh-calendar-day.has-events:hover {
    background: var(--etnh-warning-bg);
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.etnh-calendar-day .day-number {
    display: block;
    font-weight: 600;
    color: var(--etnh-text-dark);
    margin-bottom: 5px;
}

.etnh-calendar-day .events-list {
    font-size: 11px;
}

.etnh-calendar-day .calendar-event {
    display: block;
    padding: 3px 5px;
    margin-bottom: 3px;
    background: var(--etnh-accent-blue);
    color: var(--etnh-bg-white);
    text-decoration: none;
    border-radius: 3px;
    transition: background 0.2s;
}

.etnh-calendar-day .calendar-event:hover {
    background: var(--etnh-accent-blue-dark);
}

.etnh-calendar-day .event-title {
    display: block;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.etnh-calendar-day .event-city {
    display: block;
    font-size: 10px;
    opacity: 0.9;
}

/* === RESPONSYWNOŚĆ === */
@media (max-width: 768px) {
    /* Pojedyncze wydarzenie */
    .etnh-event-hero {
        padding: 30px 20px;
    }

    .etnh-event-hero-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .etnh-event-hero-image {
        max-width: 200px;
        width: auto;
        margin: 0 auto;
    }

    .etnh-event-hero-image img {
        max-width: 200px;
        width: auto;
    }
    
    .etnh-event-title {
        font-size: 28px;
    }
    
    .etnh-event-tagline {
        font-size: 16px;
    }
    
    .etnh-event-key-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .etnh-key-info-item {
        padding: 15px;
    }
    
    .etnh-event-content-main {
        padding: 25px 20px;
    }
    
    .etnh-event-description h2 {
        font-size: 22px;
    }
    
    .etnh-event-text {
        font-size: 15px;
    }
    
    /* Podsumowanie ocen */
    .etnh-summary-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .etnh-rating-number {
        font-size: 42px;
    }
    
    .etnh-rating-breakdown {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .etnh-rating-breakdown h4 {
        font-size: 16px;
    }
    
    .etnh-breakdown-label {
        font-size: 12px;
    }
    
    .etnh-progress-bar {
        width: 110px;
        height: 55px;
        margin: 15px auto 8px;
    }
    
    .etnh-progress-bar::before {
        width: 110px;
        height: 55px;
        border-radius: 110px 110px 0 0;
    }
    
    .etnh-progress-bar::after {
        width: 80px;
        height: 40px;
        top: 15px;
        left: 15px;
        border-radius: 80px 80px 0 0;
    }
    
    .etnh-progress-fill {
        width: 110px;
        height: 55px;
        top: 55px;
        border-radius: 0 0 110px 110px;
    }
    
    .etnh-progress-bar .gauge-value {
        font-size: 16px;
        bottom: 5px;
    }
    
    /* Formularz oceny */
    .etnh-rating-personal {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .etnh-rating-form {
        padding: 20px;
    }
    
    .etnh-rating-categories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .etnh-rating-category {
        padding: 15px;
    }
    
    /* Lista wydarzeń */
    .etnh-month-header {
        font-size: 22px;
        margin-bottom: 16px;
    }
    
    .etnh-month-section {
        margin-bottom: 30px;
    }
    
    .etnh-events-table tbody tr {
        flex-wrap: wrap;
        padding: 12px;
        gap: 10px;
        justify-content: space-between;
    }
    
    .etnh-event-date {
        min-width: 60px;
        padding: 10px;
    }
    
    .etnh-event-date .day {
        font-size: 28px;
    }
    
    .etnh-event-date .month {
        font-size: 11px;
    }
    
    .etnh-event-logo {
        width: 50px;
        height: 50px;
    }
    
    .etnh-event-name a {
        font-size: 16px;
    }
    
    .etnh-event-content {
        flex: 1 1 100%;
        order: 3;
    }
    
    .etnh-event-rating {
        min-width: auto;
        align-items: flex-start;

        align-items: center;
        border: 1px solid #f0f0f0;
        padding: 5px;
        border-radius: 10px;
    }
    
    .etnh-event-excerpt {
        font-size: 13px;
    }
    
    .etnh-calendar-day {
        min-height: 60px;
        font-size: 12px;
    }
    
    .etnh-rating-details {
        grid-template-columns: 1fr;
    }
    
    .etnh-event-meta-info {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    .etnh-events-table thead {
        display: none; /* Zawsze ukryj nagłówki tabelki */
    }
}

/* === ŁADOWANIE === */
.etnh-loading {
    text-align: center;
    padding: 20px;
    color: var(--etnh-text-muted);
}

.etnh-loading::after {
    content: "...";
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: ".";
    }
    40% {
        content: "..";
    }
    60%, 100% {
        content: "...";
    }
}
.etnh-event .post-featured-img {
    display: none;
}

.etnh-rating-breakdown h4 {
    text-align: center;
}

/* Modal zgłaszania */
.etnh-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.etnh-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.etnh-modal-content {
    position: relative;
    background: var(--etnh-bg-white);
    border-radius: 8px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 2;
    box-shadow: 0 10px 40px var(--etnh-shadow-dark);
}

.etnh-modal-content h3 {
    margin: 0 0 20px 0;
    font-size: 22px;
    color: var(--etnh-text-dark);
}

.etnh-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--etnh-text-muted);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.etnh-modal-close:hover {
    color: #d9534f;
}

.etnh-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.etnh-btn-secondary {
    background: #6c757d;
    color: #fff;
}

.etnh-btn-secondary:hover {
    background: #5a6268;
}

.etnh-message {
    padding: 12px 15px;
    border-radius: 4px;
    margin-top: 15px;
}

.etnh-message-success {
    background: var(--etnh-success-bg);
    border: 1px solid #c3e6cb;
    color: var(--etnh-success-text);
}

.etnh-message-error {
    background: var(--etnh-error-bg);
    border: 1px solid #f5c6cb;
    color: var(--etnh-error-text);
}

/* === CHMURA WYDARZEŃ === */


.etnh-all-events-cloud h3 {
    /* Style dziedziczony z .etnh-section-heading i .etnh-section-heading-small */
}



.etnh-cloud-month {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.etnh-cloud-month:last-child {
    margin-bottom: 0;
}

.etnh-cloud-month-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--etnh-text-dark);
    text-transform: capitalize;
    flex-shrink: 0;
}

.etnh-cloud-events {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.etnh-cloud-event-link {
    display: inline-block;
    padding: 1px 8px;
    background: #eeeeee;
    border: 1px solid #e0e4e8;
    border-radius: 6px;
    color: #000000;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s 
ease;
}
.etnh-cloud-event-link:hover {
    background: #000;
    border-color: #000;
    color: var(--etnh-bg-white);
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
}

.etnh-cloud-event-link[data-current="true"] {
    background: var(--etnh-primary-dark);
    border-color: var(--etnh-primary-dark);
    color: var(--etnh-bg-white);
    font-weight: 600;
}

.etnh-cloud-event-link[data-current="true"]:hover {
    background: var(--etnh-primary-darker);
    border-color: var(--etnh-primary-darker);
}