@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 60s ease infinite;
    color: #222324;
    font-family: 'Inter', sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    user-select: none;
    position: relative;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 10;
    opacity: 0;
    animation: fadeInSlide 1s ease forwards;
    animation-delay: 0.2s;
}

.card {
    background-color: rgba(255, 255, 255, 0.7);
    width: 300px;
    height: 250px;
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: background-color 0.5s ease, color 0.5s ease;
}

.card img {
    border-radius: 15px;
}

.zagolovok {
    margin-top: 10px;
}

.fa-brands, .fa-solid {
    text-decoration: none;
    padding: 5px;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.2s ease, color 0.2s ease, filter 0.2s ease;
    display: inline-block;
}

.fa-brands:not(.clicked):hover,
.fa-solid:not(.clicked):hover {
    transform: scale(1.15);
    filter: brightness(0.05);
}

.fa-discord.clicked {
    color: #7fb882 !important;
    filter: brightness(1) !important;
    transform: scale(1);
}

body.dark-theme .card {
    background-color: rgba(0, 0, 0, 0.6);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* В темной теме */
body.dark-theme .fa-brands, body.dark-theme .fa-solid {
    color: rgba(0, 0, 0, 0.6);
}

body.dark-theme .fa-brands:hover, body.dark-theme .fa-solid:hover {
    color: #ffffff;
    filter: brightness(0.95);
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.footer-text {
    position: absolute;
    bottom: 10px;
    left: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    pointer-events: none;
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 45%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: 0.3s;
    z-index: 1000;
}

.theme-toggle:hover {
    transform: scale(1.15);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.05) 0px,
        rgba(255, 255, 255, 0.05) 1px,
        transparent 2px,
        transparent 10px
    );
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(-45deg, #232526, #414345, #2c3e50, #000000);
    background-size: 400% 400%;
    animation: gradientBG 60s ease infinite;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: -2;
    pointer-events: none;
    opacity: 0.1;
}

body.dark-theme::after {
    opacity: 1;
}

.roblox-icon {
    padding-left: 10px;
    width: 42px;
    margin: -10px;
    transition: 0.2s;
}

.roblox-icon {
    padding-left: 10px;
    width: 42px;
    margin: -10px;
    transition: 0.2s;
    filter: invert(1);
    opacity: 0.7;
}

.roblox-link:hover .roblox-icon {
    transform: scale(1.1);
    opacity: 1;
    filter: invert(1) brightness(0.16);
}

body.dark-theme .roblox-icon {
    filter: invert(0);
    brightness: 1;
    opacity: 0.6;
}

body.dark-theme .roblox-link:hover .roblox-icon {
    filter: invert(1);
    filter: invert(1) brightness(0.95);
    opacity: 1;
}
