/**
 * Thermas Core Engine - Frontend Styles
 */

/* Calendar container */
.thermas-calendar-wrapper {
    max-width: 600px;
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.thermas-calendar-wrapper h3 {
    margin: 0 0 15px;
    font-size: 1.2em;
    color: #333;
}

/* Datepicker overrides */
#thermas-date-picker {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    background: #fafafa;
    margin-bottom: 10px;
}

#thermas-date-picker:focus {
    border-color: #0073aa;
    outline: none;
    background: #fff;
}

/* Available date cells */
.ui-datepicker td .thermas-available {
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
    border-radius: 4px;
}

.ui-datepicker td .thermas-available:hover {
    background: #c8e6c9 !important;
}

/* Selected date display */
.thermas-selected-date {
    text-align: center;
    font-size: 1.1em;
    color: #555;
    margin: 10px 0;
    min-height: 25px;
}

/* Loading indicator */
#thermas-loading {
    text-align: center;
    padding: 20px;
    color: #666;
    display: none;
}

#thermas-loading:after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 3px solid #ddd;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: thermas-spin 0.6s linear infinite;
}

@keyframes thermas-spin {
    to { transform: rotate(360deg); }
}

/* Prices container */
#thermas-prices-container {
    margin-top: 20px;
    display: none;
}

.thermas-price-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.thermas-price-item:last-child {
    border-bottom: none;
}

.thermas-price-label {
    font-size: 1em;
    font-weight: 500;
    color: #333;
    flex: 1;
}

.thermas-promotion-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 7px;
    border-radius: 4px;
    background: #f4c430;
    color: #1f1f1f;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.thermas-price-value {
    font-size: 1.2em;
    font-weight: 700;
    color: #2e7d32;
    margin: 0 15px;
    min-width: 100px;
    text-align: right;
}

/* Buy button */
.thermas-buy-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.thermas-buy-btn:hover {
    background: #005a87;
}

.thermas-buy-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Error message */
.thermas-error {
    color: #c62828;
    padding: 10px;
    text-align: center;
    background: #ffebee;
    border-radius: 4px;
    margin: 10px 0;
}
