/**
 * Styly pro domovskou stránku (Dashboard) - Lokální turista (v2.0)
 * Extrahováno z stranky/domov.php pro vyšší výkon, cachování v prohlížeči a přehlednost
 */

.place-item-link:hover .place-card-img {
    transform: scale(1.08);
}

/* Premium Tab Styling */
.tab-toggle-container {
    display: inline-flex;
    background: rgba(15, 22, 28, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 3px;
    border-radius: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.tab-btn {
    background: transparent;
    border: none;
    outline: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    background: linear-gradient(135deg, #d49a31 0%, #a2711d 100%);
    color: #11161a;
    box-shadow: 0 4px 12px rgba(212, 154, 49, 0.25);
}

/* Premium Place Card Styling */
.place-item-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.015);
    border-radius: 12px;
    padding: 14px 16px;
    margin: 0;
    display: flex;
    gap: 16px;
    align-items: center;
    transition: all 0.25s ease;
    width: 100%;
    box-sizing: border-box;
}

.place-item-card:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(212, 154, 49, 0.3) !important;
}

.place-item-card-image-wrap {
    flex-shrink: 0;
    width: 88px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: #1a1e22;
    display: flex;
    align-items: center;
    justify-content: center;
}

.place-item-card-info {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.place-item-card-time {
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

/* Horizontal scrolling for timeline steps container on mobile */
.tab-content-timeline {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
}

/* Ensure steps don't shrink and break lines */
.steps-grid {
    min-width: 500px;
}

.timeline-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    text-decoration: none !important;
    color: inherit;
}

.timeline-step-item:hover,
.timeline-step-item:focus {
    transform: translateY(-2px);
    text-decoration: none !important;
    color: inherit;
}

.timeline-step-item:hover .timeline-circle {
    transform: scale(1.18);
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.7) !important;
}

.timeline-step-item.timeline-step-disabled {
    cursor: default;
    pointer-events: none;
}

@media (max-width: 576px) {
    .place-item-card {
        display: grid;
        grid-template-columns: 88px 1fr;
        grid-template-rows: auto auto;
        gap: 8px 12px;
        padding: 12px;
    }

    .place-item-card-image-wrap {
        grid-row: 1 / 3;
        align-self: center;
    }

    .place-item-card-info {
        grid-column: 2;
        grid-row: 1;
    }

    .place-item-card-time {
        grid-column: 2;
        grid-row: 2;
        text-align: left;
        align-items: flex-start;
    }
}

/* Premium Community Card Styling */
.community-card {
    background: rgba(20, 27, 33, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
}

.community-card:hover {
    background: rgba(25, 34, 42, 0.85) !important;
    border-color: rgba(212, 154, 49, 0.35) !important;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 15px rgba(212, 154, 49, 0.1);
}

.community-card-img-wrap {
    width: 100%;
    height: 160px;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.community-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.community-card:hover .community-card-img {
    transform: scale(1.06);
}

.community-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
}

.community-card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.community-place-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #fff !important;
    line-height: 1.3;
    flex: 1;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.community-place-link {
    color: #fff !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.community-place-link:hover {
    color: #d49a31 !important;
}

.community-card-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
    margin-top: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.community-beer-badge-wrap {
    display: flex;
}

.community-beer-badge-premium {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(212, 154, 49, 0.38);
    background: rgba(212, 154, 49, 0.06);
    color: #d49a31;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 14px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.community-card-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.community-card-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 12px;
}

.community-author-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #a78bfa;
    transition: color 0.2s ease;
    min-width: 0;
}

.community-author-link:hover {
    color: #c084fc;
}

.author-icon {
    margin-right: 6px;
    flex-shrink: 0;
    color: #a78bfa;
}

.community-author-name {
    font-size: 14px !important;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.community-detail-btn {
    display: inline-flex;
    align-items: center;
    color: #d49a31;
    font-weight: 700;
    font-size: 14px !important;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.community-detail-btn:hover {
    color: #e5a93b;
    transform: translateX(2px);
}

.community-detail-btn.disabled {
    color: rgba(255, 255, 255, 0.25);
    cursor: not-allowed;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 14px !important;
}

.user-avatar-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(212, 154, 49, 0.12);
    border: 1.5px solid rgba(212, 154, 49, 0.3);
    color: #d49a31;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    user-select: none;
}

.community-user-link:hover span:last-child {
    color: #e5a93b !important;
}
