:root {
    --color-black: #0a0a0a;
    --color-dark-gray: #1a1a1a;
    --color-mid-gray: #2c2c2c;
    --color-light-gray: #d1d1d1;
    --color-text-muted: #888;
    --color-accent-orange: #ff6600;
    --color-accent-orange-dark: #cc5500;
    --font-main: 'Roboto', sans-serif;
}

@keyframes ken-burns {
    0% {
        background-size: 100% 100%;
        background-position: center center;
    }
    100% {
        background-size: 110% 110%;
        background-position: center 40%;
    }
}

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

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 5px var(--color-accent-orange), 0 0 10px var(--color-accent-orange), 0 0 15px var(--color-accent-orange-dark);
    }
    50% {
        text-shadow: 0 0 10px var(--color-accent-orange), 0 0 20px var(--color-accent-orange), 0 0 30px var(--color-accent-orange-dark);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

body {
    font-family: var(--font-main);
    margin: 0;
    background-color: var(--color-black);
    background-image: url('main.avif');
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--color-light-gray);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    animation: ken-burns 30s infinite alternate ease-in-out;
}

.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px 35px;
    background-color: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 25px rgba(var(--color-accent-orange), 0.1);
    animation: fadeInContainer 0.8s ease-out forwards;
}

header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 102, 0, 0.2);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

header h1 {
    color: #fff;
    margin: 0;
    font-weight: 700;
    font-size: 2.5em;
    letter-spacing: 1px;
    flex-grow: 1;
    text-align: left;
    padding-left: 15px;
    animation: glow 4s infinite ease-in-out;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-page-button {
    position: relative;
    overflow: hidden;
    display: inline-block;
    background-color: var(--color-accent-orange);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border: none;
    transition: background-color 0.3s, transform 0.2s;
}

.main-page-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.main-page-button:hover {
    background-color: var(--color-accent-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--color-accent-orange), 0.3);
}

.main-page-button:hover::before {
    transform: translateX(100%);
}

#languageSelector {
    background-color: var(--color-mid-gray);
    color: var(--color-light-gray);
    border: 1px solid #555;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

#languageSelector:hover {
    border-color: var(--color-accent-orange);
}

#languageSelector:focus {
    outline: none;
    border-color: var(--color-accent-orange);
    box-shadow: 0 0 10px rgba(var(--color-accent-orange), 0.5);
}

#searchInput {
    width: 100%;
    max-width: 600px;
    padding: 16px 25px;
    border: 1px solid #555;
    background-color: var(--color-mid-gray);
    color: var(--color-light-gray);
    border-radius: 50px;
    font-size: 16px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

#searchInput::placeholder {
    color: var(--color-text-muted);
}

#searchInput:focus {
    outline: none;
    border-color: var(--color-accent-orange);
    background-color: #333;
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.6), inset 0 2px 5px rgba(0,0,0,0.3);
}

#guideList {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#guideList li {
    background-color: #252525;
    margin-bottom: 15px;
    border-radius: 10px;
    border-left: 4px solid var(--color-mid-gray);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-left-color 0.3s ease;
    overflow: hidden;
}

.list-item-animate {
    opacity: 0;
    animation: slideInFromLeft 0.5s ease-out forwards;
}

#guideList li:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-left-color: var(--color-accent-orange);
}

#guideList li a {
    display: flex;
    align-items: center;
    padding: 18px 22px;
    text-decoration: none;
    color: var(--color-light-gray);
    transition: background-color 0.3s ease, color 0.3s ease;
}

#guideList li a:hover {
    background-color: rgba(45, 45, 45, 0.5);
    color: #fff;
}

#guideList li img {
    width: 40px;
    height: 40px;
    margin-right: 20px;
    border-radius: 8px;
    object-fit: cover;
    background-color: #404040;
    padding: 3px;
    border: 1px solid #555;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#guideList li:hover img {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

#guideList li .guide-name {
    font-size: 1.2em;
    font-weight: 400;
}

#statusMessage {
    color: var(--color-text-muted);
    font-size: 1.1em;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 102, 0, 0.2);
    font-size: 0.9em;
    color: var(--color-text-muted);
}

@media (max-width: 600px) {
    body {
        animation: none;
    }
    .container {
        margin: 15px;
        padding: 20px;
        backdrop-filter: blur(8px) saturate(120%);
        -webkit-backdrop-filter: blur(8px) saturate(120%);
    }
    .header-top {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    header h1 {
        font-size: 2.1em;
        text-align: center;
        padding-left: 0;
    }
    .header-controls {
        flex-direction: column;
        width: 100%;
    }
    .main-page-button, #languageSelector {
        width: 80%;
        text-align: center;
    }
}