/**
 * SRZ Structures - Frontend Styles
 *
 * Štýly pre všetky frontend shortcodes modulu Structures
 *
 * @package Srz_Rada
 * @since 1.0.0
 */

/* SRZ Štruktúry Frontend - spoločné štýly */
.srz-struktury-frontend {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    color: #1f2937;
}

.srz-struktury-frontend *,
.srz-struktury-frontend *::before,
.srz-struktury-frontend *::after {
    box-sizing: border-box;
}

/* Dashicons štýly */
.srz-struktury-frontend .dashicons {
    font-family: dashicons;
    display: inline-block;
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 1;
    font-weight: normal;
    font-style: normal;
    speak: never;
    text-decoration: inherit;
    text-transform: none;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    vertical-align: middle;
}

.srz-struktury-frontend .srz-notice {
    padding: 16px 20px;
    background: #f3f4f6;
    border-left: 4px solid #9ca3af;
    color: #6b7280;
    border-radius: 4px;
}

/* ============================================
   KARTY - Grid layout (1 stĺpec)
   ============================================ */
.srz-odbory-frontend .srz-view-cards,
.srz-odbory-frontend .srz-view-content.srz-view-cards,
.srz-full-frontend .srz-view-cards,
.srz-full-frontend .srz-view-content.srz-view-cards {
    flex-direction: column;
    gap: 20px;
}

.srz-odbory-frontend .srz-struktura-card,
.srz-full-frontend .srz-struktura-card {
    width: 100%;
}

.srz-struktura-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    margin-bottom: 0;
    overflow: hidden;
}

.srz-struktura-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e5e7eb;
}

.srz-struktura-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* Ikony komisií - oranžová farba ako na front-page-organy */
.srz-komisia-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(255, 152, 0, 0.1);
    color: #FF9800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.srz-komisia-icon svg {
    width: 100%;
    height: 100%;
}

.srz-struktura-icon-placeholder {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #018763 0%, #015a42 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.srz-struktura-icon-placeholder .dashicons {
    color: #fff;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.srz-struktura-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    flex-grow: 1;
}

.srz-struktura-title {
    flex-grow: 1;
}

.srz-struktura-title h3 {
    margin: 0 0 4px 0;
}

.srz-struktura-location {
    font-size: 13px;
    color: #6b7280;
}

.srz-member-count {
    font-size: 13px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 6px 12px;
    border-radius: 100px;
    white-space: nowrap;
}

.srz-struktura-members {
    padding: 16px 24px;
}

.srz-member-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.srz-member-row:last-child {
    border-bottom: none;
}

.srz-member-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.srz-member-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.srz-avatar-placeholder {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #0369a1;
}

.srz-member-info {
    flex-grow: 1;
    min-width: 0;
}

.srz-member-name {
    font-weight: 500;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.srz-member-funkcia {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
}

.srz-member-contact-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
    font-size: 13px;
}

.srz-member-contact-inline .srz-contact-link {
    width: auto;
    height: auto;
    padding: 0;
    background: none;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #6b7280;
}

.srz-member-contact-inline .srz-contact-link:hover {
    background: none;
    color: #018763;
}

.srz-member-contact-inline .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.srz-member-contact-inline .srz-contact-text {
    color: inherit;
}

.srz-member-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
    font-size: 13px;
    margin-left: auto;
    text-align: right;
}

.srz-member-contact a {
    color: #018763;
    text-decoration: none;
}

.srz-member-contact a:hover {
    text-decoration: underline;
}

.srz-member-contact span {
    color: #1f2937;
}

.srz-contact-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 6px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s;
}

.srz-contact-link:hover {
    background: #018763;
    color: #fff;
}

.srz-contact-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Osoby grid */
.srz-osoby-frontend .srz-osoby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.srz-osoby-frontend .srz-osoba-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.srz-osoby-frontend .srz-osoba-avatar {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.srz-osoby-frontend .srz-osoba-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.srz-osoby-frontend .srz-osoba-avatar-placeholder {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #018763 0%, #015a42 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.srz-osoby-frontend .srz-osoba-info {
    flex-grow: 1;
    min-width: 0;
}

.srz-osoby-frontend .srz-osoba-name {
    font-weight: 600;
    font-size: 16px;
    color: #1f2937;
}

.srz-osoby-frontend .srz-osoba-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    margin-top: 8px;
}

.srz-osoby-frontend .srz-osoba-contact a {
    color: #018763;
    text-decoration: none;
}

.srz-osoby-frontend .srz-osoba-contact a:hover {
    text-decoration: underline;
}

.srz-osoby-frontend .srz-osoba-contact span {
    color: #1f2937;
}

/* Filter bar pre osoby */
.srz-osoby-frontend .srz-filter-bar {
    margin-bottom: 20px;
}

.srz-osoby-frontend .srz-filter-bar input {
    width: 100%;
    max-width: 400px;
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
}

/* ============================================
   ŠTATISTIKY - kompaktný dizajn
   ============================================ */
.srz-full-frontend .srz-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .srz-full-frontend .srz-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .srz-full-frontend .srz-stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.srz-full-frontend .srz-stat-card {
    background: linear-gradient(135deg, #018763 0%, #015a42 100%);
    border-radius: 10px;
    padding: 16px 20px;
    text-align: center;
    color: #fff;
}

.srz-full-frontend .srz-stat-card.stat-secondary {
    background: linear-gradient(135deg, #e3651c 0%, #c55518 100%);
}

.srz-full-frontend .srz-stat-card.stat-tertiary {
    background: linear-gradient(135deg, #1eaace 0%, #1890b0 100%);
}

.srz-full-frontend .srz-stat-card.stat-quaternary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.srz-full-frontend .srz-stat-number {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 4px;
}

.srz-full-frontend .srz-stat-label {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 500;
}

/* ============================================
   FILTER BAR - s ikonami
   ============================================ */
.srz-full-frontend .srz-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.srz-full-frontend .srz-filter-bar-combined {
    align-items: center;
}

/* Filter groups */
.srz-full-frontend .filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.srz-full-frontend .filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filter search */
.srz-full-frontend .filter-search {
    flex: 0 0 auto;
    min-width: 200px;
}

.srz-full-frontend .filter-search label {
    display: none;
}

.srz-full-frontend .filter-search input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    min-width: 220px;
    background: #fff;
    transition: all 0.2s;
}

.srz-full-frontend .filter-search input:focus {
    border-color: #018763;
    outline: none;
    box-shadow: 0 0 0 3px rgba(1, 135, 99, 0.1);
}

.srz-full-frontend .filter-search input::placeholder {
    color: #9ca3af;
}

.srz-full-frontend .srz-filter-search {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.srz-full-frontend .srz-search-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    transition: all 0.2s;
}

.srz-full-frontend .srz-search-input:focus {
    outline: none;
    border-color: #018763;
    box-shadow: 0 0 0 3px rgba(1, 135, 99, 0.1);
}

/* ============================================
   UNIFIED CHIP STYLES - rovnaké ako admin
   ============================================ */
.srz-full-frontend .srz-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.srz-full-frontend .srz-chip-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 4px;
}

.srz-full-frontend .srz-chip {
    /* Reset pre WordPress button štýly */
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
    height: auto;
    min-height: 0;
    /* Vlastné štýly */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    gap: 6px;
    line-height: 1.2;
    vertical-align: middle;
    text-align: center;
    box-sizing: border-box;
}

.srz-full-frontend .srz-chip:hover {
    border-color: #d1d5db;
    background: #f3f4f6;
}

.srz-full-frontend .srz-chip.active {
    background: #018763;
    border-color: #018763;
    color: #fff;
}

.srz-full-frontend .srz-chip .count {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 100px;
    font-size: 10px;
}

.srz-full-frontend .srz-chip.active .count {
    background: rgba(255, 255, 255, 0.2);
}

.srz-full-frontend .srz-chip-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
    vertical-align: middle;
    display: block;
}

.srz-full-frontend .srz-chip.active .srz-chip-icon {
    filter: brightness(0) invert(1);
}

.srz-full-frontend .srz-filter-select {
    flex-shrink: 0;
}

.srz-full-frontend .srz-filter-select select,
.srz-full-frontend .srz-funkcia-filter {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    background: #fff;
    cursor: pointer;
    min-width: 160px;
    transition: all 0.2s;
}

.srz-full-frontend .srz-filter-select select:hover,
.srz-full-frontend .srz-funkcia-filter:hover {
    border-color: #018763;
}

.srz-full-frontend .srz-filter-select select:focus,
.srz-full-frontend .srz-funkcia-filter:focus {
    outline: none;
    border-color: #018763;
    box-shadow: 0 0 0 3px rgba(1, 135, 99, 0.1);
}

.srz-full-frontend .srz-view-toggle {
    display: flex;
    gap: 4px;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 8px;
    margin-left: auto;
}

.srz-full-frontend .srz-view-toggle button {
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.srz-full-frontend .srz-view-toggle button:hover {
    color: #374151;
}

.srz-full-frontend .srz-view-toggle button.active {
    background: #fff;
    color: #018763;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.srz-full-frontend .srz-view-toggle button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Fallback pre srz-view-btn triedu */
.srz-full-frontend .srz-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
}

.srz-full-frontend .srz-view-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.srz-full-frontend .srz-view-btn.active {
    background: #018763;
    color: #fff;
}

.srz-full-frontend .srz-view-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.srz-full-frontend .srz-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #d1d5db;
}

.srz-full-frontend .srz-empty-state .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #9ca3af;
    margin-bottom: 16px;
}

.srz-full-frontend .srz-empty-state h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #374151;
}

.srz-full-frontend .srz-empty-state p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

/* Prázdny revír bez členov */
.srz-full-frontend .srz-no-members {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    color: #9ca3af;
    font-size: 14px;
    font-style: italic;
}

.srz-full-frontend .srz-no-members .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #9ca3af;
}

/* ============================================
   DATA TABLE
   ============================================ */
.srz-full-frontend .srz-view-list {
    overflow-x: auto;
}

.srz-full-frontend .srz-data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.srz-full-frontend .srz-data-table thead {
    background: #f8fafc;
}

.srz-full-frontend .srz-data-table th {
    padding: 8px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}

.srz-full-frontend .srz-data-table td {
    padding: 6px 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #374151;
}

.srz-full-frontend .srz-data-table tbody tr:last-child td {
    border-bottom: none;
}

.srz-full-frontend .srz-data-table tbody tr:hover {
    background: #f8fafc;
}

.srz-full-frontend .srz-table-row.hidden {
    display: none;
}

.srz-full-frontend .srz-table-person {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.srz-full-frontend .srz-table-person .srz-funkcia-badge {
    width: 100%;
}

.srz-full-frontend .srz-table-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.srz-full-frontend .srz-table-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.srz-full-frontend .srz-table-avatar .srz-avatar-placeholder {
    width: 40px;
    height: 40px;
    font-size: 12px;
}

.srz-full-frontend .srz-table-name {
    font-weight: 500;
    color: #1f2937;
}

.srz-full-frontend .srz-table-funkcia-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.srz-full-frontend .srz-table-contact-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
}

.srz-full-frontend .srz-table-contact-inline .srz-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.15s ease;
}

.srz-full-frontend .srz-table-contact-inline .srz-contact-item:hover {
    color: #018763;
}

.srz-full-frontend .srz-table-contact-inline .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.srz-full-frontend .srz-table-contact-inline .srz-contact-text {
    color: inherit;
}

.srz-full-frontend .srz-funkcia-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
}

.srz-funkcia-odbor-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ============================================
   REVÍRY - Header content (názov, číslo, SMS, kopírovať)
   Desktop/Tablet: všetko v jednom riadku
   Mobile: 4 samostatné riadky
   ============================================ */

/* Desktop/Tablet - všetko v jednom riadku */
.srz-reviry-frontend .srz-revir-header-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
    flex-wrap: nowrap;
}

.srz-reviry-frontend .srz-revir-header-content h3.srz-revir-nazov {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    flex-grow: 0;  /* Názov má len svoju šírku, nerastie */
}

.srz-full-frontend .srz-revirne-cislo {
    color: #6b7280;
    font-weight: 400;
    font-size: inherit;
}

/* Revírne číslo, kód a kopírovanie v jednom riadku */
.srz-revir-code-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* SMS ceny v hlavičke revíru */
.srz-revir-sms-prices {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    padding: 6px 12px;
    background: linear-gradient(135deg, #018763 0%, #016d50 100%);
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.srz-sms-price {
    font-weight: 600;
}

.srz-sms-price-adult {
    border-right: 1px solid rgba(255,255,255,0.3);
    padding-right: 10px;
}

.srz-sms-price-kids {
    opacity: 0.9;
    font-size: 11px;
}

.srz-full-frontend .srz-revir-code {
    display: inline-block;
    padding: 2px 6px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-family: monospace;
    font-size: inherit;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: all;
    margin-left: 8px;  /* Väčšia medzera pred SMS kódom */
}

.srz-full-frontend .srz-revir-code:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.srz-full-frontend .srz-revir-code.copied {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.srz-full-frontend .srz-copy-btn {
    /* Reset pre WordPress button štýly */
    appearance: none;
    -webkit-appearance: none;
    margin: 0 0 0 4px;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
    height: auto;
    min-height: 0;
    /* Štýly tlačidla */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 100px;
    background: #fff;
    border: 1px solid #e5e7eb;
    font-size: 0.85em;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
    vertical-align: middle;
}

.srz-full-frontend .srz-copy-btn:hover {
    border-color: #d1d5db;
    background: #f3f4f6;
}

.srz-full-frontend .srz-copy-btn.copied {
    background: #018763;
    border-color: #018763;
    color: #fff;
}

.srz-full-frontend .srz-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.srz-full-frontend .srz-contact-text {
    font-size: 13px;
    color: #374151;
}

.srz-full-frontend a.srz-contact-item:hover .srz-contact-text {
    color: #018763;
}


.srz-full-frontend .srz-table-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.srz-full-frontend .srz-table-contact a {
    color: #018763;
    text-decoration: none;
}

.srz-full-frontend .srz-table-contact a:hover {
    text-decoration: underline;
}

.srz-full-frontend .srz-table-contact span {
    color: #1f2937;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .srz-full-frontend .srz-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .srz-full-frontend .srz-filter-search {
        max-width: none;
    }

    .srz-full-frontend .srz-chip-group {
        justify-content: flex-start;
    }

    .srz-full-frontend .srz-view-toggle {
        align-self: flex-end;
    }

    .srz-full-frontend .srz-data-table th,
    .srz-full-frontend .srz-data-table td {
        padding: 6px 10px;
    }

    .srz-full-frontend .srz-stat-number {
        font-size: 22px;
    }

    .srz-full-frontend .srz-stat-label {
        font-size: 11px;
    }

    .srz-full-frontend .srz-contact-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .srz-full-frontend .srz-chip {
        padding: 5px 10px;
        font-size: 11px;
    }

    .srz-full-frontend .srz-view-btn {
        width: 32px;
        height: 32px;
    }
}

/* Scrollable chip group pre veľa položiek */
.srz-struktury-frontend .srz-chip-group.scrollable {
    max-height: 100px;
    overflow-y: auto;
    padding: 4px;
    margin: -4px;
}

.srz-struktury-frontend .srz-chip-group.scrollable::-webkit-scrollbar {
    width: 6px;
}

.srz-struktury-frontend .srz-chip-group.scrollable::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.srz-struktury-frontend .srz-chip-group.scrollable::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.srz-struktury-frontend .srz-chip-group.scrollable::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Responzívne štýly pre karty členov */
@media (max-width: 768px) {
    .srz-struktura-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .srz-member-row {
        flex-wrap: wrap;
    }

    .srz-member-contact {
        width: 100%;
        justify-content: flex-end;
        margin-top: 8px;
    }
}

/* ============================================
   ORGANIZÁCIE SHORTCODE - Zoznam tabuľka
   ============================================ */

/* List table base */
.srz-full-frontend .srz-list-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.srz-full-frontend .srz-list-table thead {
    background: #f8fafc;
}

.srz-full-frontend .srz-list-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}

.srz-full-frontend .srz-list-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #374151;
}

.srz-full-frontend .srz-list-table tbody tr:last-child td {
    border-bottom: none;
}

.srz-full-frontend .srz-list-table tbody tr:hover {
    background: #f8fafc;
}

.srz-full-frontend .srz-list-table tbody tr.hidden {
    display: none;
}

/* Name cell with avatar */
.srz-full-frontend .org-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.srz-full-frontend .org-logo-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #018763 0%, #015a42 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.srz-full-frontend .org-logo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.srz-full-frontend .org-logo-small .placeholder {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.srz-full-frontend .org-name-text {
    font-weight: 500;
    color: #1f2937;
}

/* Type badges */
.srz-full-frontend .org-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* MO - zelená (miestna organizácia) */
.srz-full-frontend .org-type-badge.org-type-mo {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #047857;
}

/* MsO - žltá/oranžová (mestská organizácia) */
.srz-full-frontend .org-type-badge.org-type-mso {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
}

/* Funkcia badge - modrá (bez triedy, cez inline štýl sa prepisuje) */
.srz-full-frontend .org-type-badge:not(.org-type-mo):not(.org-type-mso) {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0369a1;
}

/* Contact column */
.srz-full-frontend .org-contact a {
    color: #018763;
    text-decoration: none;
    font-size: 13px;
}

.srz-full-frontend .org-contact a:hover {
    text-decoration: underline;
}

.srz-full-frontend .org-contact div {
    margin-bottom: 2px;
}

/* ============================================
   ORGANIZÁCIE SHORTCODE - Podľa organizácií
   ============================================ */
.srz-full-frontend .srz-organizacie-orgs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.srz-full-frontend .srz-vybor-org-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.srz-full-frontend .srz-vybor-org-card.hidden {
    display: none;
}

.srz-full-frontend .org-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e5e7eb;
}

.srz-full-frontend .org-card-header .org-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.srz-full-frontend .org-card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.srz-full-frontend .org-card-header .member-count {
    font-size: 13px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 6px 12px;
    border-radius: 100px;
}

.srz-full-frontend .org-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 20px;
    background: #fafafa;
    border-bottom: 1px solid #e5e7eb;
}

.srz-full-frontend .org-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
}

.srz-full-frontend .org-detail .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #9ca3af;
}

.srz-full-frontend .org-detail a {
    color: #018763;
    text-decoration: none;
}

.srz-full-frontend .org-detail a:hover {
    text-decoration: underline;
}

.srz-full-frontend .org-card-members {
    padding: 16px 20px;
}

.srz-full-frontend .org-card-members .member-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    gap: 16px;
}

.srz-full-frontend .org-card-members .member-row:last-child {
    border-bottom: none;
}

.srz-full-frontend .org-card-members .member-row.hidden {
    display: none;
}

.srz-full-frontend .org-card-members .member-funkcia {
    flex: 0 0 120px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

.srz-full-frontend .org-card-members .member-name {
    flex: 1;
    font-weight: 500;
    color: #1f2937;
}

.srz-full-frontend .org-card-members .member-contact {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    text-align: right;
}

.srz-full-frontend .org-card-members .member-email {
    color: #018763;
    text-decoration: none;
}

.srz-full-frontend .org-card-members .member-email:hover {
    text-decoration: underline;
}

.srz-full-frontend .org-card-members .member-phone {
    color: #6b7280;
}

/* ============================================
   ORGANIZÁCIE SHORTCODE - Iba organizácie grid
   ============================================ */
.srz-full-frontend .srz-only-orgs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.srz-full-frontend .srz-org-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.srz-full-frontend .srz-org-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.srz-full-frontend .srz-org-card.hidden {
    display: none;
}

.srz-full-frontend .srz-org-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e5e7eb;
}

.srz-full-frontend .srz-org-logo {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: linear-gradient(135deg, #018763 0%, #015a42 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.srz-full-frontend .srz-org-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.srz-full-frontend .srz-org-logo .placeholder {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.srz-full-frontend .srz-org-info {
    flex: 1;
    min-width: 0;
}

.srz-full-frontend .srz-org-info h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.srz-full-frontend .srz-org-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #6b7280;
}

.srz-full-frontend .srz-org-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.srz-full-frontend .srz-org-meta .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.srz-full-frontend .srz-org-card-body {
    padding: 16px 20px;
}

.srz-full-frontend .srz-org-detail {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    color: #4b5563;
}

.srz-full-frontend .srz-org-detail .dashicons {
    color: #9ca3af;
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.srz-full-frontend .srz-org-detail a {
    color: #018763;
    text-decoration: none;
}

.srz-full-frontend .srz-org-detail a:hover {
    text-decoration: underline;
}

/* View toggle for org list/orgs/only-orgs */
.srz-full-frontend .srz-org-list,
.srz-full-frontend .srz-organizacie-orgs,
.srz-full-frontend .srz-only-orgs-grid {
    display: none;
}

.srz-full-frontend .srz-org-list.active,
.srz-full-frontend .srz-organizacie-orgs.active,
.srz-full-frontend .srz-only-orgs-grid.active {
    display: block;
}

.srz-full-frontend .srz-only-orgs-grid.active {
    display: grid;
}

.srz-full-frontend .srz-organizacie-orgs.active {
    display: flex;
}

/* ============================================
   RESPONSIVE - Organizácie
   ============================================ */
@media (max-width: 768px) {
    .srz-full-frontend .srz-list-table th,
    .srz-full-frontend .srz-list-table td {
        padding: 10px 12px;
    }

    .srz-full-frontend .org-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .srz-full-frontend .org-card-details {
        flex-direction: column;
        gap: 8px;
    }

    .srz-full-frontend .org-card-members .member-row {
        flex-wrap: wrap;
    }

    .srz-full-frontend .org-card-members .member-funkcia {
        flex: 0 0 100%;
    }

    .srz-full-frontend .org-card-members .member-contact {
        flex: 0 0 100%;
        text-align: left;
        margin-top: 4px;
    }

    .srz-full-frontend .srz-only-orgs-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   RESPONSIVE - Revíry (kartové zobrazenie)
   ============================================ */
@media (max-width: 767px) {
    /* Skryť telefónne číslo na mobile v kartovom zobrazení */
    .srz-reviry-frontend .srz-view-cards .srz-contact-item[href^="tel:"],
    .srz-reviry-frontend .srz-view-cards a[href^="tel:"] {
        display: none !important;
    }

    /* Zmenšiť karty na mobile */
    .srz-reviry-frontend .srz-struktura-card {
        margin-bottom: 15px;
    }

    .srz-reviry-frontend .srz-struktura-header {
        padding: 15px;
        flex-wrap: wrap;
    }

    /* Revír header content - 3 riadky na mobile: názov+číslo, SMS, skopírovať */
    .srz-reviry-frontend .srz-revir-header-content {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
        width: 100%;
        margin-top: 10px;
    }

    .srz-reviry-frontend .srz-revir-header-content h3.srz-revir-nazov {
        font-size: 16px;
        font-weight: 600;
        flex: 0 0 auto;
    }

    .srz-reviry-frontend .srz-revir-header-content .srz-revirne-cislo {
        font-size: 14px;
        color: #6b7280;
        flex: 0 0 auto;
    }

    /* SMS a tlačidlo na vlastnom riadku */
    .srz-reviry-frontend .srz-revir-header-content .srz-revir-code {
        width: 100%;
        font-size: 13px;
        padding: 6px 10px;
    }

    .srz-reviry-frontend .srz-revir-header-content .srz-copy-btn {
        width: 100%;
        margin-left: 0;
        padding: 8px 16px;
    }

    .srz-reviry-frontend .srz-struktura-header h3 {
        font-size: 16px;
        flex: 1 1 100%;
        margin-top: 10px;
    }

    .srz-reviry-frontend .srz-member-row {
        padding: 10px 15px;
    }

    .srz-reviry-frontend .srz-member-avatar {
        width: 40px;
        height: 40px;
    }

    .srz-reviry-frontend .srz-member-name {
        font-size: 14px;
    }

    .srz-reviry-frontend .srz-member-funkcia {
        font-size: 12px;
    }

    /* SMS ceny - mobile */
    .srz-revir-sms-prices {
        margin-left: 0;
        margin-top: 8px;
        flex-basis: 100%;
        padding: 5px 10px;
        font-size: 11px;
        gap: 8px;
    }

    .srz-sms-price-kids {
        font-size: 10px;
    }
}

/* ============================================
   SRZ Ryb Stráž a Hospodári - Špecifické štýly
   ============================================ */

/* Revír badge - tlačidlo s ikonkou */
.srz-ryb-straz-frontend .srz-revir-badge,
.srz-full-frontend .srz-revir-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    background: #f0fdf4;
    color: #15803d;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 6px;
}

.srz-ryb-straz-frontend .srz-revir-badge .dashicons,
.srz-full-frontend .srz-revir-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.srz-ryb-straz-frontend .srz-revir-badge small,
.srz-full-frontend .srz-revir-badge small {
    opacity: 0.7;
    font-size: 11px;
}

/* Responsive pre Ryb Stráž */
@media (max-width: 576px) {
    .srz-ryb-straz-frontend .srz-revir-badge,
    .srz-full-frontend .srz-revir-badge {
        font-size: 11px;
        padding: 3px 8px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ORGANIZAČNO-PRÁVNY ODBOR SHORTCODE
   ═══════════════════════════════════════════════════════════════════════════ */

.srz-org-pravny-frontend {
    max-width: 600px;
}

.srz-org-pravny-frontend.srz-full-frontend,
.srz-struktura-card .srz-org-pravny-frontend {
    max-width: none;
}

.srz-struktura-card .srz-org-pravny-section {
    padding: 0 24px;
}

.srz-struktura-card .srz-org-pravny-section:last-child {
    padding-bottom: 20px;
}

.srz-org-pravny-section {
    margin-bottom: 24px;
}

.srz-org-pravny-heading {
    font-size: 18px;
    font-weight: 600;
    color: #018763;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #018763;
}

.srz-org-pravny-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.srz-org-pravny-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 15px;
}

.srz-org-pravny-list li:last-child {
    border-bottom: none;
}

.srz-org-pravny-list li:hover {
    background: #f9fafb;
}

.srz-org-pravny-list .dashicons {
    color: #018763;
    font-size: 18px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.srz-org-pravny-list a {
    color: #374151;
    text-decoration: none;
}

.srz-org-pravny-list a:hover {
    color: #018763;
}

/* Section header v kartách */
.srz-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.srz-section-header .dashicons {
    color: #018763;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.srz-intro-row {
    background: #f0f9ff;
    border-left: 4px solid #018763;
}

.srz-intro-text {
    line-height: 1.7;
    color: #1e3a5f;
    font-size: 15px;
}

/* ============================================
   ORGANIZAČNO-PRÁVNY ÚSEK - Kontakty layout
   ============================================ */
.srz-org-pravny-kontakty .srz-struktura-card {
    max-width: none;
}

.srz-org-pravny-kontakty .srz-struktura-header {
    padding: 20px 24px;
}

.srz-org-pravny-kontakty .srz-struktura-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.srz-odbor-intro-text {
    padding: 20px 24px;
    background: #f0f9ff;
    border-left: 4px solid #018763;
    margin: 0;
    line-height: 1.7;
    color: #1e3a5f;
    font-size: 15px;
}

.srz-kontakty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0;
    border-top: 1px solid #e5e7eb;
}

.srz-kontakt-skupina {
    padding: 20px 24px;
    border-right: 1px solid #e5e7eb;
}

.srz-kontakt-skupina:last-child {
    border-right: none;
}

.srz-kontakt-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin-bottom: 12px;
}

.srz-kontakt-label .dashicons {
    color: #018763;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.srz-kontakt-hodnoty {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.srz-kontakt-email,
.srz-kontakt-telefon {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s ease;
}

.srz-kontakt-email:hover,
.srz-kontakt-telefon:hover {
    background: #018763;
    border-color: #018763;
    color: #fff;
}

/* Mobile responsivity */
@media (max-width: 600px) {
    .srz-kontakty-grid {
        grid-template-columns: 1fr;
    }

    .srz-kontakt-skupina {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .srz-kontakt-skupina:last-child {
        border-bottom: none;
    }

    .srz-odbor-intro-text {
        padding: 16px 20px;
        font-size: 14px;
    }
}
