/**
 * Super Kart v9.0 FINAL - Estilo Google Flights
 * Números pequenos, valores sem quebrar
 */

:root {
    --sk-blue: #1a73e8;
    --sk-green: #1e8e3e;
    --sk-white: #ffffff;
    --sk-gray-50: #f8f9fa;
    --sk-gray-200: #e8eaed;
    --sk-gray-600: #5f6368;
    --sk-gray-900: #202124;
}

* {
    box-sizing: border-box;
}

.sk-reservas-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Google Sans', Roboto, Arial, sans-serif;
    overflow-x: hidden;
}

.sk-main-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

/* CALENDÁRIO - ESTILO GOOGLE FLIGHTS */
.sk-calendar-section {
    background: var(--sk-white);
    padding: 16px 12px;
    width: 100%;
}

.sk-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4px;
}

.sk-calendar-header h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--sk-gray-900);
    letter-spacing: 0.25px;
}

.sk-month-nav {
    background: transparent;
    border: none;
    color: var(--sk-blue);
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.sk-month-nav:hover {
    background: rgba(26, 115, 232, 0.08);
}

.sk-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    margin-bottom: 4px;
    padding: 0 4px;
}

.sk-calendar-weekdays > div {
    text-align: center;
    font-weight: 400;
    color: var(--sk-gray-600);
    padding: 8px 0;
    font-size: 11px;
    letter-spacing: 0.3px;
}

.sk-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    padding: 0 4px;
}

/* DIAS - EXATAMENTE COMO GOOGLE FLIGHTS */
.sk-calendar-day {
    width: 100%;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    background: transparent;
    border: none;
    padding: 4px 2px;
    position: relative;
}

.sk-calendar-day-number {
    font-size: 14px;
    font-weight: 400;
    color: var(--sk-gray-900);
    line-height: 1.2;
    margin-bottom: 2px;
}

.sk-calendar-day-price {
    font-size: 11px;
    font-weight: 400;
    color: var(--sk-green);
    line-height: 1;
    white-space: nowrap;
}

.sk-calendar-day:hover:not(.disabled):not(.other-month) {
    background: var(--sk-gray-50);
    border-radius: 50%;
}

.sk-calendar-day.disabled {
    opacity: 0.38;
    cursor: not-allowed;
    pointer-events: none;
}

.sk-calendar-day.available .sk-calendar-day-number {
    color: var(--sk-gray-900);
}

.sk-calendar-day.selected {
    background: var(--sk-blue);
    border-radius: 50%;
}

.sk-calendar-day.selected .sk-calendar-day-number,
.sk-calendar-day.selected .sk-calendar-day-price {
    color: white;
}

.sk-calendar-day.other-month {
    opacity: 0.38;
}

.sk-calendar-day.other-month .sk-calendar-day-number {
    color: var(--sk-gray-600);
}

/* HORÁRIOS */
.sk-horarios-section {
    background: var(--sk-blue);
    width: 100%;
    margin-top: 16px;
}

.sk-horarios-header {
    background: var(--sk-blue);
    color: white !important;
    padding: 16px;
}

.sk-horarios-header h3 {
    margin: 0 0 4px 0;
    font-size: 12px;
    font-weight: 400;
    opacity: 0.9;
    color: white !important;
}

.sk-horarios-header p {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    color: white !important;
}

.sk-horarios-list {
    background: white;
    padding: 12px;
}

/* CARDS HORÁRIOS */
.sk-horario-item {
    background: white;
    border: 1px solid var(--sk-gray-200);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}

.sk-horario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.sk-horario-info h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--sk-gray-900);
}

.sk-horario-vagas {
    font-size: 12px;
    color: var(--sk-gray-600);
    display: flex;
    align-items: center;
    gap: 4px;
}

.sk-horario-price {
    font-size: 20px;
    font-weight: 400;
    color: var(--sk-gray-900);
    white-space: nowrap;
}

.sk-horario-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--sk-gray-200);
}

.sk-vagas-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.sk-vagas-selector label {
    font-size: 12px;
    font-weight: 400;
    color: var(--sk-gray-600);
}

.sk-vagas-selector select {
    padding: 6px 8px;
    border: 1px solid var(--sk-gray-200);
    border-radius: 4px;
    font-size: 13px;
    background: white;
}

.sk-reserve-btn {
    background: var(--sk-blue);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.sk-reserve-btn:hover {
    background: #1765cc;
}

.sk-empty-state {
    text-align: center;
    padding: 32px 16px;
    color: var(--sk-gray-600);
    font-size: 14px;
}

/* LOADING */
.sk-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.sk-spinner {
    border: 3px solid var(--sk-gray-200);
    border-top: 3px solid var(--sk-blue);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* MOBILE AJUSTES */
@media (max-width: 400px) {
    .sk-calendar-day {
        height: 44px;
    }
    
    .sk-calendar-day-number {
        font-size: 13px;
    }
    
    .sk-calendar-day-price {
        font-size: 10px;
    }
}

/* TABLET/DESKTOP */
@media (min-width: 600px) {
    .sk-reservas-wrapper {
        max-width: 600px;
        margin: 0 auto;
        padding: 16px;
    }
    
    .sk-calendar-section {
        padding: 24px;
    }
    
    .sk-calendar-day {
        height: 52px;
    }
}

@media (min-width: 1024px) {
    .sk-reservas-wrapper {
        max-width: 700px;
    }
}
