/* Анімації та стилі для меню - PAAGRIO */

/* Стилі пунктів меню */
.main-menu .nav-link {
    position: relative;
    padding: 10px 15px;
    margin: 0 5px;
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    border-radius: 5px;
    overflow: hidden;
    z-index: 1;
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo-container img {
    max-width: 40%;
    height: auto;
}

/* Ефект підсвічування при наведенні та для активного пункту */
.main-menu .nav-link:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #e5c650, #d4af37);
    transform: translateY(5px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: -1;
}

.main-menu .nav-link:hover:before,
.main-menu .nav-link.active:before {
    opacity: 1;
    transform: translateY(0);
}

/* Підсвічування при наведенні */
.main-menu .nav-link:hover {
    color: #d4af37;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

/* Стиль для активного пункту меню */
.main-menu .nav-link.active {
    color: #d4af37;
    background-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Плавний ефект натискання */
.main-menu .nav-link:active {
    transform: translateY(1px);
}

/* Анімація пульсації для мобільного меню */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

/* Стилі для мобільної кнопки меню */
.mobile-menu-toggle {
    background-color: rgba(0, 0, 0, 0.7);
    color: #d4af37;
    border: 2px solid #d4af37;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
    animation: pulse 2s infinite;
}

.mobile-menu-toggle:hover {
    background-color: #d4af37;
    color: #000;
}

/* Анімація появи для мобільного меню */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Модифікації для мобільних пристроїв */
@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-menu {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: rgba(0, 0, 0, 0.9);
        border-radius: 0 0 8px 8px;
        padding: 10px;
        z-index: 1000;
        display: none;
        flex-direction: column;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
        border-bottom: 2px solid #d4af37;
    }
    
    .main-menu.show {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }
    
    .main-menu .nav-link {
        margin: 5px 0;
        text-align: center;
        border-bottom: 1px solid rgba(212, 175, 55, 0.3);
        padding: 12px;
    }
    
    .main-menu .nav-link:last-child {
        border-bottom: none;
    }
    
    .main-menu .nav-link:before {
        height: 100%;
        width: 3px;
        top: 0;
        left: 0;
        transform: translateX(-5px);
    }
    
    .main-menu .nav-link:hover:before,
    .main-menu .nav-link.active:before {
        transform: translateX(0);
    }
    
    .main-menu .lang-selector {
        align-self: center;
        margin-top: 10px;
    }
}

/* Анімація для перемикачів мови */
.lang-selector select {
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #d4af37;
    border: 1px solid #d4af37;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-selector select:hover {
    background-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

/* Глобальні анімації для всіх інтерактивних елементів */
.btn-auth, .btn-download, .donate-button, .read-more {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-auth:hover, .btn-download:hover, .donate-button:hover, .read-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.25);
}

.btn-auth:active, .btn-download:active, .donate-button:active, .read-more:active {
    transform: translateY(1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* Ефект блиску при наведенні */
.btn-auth:after, .btn-download:after, .donate-button:after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: all 0.6s ease;
}

.btn-auth:hover:after, .btn-download:hover:after, .donate-button:hover:after {
    left: 120%;
}
