/* assets/style.css - Стили для планшетного терминала */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none; /* Запрет выделения текста */
    -webkit-tap-highlight-color: transparent; /* Убирает серый фон при тапе на iOS */
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.kiosk-container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.step {
    background: white;
    border-radius: 30px;
    padding: 40px;
    max-width: 800px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hidden {
    display: none;
}

/* Заголовки */
h1 {
    font-size: 42px;
    color: #333;
    margin-bottom: 40px;
    font-weight: 700;
}

h2 {
    font-size: 36px;
    color: #555;
    margin-bottom: 30px;
    font-weight: 600;
}

/* Сетка кнопок категорий */
.buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.category-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 30px 20px;
    font-size: 28px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.category-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

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

/* Кнопки оценок */
.score-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

@media (min-width: 768px) {
    .score-buttons {
        grid-template-columns: repeat(4, 1fr);
    }
}

.score-btn {
    border: none;
    padding: 35px 20px;
    font-size: 32px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8f9fa;
    color: #333;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.score-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.score-btn:active {
    transform: scale(0.98);
}

/* Цвета для разных оценок */
.score-btn.bad {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}

.score-btn.normal {
    background: linear-gradient(135deg, #ffa502, #ff7f50);
    color: white;
}

.score-btn.good {
    background: linear-gradient(135deg, #7bed9f, #2ed573);
    color: white;
}

.score-btn.great {
    background: linear-gradient(135deg, #70a1ff, #1e90ff);
    color: white;
}

/* Кнопка назад */
.back-btn {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 24px;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: #7f8c8d;
    transform: translateX(-5px);
}

/* Спиннер загрузки */
.spinner {
    width: 60px;
    height: 60px;
    margin: 30px auto;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Адаптив для маленьких экранов */
@media (max-width: 768px) {
    .step {
        padding: 30px 20px;
        margin: 10px;
    }
    
    h1 {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .category-btn {
        padding: 20px 15px;
        font-size: 22px;
    }
    
    .score-btn {
        padding: 25px 15px;
        font-size: 24px;
    }
    
    .buttons-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Эффект пульсации при нажатии */
.category-btn, .score-btn, .back-btn {
    position: relative;
    overflow: hidden;
}

.category-btn:after, .score-btn:after, .back-btn:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.category-btn:active:after, .score-btn:active:after, .back-btn:active:after {
    width: 200px;
    height: 200px;
}

/* Режим киоска - скрываем скролл */
::-webkit-scrollbar {
    display: none;
}

/* Убираем outline при фокусе */
*:focus {
    outline: none;
}

/* Индикатор загрузки в спасибо */
#step-thanks h2 {
    color: #27ae60;
    animation: thanksAnimation 0.5s ease;
}

@keyframes thanksAnimation {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}