/* ========================================
   Touren-Seite
   Nutzt generische Komponenten aus card.css und style.css
   ======================================== */

/* Section Stats */
.tours-section-stats {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.tours-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.tours-count .material-symbols-outlined {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.tours-count strong {
    font-weight: 700;
}

/* Card Container */
.tours-card-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* ========================================
   Tour Cards (clickable)
   Tour-spezifische Styles, erweitert entity-card aus card.css
   ======================================== */

/* Tour Card - Link Container */
.tour-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--bg-primary);
    border-radius: var(--radius-lg, 12px);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.tour-card:hover {
    box-shadow: var(--shadow-md);
}

/* Tour Card Header */
.tour-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    gap: 1rem;
    overflow: hidden;
}

/* Header Left Side */
.tour-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

/* Tour-spezifische Circle Styles */
.tour-countdown-circle {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full, 50%);
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.3);
}

.tour-image-circle {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full, 50%);
    background: var(--bg-secondary);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tour-active-circle {
    position: relative;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    overflow: visible;
}

.tour-cancelled-circle {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.tour-cancelled-circle .material-symbols-outlined {
    font-size: 2.5rem;
    color: white;
}

/* Ripple Animation für active-circle (nutzt generische circle-ripple aus card.css) */
.tour-active-circle::before,
.tour-active-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full, 50%);
    background: var(--accent-color);
    transform: translate(-50%, -50%);
    animation: circle-ripple 3s ease-out infinite;
    opacity: 0;
}

.tour-active-circle::after {
    animation-delay: 1.5s;
}

.active-tour-icon {
    position: relative;
    z-index: 1;
    font-size: 2rem;
    color: white;
    animation: icon-bounce 3s ease-in-out infinite;
}

/* Tour Image */
.tour-header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    border-radius: var(--radius-full, 50%);
}

.tour-placeholder-icon {
    font-size: 2rem;
    color: var(--text-tertiary);
}

/* Tour Info */
.tour-header-info {
    flex: 1;
    min-width: 0;
}

.tour-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tour-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tour-subtitle span {
    white-space: nowrap;
}

/* Header Right Side */
.tour-header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.tour-stat {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.tour-stat.has-value {
    color: var(--accent-color);
}

.tour-stat.has-value .material-symbols-outlined {
    color: var(--accent-color);
}

/* Tour Card Arrow */
.tour-card-arrow {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full, 50%);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.tour-card-arrow .material-symbols-outlined {
    font-size: 24px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.tour-card:hover .tour-card-arrow {
    background: var(--accent-color);
}

.tour-card:hover .tour-card-arrow .material-symbols-outlined {
    color: white;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .tour-stat {
        display: none;
    }

    .tour-countdown-circle,
    .tour-image-circle {
        width: 60px;
        height: 60px;
    }

    .tour-placeholder-icon {
        font-size: 1.5rem;
    }

    .active-tour-icon {
        font-size: 1.5rem;
    }

    .tour-title {
        font-size: 1rem;
        white-space: normal;
    }

    .tour-subtitle {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .tour-subtitle {
        display: none;
    }
}
