/* public/css/footer.css */

/* --------------------
   Основные стили футера
--------------------- */
.footer {
    background-color: var(--dark-color); /* Используем CSS-переменную */
    color: var(--light-color); /* Используем CSS-переменную */
    padding: 40px 0;
    font-family: var(--font-secondary); /* Используем CSS-переменную */
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color); /* Используем CSS-переменную */
    display: inline-block;
    padding-bottom: 5px;
}

.footer-text {
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link {
    color: var(--light-color); /* Используем CSS-переменную */
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    transition: color var(--transition-duration) ease;
}

.footer-link i {
    margin-right: 8px;
    font-size: 0.9em;
    width: 20px;
    text-align: center;
}

.footer-link:hover {
    color: var(--primary-color); /* Используем CSS-переменную */
}

.animate-hover {
    transition: color var(--transition-duration) ease;
}

.animate-hover:hover {
    color: var(--primary-color); /* Используем CSS-переменную */
}

.subscribe-form {
    display: flex;
    flex-direction: column;
}

.input-group {
    display: flex;
    margin-bottom: 15px;
}

.form-input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 0.95em;
}

.btn-primary {
    background-color: var(--primary-color); /* Используем CSS-переменную */
    color: var(--white); /* Используем CSS-переменную */
    border: none;
    padding: 10px 15px; /* Совместил с отступами поля ввода */
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color var(--transition-duration) ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background-color: #2980b9; /* Можно использовать CSS-переменную или оставить так */
}

.btn-primary i {
    font-size: 0.95em; /* Совместил с размером шрифта поля ввода */
    animation: none; /* Отключил анимацию для иконки */
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    color: var(--light-color); /* Используем CSS-переменную */
    font-size: 1.2em;
    transition: color var(--transition-duration) ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--light-color); /* Используем CSS-переменную */
    border-radius: 50%;
    text-decoration: none;
}

.social-icon:hover {
    color: var(--primary-color); /* Используем CSS-переменную */
    border-color: var(--primary-color); /* Используем CSS-переменную */
    background-color: rgba(52, 152, 219, 0.1); /* Используем RGBA для плавности */
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-bottom .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-bottom .footer-copyright {
    font-size: 0.9em;
}

.footer-bottom .footer-legal {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-bottom .footer-link {
    font-size: 0.9em;
}

@media (min-width: 768px) {
    .footer-bottom .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}
