/* public/css/style.css */
/* Общие стили для всего сайта */

body {
    font-family: Arial, sans-serif;
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
    background-color: #f9f9f9;
    color: #333;
}

h1 {
    color: #333;
    text-align: center;
    font-size: 28px;
    margin-bottom: 25px;
}

/* Стили для форм */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus, select:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

/* Кнопки */
button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background: #45a049;
}

.btn-secondary {
    background: #2196F3;
    color: white;
}

.btn-secondary:hover {
    background: #1976D2;
}

.btn-danger {
    background: #f44336;
    color: white;
}

.btn-danger:hover {
    background: #d32f2f;
}

/* Стили для списка ошибок */
.error-list {
    background: #ffebee;
    border-left: 4px solid #f44336;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.error-list ul {
    margin: 5px 0;
    padding-left: 20px;
}

.error-list li {
    color: #c62828;
}

/* Стили для сообщений об успехе */
.success-list {
    background: #e8f5e9;
    border-left: 4px solid #4CAF50;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.success-list li {
    color: #2e7d32;
}

/* Навигация */
.nav {
    text-align: center;
    margin-top: 20px;
}

.nav a {
    color: #2196F3;
    text-decoration: none;
    transition: color 0.3s;
}

.nav a:hover {
    text-decoration: underline;
    color: #1976D2;
}

/* Профиль */
.info {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.info p {
    margin: 10px 0;
    font-size: 16px;
}

.info strong {
    display: inline-block;
    width: 100px;
    color: #555;
}

/* Главная страница */
.hero {
    text-align: center;
    padding: 20px 0;
}

.hero h1 {
    font-size: 32px;
    color: #333;
}

.hero p {
    font-size: 18px;
    color: #666;
    margin: 15px 0 30px;
}

.links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.links a {
    display: inline-block;
    padding: 10px 25px;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.links a:hover {
    background: #45a049;
}

.links a.link-login {
    background: #2196F3;
}

.links a.link-login:hover {
    background: #1976D2;
}

/* Для залогиненных пользователей на главной */
.user-greeting {
    text-align: center;
    font-size: 18px;
    margin: 20px 0;
}

.user-greeting a {
    margin: 0 10px;
}


/* ===== ХОТЕЛКИ ===== */
.wants-section {
    text-align: center;
    margin: 30px 0;
}

.wants-section h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.wants-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.want-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px 25px;
    min-width: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.want-card:hover {
    border-color: #4CAF50;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.want-card:active {
    transform: scale(0.95);
}

.want-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.want-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* ===== ХОТЕЛКИ (КРАСИВЫЕ КАРТОЧКИ) ===== */
.wants-section {
    text-align: center;
    margin: 40px 0;
    padding: 0 20px;
}

.wants-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.wants-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #2196F3);
    margin: 8px auto 0;
    border-radius: 2px;
}

.wants-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.want-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 20px 22px;
    min-width: 120px;
    flex: 1 1 130px;
    max-width: 150px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    position: relative;
}

.want-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(76, 175, 80, 0.18);
    border-color: #4CAF50;
}

.want-card:active {
    transform: scale(0.95);
}

.want-icon {
    font-size: 40px;
    margin-bottom: 10px;
    line-height: 1;
    transition: transform 0.2s;
}

.want-card:hover .want-icon {
    transform: scale(1.1) rotate(-3deg);
}

.want-name {
    font-size: 15px;
    font-weight: 500;
    color: #2c3e50;
    text-align: center;
    line-height: 1.3;
}

/* Адаптация для мобильных */
@media (max-width: 600px) {
    .want-card {
        flex: 1 1 100px;
        min-width: 90px;
        padding: 20px 12px 16px;
    }
    .want-icon {
        font-size: 32px;
    }
    .want-name {
        font-size: 13px;
    }
}

/* ===== АДАПТИВНЫЕ ХОТЕЛКИ (резиновая верстка) ===== */

/* Контейнер для хотелок — используем грид */
.wants-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 колонки на больших экранах */
    gap: 15px;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 10px;
}

/* Карточка хотелки */
.want-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 12px 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    min-height: 100px;
}

.want-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(76, 175, 80, 0.18);
    border-color: #4CAF50;
}

.want-icon {
    font-size: 32px;
    margin-bottom: 8px;
    line-height: 1;
}

.want-name {
    font-size: 13px;
    font-weight: 500;
    color: #2c3e50;
    text-align: center;
    line-height: 1.2;
}

/* ===== АДАПТИВНОСТЬ ДЛЯ ТЕЛЕФОНОВ ===== */

/* Планшеты и маленькие ноутбуки */
@media (max-width: 768px) {
    .wants-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 колонки */
        gap: 12px;
    }
    .want-card {
        padding: 16px 10px 12px;
        min-height: 80px;
    }
    .want-icon {
        font-size: 28px;
    }
    .want-name {
        font-size: 12px;
    }
}

/* Телефоны (до 480px) */
@media (max-width: 480px) {
    .wants-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки — то, что нужно! */
        gap: 10px;
        padding: 0 8px;
    }
    .want-card {
        padding: 14px 8px 10px;
        min-height: 70px;
        border-radius: 12px;
    }
    .want-icon {
        font-size: 24px;
        margin-bottom: 4px;
    }
    .want-name {
        font-size: 11px;
    }
    /* Заголовок секции хотелок */
    .wants-section h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }
}

/* Очень маленькие экраны (до 360px) */
@media (max-width: 360px) {
    .wants-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .want-card {
        padding: 10px 6px 8px;
        min-height: 60px;
    }
    .want-icon {
        font-size: 20px;
    }
    .want-name {
        font-size: 10px;
    }
}