/* ==========================================================================
   Newsletter Section
   ========================================================================== */

.newsletter-section {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    padding: var(--space-12) 0;
}

.newsletter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
    max-width: 900px;
    margin: 0 auto;
}

.newsletter__content {
    flex: 1;
}

.newsletter__title {
    font-size: var(--text-2xl);
    color: var(--color-white);
    margin-bottom: var(--space-2);
}

.newsletter__text {
    color: var(--color-gray-300);
    margin-bottom: 0;
    font-size: var(--text-base);
}

.newsletter__form {
    flex: 1;
}

.newsletter__input-group {
    display: flex;
    gap: 0;
}

.newsletter__input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-size: var(--text-base);
    outline: none;
    transition: border-color var(--transition-fast);
}

.newsletter__input::placeholder {
    color: var(--color-gray-400);
}

.newsletter__input:focus {
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter__submit {
    padding: var(--space-3) var(--space-6);
    white-space: nowrap;
    font-weight: 700;
}

.newsletter__message {
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    margin-bottom: 0;
}

.newsletter__message--success {
    color: var(--color-green);
}

.newsletter__message--error {
    color: #ff6b6b;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */

.site-footer {
    background-color: var(--color-gray-900);
    color: var(--color-gray-400);
}

.site-footer__main {
    padding: var(--space-12) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-8);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-logo {
    margin-bottom: var(--space-2);
}

.footer-logo .custom-logo {
    max-height: 40px;
    filter: brightness(0) invert(1);
}

.footer-logo .logo-money {
    color: var(--color-white);
}

.footer-col__description {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
    line-height: 1.6;
    margin-bottom: var(--space-2);
}

/* Footer widget titles */
.site-footer .widget-title {
    color: var(--color-white);
    font-size: var(--text-base);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--color-accent);
    margin-bottom: var(--space-3);
}

/* Footer links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-links a,
.footer-links li a {
    color: var(--color-gray-400);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
    display: block;
    padding: var(--space-1) 0;
}

.footer-links a:hover,
.footer-links li a:hover {
    color: var(--color-accent);
    padding-left: var(--space-2);
}

/* Footer contact */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-gray-400);
}

.footer-contact li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-accent);
}

.footer-contact a {
    color: var(--color-gray-400);
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--color-accent);
}

/* Footer social */
.footer-social {
    display: flex;
    gap: var(--space-2);
}

.footer-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-gray-700);
    color: var(--color-gray-400);
    transition: all var(--transition-fast);
}

.footer-social__link:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-primary-dark);
}

/* Footer bottom */
.site-footer__bottom {
    border-top: 1px solid var(--color-gray-800);
    padding: var(--space-4) 0;
}

.site-footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-footer__copyright {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
    margin-bottom: 0;
}

.site-footer__credit {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
    margin-bottom: 0;
}

.site-footer__credit a {
    color: var(--color-accent);
    font-weight: 600;
}

.site-footer__credit a:hover {
    color: var(--color-accent-light);
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */

.toast {
    position: fixed;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    min-width: 300px;
    max-width: 500px;
    padding: var(--space-3) var(--space-4);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    z-index: var(--z-toast);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast--success {
    background-color: var(--color-green);
    color: var(--color-white);
}

.toast--error {
    background-color: var(--color-red);
    color: var(--color-white);
}

.toast__message {
    font-size: var(--text-sm);
    font-weight: 500;
}

.toast__close {
    color: var(--color-white);
    font-size: var(--text-xl);
    line-height: 1;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.toast__close:hover {
    opacity: 1;
}

@media (max-width: 640px) {
    .toast {
        left: var(--space-4);
        right: var(--space-4);
        transform: translateX(0) translateY(100px);
        min-width: auto;
        bottom: 70px;
    }
    .toast--visible {
        transform: translateX(0) translateY(0);
    }
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    width: 44px;
    height: 44px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: var(--z-back-to-top);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
    transform: translateY(-3px);
}

/* ==========================================================================
   No Results
   ========================================================================== */

.no-results {
    text-align: center;
    padding: var(--space-16) 0;
}

.no-results__title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-3);
}

.no-results__text {
    color: var(--color-gray-600);
    margin-bottom: var(--space-6);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.no-results__search {
    max-width: 400px;
    margin: 0 auto;
}
