@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto:wght@300;400&display=swap');

:root {
    --primary-color: #00bfff;
    --secondary-color: #cccccc;
    --bg-color: #0a0a0a;
    --container-bg: rgba(20, 20, 20, 0.65);
    --item-bg-color: rgba(35, 35, 35, 0.8);
    --item-hover-bg-color: rgba(50, 50, 50, 0.9);
    --border-color: #333333;
    --glow-color: rgba(34, 0, 255, 0.6);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --border-radius: 6px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0% { text-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color), 0 0 15px var(--glow-color); }
    50% { text-shadow: 0 0 8px var(--primary-color), 0 0 18px var(--primary-color), 0 0 28px var(--glow-color); }
    100% { text-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color), 0 0 15px var(--glow-color); }
}


body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    background-image: url('main.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--secondary-color);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding-top: 40px;
    padding-bottom: 40px;
    overflow-x: hidden;
}

.container {
    background-color: var(--container-bg);
    backdrop-filter: blur(12px) saturate(110%);
    -webkit-backdrop-filter: blur(12px) saturate(110%);
    border: 1px solid var(--border-color);
    padding: 30px 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 0 25px rgba(0,0,0,0.5), inset 0 0 10px rgba(255,102,0,0.1);
    width: 90%;
    max-width: 800px;
    text-align: center;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

header {
    margin-bottom: 30px;
    position: relative;
}

.header-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    position: absolute;
    top: -15px;
    right: -15px;
}

#lang-switcher, .button-link {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: var(--border-radius);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
}

#lang-switcher:hover, .button-link:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--glow-color);
    transform: translateY(-2px);
}

#lang-switcher:focus {
    outline: none;
    box-shadow: 0 0 15px var(--glow-color);
}
#lang-switcher {
    background-color: var(--item-bg-color);
}


header h1 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    margin-bottom: 10px;
    margin-top: 30px;
    font-weight: 700;
    font-size: 2.8em;
    text-transform: uppercase;
    animation: pulseGlow 4s infinite ease-in-out, fadeInUp 0.8s ease-out 0.5s forwards;
    opacity: 0;
}

header p {
    color: var(--secondary-color);
    font-size: 1.1em;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

.search-container {
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1.1s forwards;
}

#searchInput {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1em;
    border: none;
    border-bottom: 2px solid var(--border-color);
    border-radius: 0;
    box-sizing: border-box;
    background-color: transparent;
    color: var(--secondary-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

#searchInput::placeholder {
    color: var(--secondary-color);
    opacity: 0.5;
}

#searchInput:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px -5px var(--glow-color);
}

.results-container {
    margin-top: 20px;
    text-align: left;
}

.result-item {
    display: block;
    padding: 15px 20px;
    margin-bottom: 12px;
    background-color: var(--item-bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    border-left: 4px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.result-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: left 0.7s ease-in-out;
}

.result-item:hover::before {
    left: 150%;
}

.result-item:hover {
    background-color: var(--item-hover-bg-color);
    transform: scale(1.02);
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 0 20px var(--shadow-color);
}

.no-results {
    color: var(--secondary-color);
    padding: 20px;
    background-color: var(--item-bg-color);
    border-radius: var(--border-radius);
    font-style: italic;
    border-left: 4px solid var(--secondary-color);
    opacity: 0.8;
}

footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9em;
    color: var(--secondary-color);
    opacity: 0.7;
}

@media (max-width: 600px) {
    body {
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .container {
        padding: 20px;
        width: 95%;
    }
    .header-controls {
        position: static;
        margin-bottom: 15px;
        justify-content: center;
    }
    header h1 {
        font-size: 2em;
        margin-top: 0;
    }
    #searchInput {
        padding: 12px 15px;
    }
}
