/**
 * SLZH Výsledky Plugin Styles
 * Moderný dizajn pre integráciu výsledkov
 * Verzia: 2.0 | Synchronizované s hlavným CSS
 */

/* Variables sú definované v hlavnom CSS - používame ich */

/* === No Data Message === */
.slzh-no-data {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--slzh-text-light, #6b7280);
    background: var(--slzh-bg-light, #f8fafc);
    border-radius: var(--slzh-radius, 12px);
    font-size: 1rem;
}

/* === SÚŤAŽE GRID === */
.slzh-sutaze-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.slzh-sutaz-card {
    background: var(--slzh-bg);
    border-radius: var(--slzh-radius);
    box-shadow: var(--slzh-shadow);
    overflow: hidden;
    text-decoration: none;
    color: var(--slzh-text);
    transition: transform var(--slzh-transition), box-shadow var(--slzh-transition);
    display: flex;
    flex-direction: column;
}

.slzh-sutaz-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--slzh-shadow-hover);
}

.slzh-sutaz-header {
    position: relative;
    background: linear-gradient(135deg, var(--slzh-secondary) 0%, #2a4a7f 100%);
    padding: 1.5rem;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slzh-sutaz-logo {
    max-height: 60px;
    max-width: 150px;
    object-fit: contain;
}

.slzh-sutaz-status-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slzh-status-aktualna .slzh-sutaz-status-badge {
    background: var(--slzh-primary);
    color: white;
}

.slzh-status-buduca .slzh-sutaz-status-badge {
    background: var(--slzh-gold);
    color: var(--slzh-secondary);
}

.slzh-status-ukoncena .slzh-sutaz-status-badge {
    background: var(--slzh-border);
    color: var(--slzh-text-light);
}

.slzh-sutaz-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.slzh-sutaz-title {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--slzh-secondary);
    line-height: 1.3;
}

.slzh-sutaz-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.slzh-sutaz-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--slzh-text-light);
}

.slzh-sutaz-meta svg {
    flex-shrink: 0;
    color: var(--slzh-primary);
}

.slzh-sutaz-stats {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--slzh-border);
    margin-top: auto;
}

.slzh-sutaz-stats .slzh-stat {
    font-size: 0.85rem;
    color: var(--slzh-text-light);
}

.slzh-sutaz-stats .slzh-stat strong {
    color: var(--slzh-secondary);
}

/* === PORADIE TABLE === */
.slzh-poradie-wrapper {
    margin: 2rem 0;
}

.slzh-poradie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.slzh-poradie-header h3 {
    margin: 0;
    color: var(--slzh-secondary);
}

.slzh-filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--slzh-border);
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}

.slzh-poradie-tables {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.slzh-poradie-table {
    background: var(--slzh-bg);
    border-radius: var(--slzh-radius);
    box-shadow: var(--slzh-shadow);
    overflow: hidden;
}

.slzh-kategoria-title {
    margin: 0;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--slzh-secondary) 0%, #2a4a7f 100%);
    color: white;
    font-size: 1rem;
}

.slzh-table {
    width: 100%;
    border-collapse: collapse;
}

.slzh-table th,
.slzh-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--slzh-border);
}

.slzh-table th {
    background: #f9fafb;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--slzh-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slzh-table tbody tr:hover {
    background: #f9fafb;
}

.slzh-table tbody tr:last-child td {
    border-bottom: none;
}

.slzh-col-poradie {
    width: 60px;
    text-align: center !important;
}

.slzh-col-body,
.slzh-col-sutaze,
.slzh-col-najlepsie {
    width: 100px;
    text-align: center !important;
}

.slzh-top-1 {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 100%);
}

.slzh-top-2 {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.1) 0%, transparent 100%);
}

.slzh-top-3 {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.1) 0%, transparent 100%);
}

.slzh-medal {
    font-size: 1.2rem;
}

.slzh-competitor-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--slzh-text);
    text-decoration: none;
}

.slzh-competitor-link:hover {
    color: var(--slzh-primary);
}

.slzh-competitor-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* === TOP USPECHY === */
.slzh-top-uspechy {
    margin: 0;
}

.slzh-section-title {
    margin: 0 0 1.5rem 0;
    color: var(--slzh-secondary);
    font-size: 1.5rem;
}

.slzh-uspechy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.slzh-uspech-card {
    background: var(--slzh-bg);
    border-radius: var(--slzh-radius);
    box-shadow: var(--slzh-shadow);
    padding: 1.5rem;
    text-align: center;
    transition: transform var(--slzh-transition);
}

.slzh-uspech-card:hover {
    transform: translateY(-3px);
}

.slzh-uspech-gold {
    border-top: 4px solid var(--slzh-gold);
}

.slzh-uspech-icon {
    margin-bottom: 1rem;
    color: var(--slzh-gold);
}

.slzh-uspech-label {
    font-size: 0.85rem;
    color: var(--slzh-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.slzh-uspech-name {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--slzh-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.slzh-uspech-name:hover {
    color: var(--slzh-primary);
}

.slzh-uspech-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slzh-primary);
    margin-bottom: 0.25rem;
}

.slzh-uspech-meta {
    font-size: 0.85rem;
    color: var(--slzh-text-light);
}

/* TOP 3 */
.slzh-top3 {
    background: var(--slzh-bg);
    border-radius: var(--slzh-radius);
    box-shadow: var(--slzh-shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.slzh-top3 h4 {
    margin: 0 0 1rem 0;
    color: var(--slzh-secondary);
}

.slzh-top3-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.slzh-top3-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
}

.slzh-top3-rank {
    font-size: 1.25rem;
}

.slzh-top3-name {
    flex: 1;
    font-weight: 600;
    color: var(--slzh-secondary);
    text-decoration: none;
}

.slzh-top3-name:hover {
    color: var(--slzh-primary);
}

.slzh-top3-time {
    font-weight: 700;
    color: var(--slzh-primary);
}

.slzh-top3-cat {
    font-size: 0.85rem;
    color: var(--slzh-text-light);
}

/* Statistiky */
.slzh-statistiky {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--slzh-secondary) 0%, #2a4a7f 100%);
    border-radius: var(--slzh-radius);
}

.slzh-stat-item {
    text-align: center;
}

.slzh-stat-item .slzh-stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.slzh-stat-item .slzh-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === HASICI GRID === */
.slzh-hasici-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.slzh-hasic-card {
    background: var(--slzh-bg);
    border-radius: var(--slzh-radius);
    box-shadow: var(--slzh-shadow);
    overflow: hidden;
    text-decoration: none;
    color: var(--slzh-text);
    transition: transform var(--slzh-transition), box-shadow var(--slzh-transition);
}

.slzh-hasic-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--slzh-shadow-hover);
}

.slzh-hasic-photo {
    height: 200px;
    background: linear-gradient(135deg, var(--slzh-secondary) 0%, #2a4a7f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slzh-hasic-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slzh-hasic-photo-placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.slzh-hasic-info {
    padding: 1.25rem;
}

.slzh-hasic-name {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--slzh-secondary);
}

.slzh-hasic-category {
    font-size: 0.85rem;
    color: var(--slzh-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.slzh-hasic-team {
    font-size: 0.85rem;
    color: var(--slzh-text-light);
    margin-bottom: 0.75rem;
}

.slzh-hasic-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--slzh-text-light);
}

.slzh-hasici-cta {
    text-align: center;
    margin-top: 1.5rem;
}

/* === BUTTONS === */
.slzh-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--slzh-primary);
    color: white !important;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background var(--slzh-transition), transform var(--slzh-transition);
}

.slzh-btn:hover {
    background: var(--slzh-primary-dark);
    transform: translateY(-2px);
}

/* === BADGES === */
.slzh-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--slzh-border);
    color: var(--slzh-text-light);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
}

.slzh-badge-member {
    background: var(--slzh-primary);
    color: white;
}

.slzh-member-badge {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    background: var(--slzh-primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 4px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* === VYSLEDKY === */
.slzh-vysledky {
    margin: 2rem 0;
}

.slzh-vysledky-datum {
    color: var(--slzh-text-light);
    margin-bottom: 1.5rem;
}

.slzh-vysledky-kategoria {
    margin-bottom: 2rem;
}

.slzh-vysledky-kategoria h4 {
    margin: 0 0 1rem 0;
    padding: 0.75rem 1rem;
    background: var(--slzh-secondary);
    color: white;
    border-radius: 8px 8px 0 0;
}

.slzh-vysledky-table {
    border: 1px solid var(--slzh-border);
    border-radius: 0 0 8px 8px;
}

.slzh-diskvalifikovany {
    opacity: 0.6;
    text-decoration: line-through;
}

/* === HASIC DETAIL === */
.slzh-hasic-detail {
    background: var(--slzh-bg);
    border-radius: var(--slzh-radius);
    box-shadow: var(--slzh-shadow);
    padding: 2rem;
    margin: 2rem 0;
}

.slzh-hasic-detail-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.slzh-hasic-detail-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--slzh-secondary);
    flex-shrink: 0;
}

.slzh-hasic-detail-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slzh-hasic-detail-info h2 {
    margin: 0 0 0.75rem 0;
    color: var(--slzh-secondary);
}

.slzh-hasic-detail-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.slzh-hasic-bio {
    color: var(--slzh-text-light);
    line-height: 1.6;
}

.slzh-hasic-detail-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.slzh-stat-box {
    text-align: center;
    padding: 1rem 2rem;
    background: #f9fafb;
    border-radius: 8px;
}

.slzh-stat-box .slzh-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--slzh-primary);
}

.slzh-stat-box .slzh-stat-label {
    font-size: 0.85rem;
    color: var(--slzh-text-light);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .slzh-sutaze-grid {
        grid-template-columns: 1fr;
    }

    .slzh-poradie-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .slzh-statistiky {
        flex-direction: column;
        gap: 1.5rem;
    }

    .slzh-hasic-detail-header {
        flex-direction: column;
        text-align: center;
    }

    .slzh-hasic-detail-photo {
        margin: 0 auto;
    }

    .slzh-hasic-detail-meta {
        justify-content: center;
    }

    .slzh-hasic-detail-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .slzh-top3-item {
        flex-wrap: wrap;
    }

    .slzh-top3-cat {
        width: 100%;
        margin-top: 0.25rem;
    }

    .slzh-table {
        font-size: 0.85rem;
    }

    .slzh-table th,
    .slzh-table td {
        padding: 0.5rem;
    }

    .slzh-col-sutaze,
    .slzh-col-najlepsie {
        display: none;
    }
}

@media (max-width: 480px) {
    .slzh-uspechy-grid {
        grid-template-columns: 1fr;
    }

    .slzh-hasici-grid {
        grid-template-columns: 1fr;
    }
}
