@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap');

/* Termine Card Styles */

.ttc-card {
    border: none;
    border-radius: 8px;
    background: #fff;
    padding: 16px;
    padding-left: 26px;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 180px;
}

/* Session color bar on left side */
.ttc-color-bar {
    position: absolute;
    left: 4px;
    top: 4px;
    bottom: 4px;
    width: 6px;
    border-radius: 8px;
    background-color: var(--ttc-color);
}

/* Background tint when session has color */
.ttc-card.has-ttc-color {
    background-color: rgba(var(--ttc-color-rgb), var(--ttc-tint-alpha, 0.08));
}

/* Top Section: Title */
.ttc-top {
    padding-bottom: 12px;
}

.ttc-title {
    font-family: 'Merriweather', serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.3;
}

.ttc-bio {
    font-size: 0.9rem;
    color: #666;
    margin-top: 8px;
    margin-bottom: 0;
    line-height: 1.4;
}

.ttc-bio p {
    margin: 0;
}

/* Middle Section: Time and Location */
.ttc-middle {
    flex: 1;
    padding: 12px 0 60px 0;
}

/* Time Line */
.ttc-time-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #666;
}

.ttc-time-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    color: #666;
}

.ttc-time-icon svg,
.ttc-time-icon img {
    display: block;
    width: 100%;
    height: 100%;
}

.ttc-time-icon svg,
.ttc-time-icon svg * {
    fill: none !important;
    stroke: #666 !important;
    stroke-width: 1.6 !important;
}

.ttc-time-text {
    display: block;
    color: #666;
    font-weight: 600;
}

/* Location Line */
.ttc-location-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #666;
}

.ttc-location-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    color: #666;
}

.ttc-location-icon svg,
.ttc-location-icon img {
    display: block;
    width: 100%;
    height: 100%;
}

.ttc-location-icon svg,
.ttc-location-icon svg * {
    fill: none !important;
    stroke: #666 !important;
    stroke-width: 1.6 !important;
}

.ttc-location-text {
    display: block;
    color: #666;
}

/* Street and Postal fields (shown in modal) */
.ttc-street,
.ttc-postal {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #666;
    margin-left: calc(1em + 8px);
    margin-top: 2px;
}

.ttc-location-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Make session card clickable */
.ttc-card:not(.ttc-card-enlarged) {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.ttc-card:not(.ttc-card-enlarged):hover {
    transform: translateY(-2px);
}

/* Enlarged card in modal */
.ttc-card-enlarged {
    cursor: default;
}

.ttc-card-enlarged .ttc-trainers {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 16px;
}

.ttc-card-enlarged .ttc-trainer-avatar {
    width: 64px;
    height: 64px;
}

/* Bottom Left: Trainer Avatars */
.ttc-trainers {
    position: absolute;
    bottom: 12px;
    left: 26px;
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.ttc-trainer-wrapper {
    display: inline-block;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.ttc-trainer-wrapper:hover {
    transform: scale(1.05);
}

.ttc-trainer-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

/* Responsive Design */
@media (max-width: 600px) {
    .ttc-card {
        min-height: 160px;
        padding: 12px;
    }

    .ttc-title {
        font-size: 1.1rem;
    }

    .ttc-time-line,
    .ttc-location-line {
        font-size: 0.9rem;
    }

    .ttc-trainers {
        gap: 6px;
    }

    .ttc-trainer-wrapper {
        width: 48px;
        height: 48px;
        border-width: 2px;
    }
}

/* Modal Styles */
.ttc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ttc-modal-overlay.visible {
    opacity: 1;
}

.ttc-modal-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ttc-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    font-size: 32px;
    color: #333;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.ttc-modal-close:hover {
    color: #000;
}

.ttc-modal-close:focus {
    outline: none;
    color: #000;
}
