/**
 * buttons.css
 * Стили для всех типов кнопок в приложении
 */

/* Базовые стили кнопок */
button {
    display: block;
    width: 100%;
    padding: 20px;
    border: none;
    border-radius: var(--button-radius);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 30px;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
    z-index: 1;
}

/* Основная (красная) кнопка */
.primary-button {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(227, 6, 19, 0.4);
}

.primary-button:hover {
    background-size: 250% 250%;
    box-shadow: 0 12px 30px rgba(227, 6, 19, 0.4), 0 0 15px rgba(227, 6, 19, 0.2);
}

.primary-button:active {
    transform: translateY(1px);
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.4);
}

.primary-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.8s;
    z-index: -1;
}

.primary-button:hover::before {
    left: 100%;
}

/* Вторичная (прозрачная) кнопка */
.secondary-button {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.secondary-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Стили для кнопок с иконками */
.primary-button i,
.secondary-button i {
    margin-right: 10px;
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

.primary-button:hover i,
.secondary-button:hover i {
    transform: scale(1.1);
}

/* Круглые кнопки обратной связи */
.btn-feedback {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--dark-gray);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1.0);
    margin: 0;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-feedback:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-feedback.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(227, 6, 19, 0.5);
}

/* Кнопки для экрана результатов */
.result-screen .action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin: 25px auto 15px;
    max-width: 350px;
}

.result-screen .action-buttons button {
    width: 100%;
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 12px;
    margin: 0;
    transition: all 0.3s ease;
    padding: 0 20px;
    box-sizing: border-box !important;
    line-height: 1 !important;
}

.result-screen .action-buttons #reset-button {
    background: var(--primary-gradient);
    border: none;
    color: white;
    box-shadow: 0 10px 20px rgba(227, 6, 19, 0.3);
}

.result-screen .action-buttons #share-button {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.result-screen .action-buttons #reset-button:hover {
    background: linear-gradient(135deg, #FF5A5F 0%, #E30613 100%);
    box-shadow: 0 10px 25px rgba(227, 6, 19, 0.5);
}

.result-screen .action-buttons #share-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Навигационные кнопки */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
}

.navigation-buttons button {
    flex: 1;
    margin-top: 5px;
}

/* Вертикальное расположение кнопок */
.vertical-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-top: 20px;
}

.vertical-buttons button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    font-size: 16px;
    gap: 8px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

.vertical-buttons .primary-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: rgba(227, 6, 19, 0.5);
    transform: none !important;
    box-shadow: none !important;
}

.vertical-buttons .primary-button:hover:not(:disabled) {
    box-shadow: 0 8px 20px rgba(227, 6, 19, 0.45);
}

.vertical-buttons .primary-button.active {
    animation: button-activate 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.vertical-buttons .secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

@keyframes button-activate {
    0% { transform: scale(0.95); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .result-screen .action-buttons {
        max-width: 350px;
    }
    
    .result-screen .action-buttons button {
        height: 52px !important;
        min-height: 52px !important;
        max-height: 52px !important;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .result-screen .action-buttons {
        max-width: 280px !important;
        gap: 15px !important;
    }
    
    .result-screen .action-buttons button {
        height: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;
        font-size: 15px;
        padding: 0 15px;
    }
    
    .vertical-buttons {
        gap: 15px;
        margin-top: 15px;
    }
    
    .vertical-buttons button {
        padding: 12px;
        font-size: 15px;
    }
    
    button {
        padding: 18px;
    }
}

/* Стили для кнопок главного экрана */
.welcome-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
    z-index: 10;
    position: relative;
}

.welcome-buttons button {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.welcome-buttons .primary-button:hover {
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.4);
}

.welcome-buttons .secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 480px) {
    .welcome-buttons {
        position: static;
        bottom: auto;
        left: auto;
        transform: none;
        margin: 20px auto;
        width: 90%;
        max-width: 300px;
    }
    
    .welcome-buttons button {
        padding: 14px 20px !important;
        border-radius: 12px !important;
        font-size: 16px !important;
    }
} 