/* Reset and base styles */
* {
    margin: 0;
    padding: unset;
    box-sizing: border-box;
}


/* Header */
header {
    background: rgba(0, 0, 0, 0.33);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1000;
}

header img {
    vertical-align: middle;
}

header nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

header nav a {
    display: inline-block;
    color: #ffd700;
    margin: 0.5rem;
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    font-family: 'UnifrakturCook', sans-serif;
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #ffd700;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
}

header nav a:hover {
    background: #ffd700;
    color: #000;
}

/* User profile image */
.user-profile {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.user-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ffd700;
    object-fit: cover;
}

/* Navbar toggle button */
.nav-toggle {
    margin-right: 10px;
    margin-top: 10px;
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: #ffd700;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: #ffd700;
    left: 0;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Close button */
.nav-close {
    display: none;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #ffd700;
    color: #ffd700;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 4px;
    margin: 0.5rem auto;
    transition: background 0.3s, color 0.3s;
}

.nav-close:hover {
    background: #ffd700;
    color: #000;
}

header nav.nav-open .nav-close {
    display: block;
}

/* Main content */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    flex: 1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #ffd700;
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'UnifrakturCook', sans-serif;
    font-weight: bold;
}

.btn:hover {
    background: #e6c200;
}

/* Form container */
.form-container {
    max-width: 500px;
    margin: 2rem auto;
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    border-radius: 8px;
}

.form-container h2 {
    color: #ffd700;
    margin-bottom: 1rem;
    text-align: center;
    font-family: 'UnifrakturCook', sans-serif;
}

.form-container label {
    display: block;
    margin: 0.5rem 0;
    font-weight: bold;
}

.form-container input {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 4px;
    background: #333;
    color: #fff;
}

.form-container button {
    width: 100%;
    padding: 0.8rem;
}

.form-container .error {
    color: #ff0000;
    margin-bottom: 1rem;
}

.form-container .success {
    color: #00ff00;
    margin-bottom: 1rem;
}

.form-container a {
    color: #ffd700;
    text-decoration: none;
}

.form-container a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    header nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        background: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        padding: 1rem;
        z-index: 1000;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
        border: 1px solid #ffd700;
    }

    header nav.nav-open {
        display: flex;
    }

    header nav a {
        margin: 0.5rem 0;
        padding: 1rem 1.5rem;
        width: 80%;
        text-align: center;
        font-size: 1.2rem;
    }

    main {
        margin-top: 100px;
    }

    .form-container {
        padding: 1rem;
    }

    .user-profile {
        position: absolute;
        top: 1rem;
        right: 4rem;
    }
}
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 50, 0.5);
    border-bottom: 3px solid #1b9bf0;
    position: relative;
}
body {
    cursor: var(--point-wow-gif) 16 16, auto;
}

header img {
    height: 80px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

header img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(52, 152, 219, 0.7));
    cursor: var(--hover-wow-gif) 16 16, auto;
}

header nav {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

header nav.no-session {
    margin: 0 auto;
}

header nav a {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(27, 155, 240, 0.85) 0%, rgba(25, 158, 185, 0.75) 58%);
    color: #ffffff;
    border: 1px solid #1b9bf0;
    transition: all 0.25s ease;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

header nav a.register,
header nav a.login {
    margin-right: 10px;
}

header nav a:hover {
    background: linear-gradient(135deg, rgba(41, 128, 185, 0.9) 0%, rgba(31, 97, 141, 0.85) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.6);
}

header nav a.active {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    border-color: #e67e22;
    box-shadow: 0 4px 12px rgba(211, 84, 0, 0.5);
}

.nav-close {
    position: absolute;
    top: 0.3rem;
    right: 1rem;
    background: #e74c3c;
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-close:hover {
    background: #c0392b;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.5);
}

/* User profile styles */
.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
    position: relative;
}

.user-profile.session {
    margin-left: 0;
    margin-right: 0.2rem;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-currency {
    display: flex;
    gap: 0.6rem;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.4);
    font-size: 0.95rem;
}

.user-currency span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.6rem;
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.user-currency .points {
    background: linear-gradient(135deg, #1b9bf0 0%, #199fb9 100%);
    color: #ffee00ff;
    border: 1px solid #1b9bf0;
}

.user-currency .points:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f618d 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.5);
}

.user-currency .tokens {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: #ffffff;
    border: 1px solid #1b9bf0;
}

.user-currency .tokens:hover {
    background: linear-gradient(135deg, #8e44ad 0%, #7d3c98 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(155, 89, 182, 0.5);
}

/* Language dropdown styles */
.lang-dropdown {
    position: relative;
    display: inline-block;
    width: 150px;
    font-family: 'Cinzel', serif;
}

.lang-selected {
    background: linear-gradient(135deg, rgba(27, 155, 240, 0.8) 0%, rgba(25, 159, 185, 0.6) 58%);
    color: #ffffff;
    padding: 8px 12px;
    border: 2px solid #1b9bf0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 12px rgba(52, 152, 219, 0.7), 0 0 8px rgba(52, 152, 219, 0.5);
    transition: all 0.3s ease;
}

.lang-selected:hover {
    background: linear-gradient(135deg, rgba(41, 128, 185, 0.9) 0%, rgba(31, 97, 141, 0.7) 100%);
    transform: scale(1.05);
    box-shadow: 0 0 18px rgba(52, 152, 219, 0.8), 0 0 12px rgba(52, 152, 219, 0.7);
}

.lang-selected img {
    width: 20px;
    height: 15px;
    border-radius: 2px;
}

.lang-options {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.8), rgba(26, 10, 10, 0.8));
    border: 2px solid #1b9bf0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.7);
    list-style: none;
    margin: 5px 0 0 0;
    padding: 0;
    display: none;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.lang-options.show {
    display: block;
    transform: translateY(0);
}

.lang-options li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lang-options li:hover {
    background: linear-gradient(135deg, rgba(41, 128, 185, 0.9) 0%, rgba(31, 97, 141, 0.7) 100%);
    transform: translateX(5px);
}

.lang-options li img {
    width: 20px;
    height: 15px;
    border-radius: 2px;
}

/* Profile dropdown styles */
.profile-dropdown {
    position: relative;
    display: inline-block;
}

.user-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #1b9bf0;
    box-shadow: 0 2px 5px rgba(52, 152, 219, 0.5);
    object-fit: cover;
    cursor: pointer;
    margin-right: -20px;
    transition: all 0.3s ease;
}

.user-image:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.6);
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.8), rgba(26, 10, 10, 0.8));
    border: 2px solid #1b9bf0;
    border-radius: 8px;
    padding: 0.5rem 0;
    z-index: 1001;
    display: none;
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.6);
    animation: fadeIn 0.3s ease-in-out;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(52, 152, 219, 0.1);
    border-bottom: 1px solid #1b9bf0;
}

.dropdown-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #1b9bf0;
    box-shadow: 0 2px 5px rgba(52, 152, 219, 0.5);
    margin-right: 1rem;
}

.user-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    color: #ffffff;
}

.user-info .username {
    font-weight: 600;
    font-size: 1.1rem;
}

.user-info .email {
    font-size: 0.9rem;
    color: #cccccc;
}

.dropdown-currency {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
    font-size: 1rem;
}

.dropdown-currency span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-currency .points {
    color: #ffffff;
}

.dropdown-currency .tokens {
    color: #9b59b6;
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #1b9bf0, transparent);
    margin: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(41, 128, 185, 0.9) 0%, rgba(31, 97, 141, 0.7) 100%);
    color: #ffffff;
}

.dropdown-item i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.dropdown-item.admin-panel {
    color: #ffffff;
}

.dropdown-item.admin-panel:hover {
    background: linear-gradient(135deg, #1b9bf0 0%, #199fb9 100%);
    color: #ffffff;
}

.dropdown-item.logout {
    color: #ff6b6b;
}

.dropdown-item.logout:hover {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #ffffff;
}

.dropdown-item.vote {
    color: #ffffff;
}

.dropdown-item.vote:hover {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: #ffffff;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Desktop adjustments */
@media (min-width: 769px) {
    .nav-close {
        display: none !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
        padding: 1rem;
    }

    header nav {
        display: none;
        width: 100%;
        flex-direction: column;
        background: linear-gradient(135deg, rgba(10, 10, 10, 0.8), rgba(26, 10, 10, 0.8));
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem;
        box-shadow: 0 4px 15px rgba(52, 152, 219, 0.5);
        border-bottom: 3px solid #1b9bf0;
    }

    header nav.nav-open {
        display: flex;
    }

    header nav a {
        font-size: 1rem;
        padding: 0.5rem 1rem;
        margin: 0.5rem 0;
    }

    header nav a.register,
    header nav a.login {
        margin-right: 0;
    }

    .nav-toggle {
        display: block;
        margin-right: -8px;
        z-index: 1002;
    }

    .nav-close {
        display: block;
        margin-right: -10px;
    }

    .user-profile {
        position: absolute;
        right: 7.5rem;
        top: 1.5rem;
    }

    .lang-dropdown {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        width: 40px;
    }

    .lang-selected {
        padding: 0.4rem;
        font-size: 0.8rem;
        justify-content: center;
    }

    .lang-selected img {
        width: 16px;
        height: 12px;
    }

    .lang-selected span {
        display: none;
    }

    .lang-options {
        margin-top: 3rem;
        right: 0;
        width: 124px;
    }

    .lang-options li {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }

    .lang-options li img {
        width: 16px;
        height: 12px;
        margin-right: 0.4rem;
    }

    .profile-info {
        display: none;
    }

    .dropdown-menu {
        right: -50px;
        width: 250px;
    }

    .user-currency {
        padding: 0.5rem 1rem;
    }

    .user-currency span {
        font-size: 1rem;
        padding: 0.3rem 0.6rem;
    }

    .dropdown-header {
        padding: 0.5rem 0.75rem;
    }

    .dropdown-image {
        width: 40px;
        height: 40px;
    }

    .user-info .username {
        font-size: 1rem;
    }

    .user-info .email {
        font-size: 0.8rem;
    }

    .dropdown-currency {
        font-size: 0.9rem;
    }

    .dropdown-item {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
}