/**
 * Frontend styly pro AIreception Calendar Sync
 */

/* Dnešní směny a týdenní rozvrh - Grid */
.aireception-calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* Karta kalendáře */
.aireception-calendar-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.aireception-calendar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Odkaz na fotku */
.aireception-calendar-photo-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

/* Fotka kalendáře */
.aireception-calendar-photo {
    position: relative;
    width: 100%;
    padding-top: 133%; /* 3:4 aspect ratio */
    overflow: hidden;
}

.aireception-calendar-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Značka "new" */
.aireception-badge-new {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4757;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Obsah karty */
.aireception-calendar-content {
    padding: 15px;
}

/* Odkaz na jméno */
.aireception-calendar-name-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.aireception-calendar-name-link:hover {
    color: inherit;
}

.aireception-calendar-name {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
}

.aireception-calendar-stats {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    text-align: center;
}

.aireception-calendar-time {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    padding: 8px;
    background: #f5f5f5;
    border-radius: 4px;
}

.aireception-calendar-cta {
    font-size: 11px;
    color: #666;
    text-align: center;
    line-height: 1.4;
}

.aireception-calendar-cta strong {
    display: block;
    margin-bottom: 4px;
}

/* Týdenní kalendář */
.aireception-week-calendar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    padding: 10px 0;
}

.aireception-day {
    flex: 0 0 auto;
    width: 120px;
    padding: 12px;
    text-align: center;
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.aireception-day:hover {
    background: #e0e0e0;
}

.aireception-day.active {
    background: #ff4757;
    color: #fff;
}

.aireception-day-name {
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.aireception-day-number {
    font-size: 14px;
}

/* Obsah dne */
.aireception-day-content {
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Rozvrh jednoho kalendáře */
.aireception-single-calendar {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.aireception-calendar-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.aireception-calendar-header h2 {
    margin: 0 0 15px 0;
    font-size: 28px;
    text-transform: uppercase;
}

.aireception-calendar-info {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 14px;
    color: #666;
}

.aireception-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aireception-schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s;
}

.aireception-schedule-item:hover {
    border-color: #ff4757;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.1);
}

.aireception-schedule-item.today {
    background: #fff5f5;
    border-color: #ff4757;
}

.aireception-schedule-date {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.aireception-schedule-date .day-name {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    color: #666;
}

.aireception-schedule-date .day-number {
    font-size: 16px;
    font-weight: bold;
}

.aireception-schedule-time {
    font-size: 16px;
    font-weight: bold;
    color: #ff4757;
}

/* Rezervační tlačítka */
.aireception-booking-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
    box-sizing: border-box;
}

.aireception-booking-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.aireception-booking-btn:hover {
    border-color: #ff4757;
    color: #ff4757;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.2);
}

.aireception-booking-btn:active {
    transform: translateY(0);
}

.aireception-btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Tlačítka v kartách - menší verze */
.aireception-booking-buttons-card {
    margin-top: 12px;
    gap: 8px;
}

.aireception-booking-btn-small {
    padding: 8px 12px;
    font-size: 12px;
    gap: 6px;
}

.aireception-booking-btn-small .aireception-btn-icon {
    width: 16px;
    height: 16px;
}

.aireception-booking-btn-small span {
    font-weight: 600;
}

/* Modal okno */
.aireception-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    animation: aireceptionFadeIn 0.3s ease;
}

.aireception-modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.aireception-modal-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: aireceptionSlideUp 0.3s ease;
}

.aireception-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.aireception-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.aireception-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.aireception-modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

.aireception-modal-body {
    height: calc(100% - 60px);
    overflow: hidden;
}

.aireception-modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@keyframes aireceptionFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes aireceptionSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Chybové hlášky */
.aireception-error,
.aireception-no-shifts {
    padding: 20px;
    text-align: center;
    background: #fff5f5;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    color: #c62828;
}

/* Responzivita */
@media (max-width: 768px) {
    .aireception-calendar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .aireception-week-calendar {
        gap: 6px;
    }

    .aireception-day {
        flex: 0 0 auto;
        width: calc(20% - 5px);
        min-width: 70px;
        padding: 10px 6px;
    }

    .aireception-day-name {
        font-size: 9px;
    }

    .aireception-day-number {
        font-size: 12px;
    }

    .aireception-booking-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .aireception-booking-btn {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    /* Tlačítka v kartách zůstávají vedle sebe na mobilu */
    .aireception-booking-buttons-card {
        flex-direction: row;
    }

    .aireception-booking-btn-small {
        flex: 1;
        justify-content: center;
    }

    .aireception-modal-container {
        width: 95%;
        height: 95vh;
    }

    .aireception-single-calendar {
        padding: 0 10px;
    }

    .aireception-schedule-item {
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .aireception-calendar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .aireception-day {
        flex: 0 0 auto;
        width: calc(20% - 5px);
        min-width: 60px;
        padding: 8px 4px;
    }

    .aireception-booking-btn {
        font-size: 13px;
        padding: 10px 16px;
    }

    .aireception-btn-icon {
        width: 18px;
        height: 18px;
    }

    .aireception-booking-btn-small {
        font-size: 11px;
        padding: 6px 10px;
    }

    .aireception-booking-btn-small .aireception-btn-icon {
        width: 14px;
        height: 14px;
    }
}

