* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background:
            url("../images/backdrop.jpg") no-repeat,
            linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.contain {
    max-width: 1200px;
    margin: 0 auto;
}

.no-dedoration {
    text-decoration: none;
    color: white;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.item-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.item-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.item-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.item-info h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.item-type {
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.item-stats {
    margin-top: 15px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 5px 0;
}

.stat-label {
    font-weight: 600;
    color: #555;
}

.stat-value {
    font-weight: bold;
    color: #2c3e50;
}

.rarity-common { border-left: 4px solid #95a5a6; }
.rarity-uncommon { border-left: 4px solid #27ae60; }
.rarity-rare { border-left: 4px solid #3498db; }
.rarity-epic { border-left: 4px solid #9b59b6; }
.rarity-legendary { border-left: 4px solid #f39c12; }

.item-description {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    color: #666;
    font-style: italic;
    line-height: 1.4;
}

.stat-bar {
    background: #ecf0f1;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-left: 10px;
    flex: 1;
    max-width: 100px;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, #e74c3c, #f39c12, #27ae60);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.add-item-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.add-item-btn:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .items-grid {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 2rem;
    }
}

.item-icon-zoom {
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    justify-content: left;
}

.item-icon-zoom img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    object-position: left;
}

.item-card::before {
    top: -6px;
    left: -6px;
    content: '';
    display: block;
    position: absolute;
    width: calc(100% + 12px);
    height: calc(100% + 12px);
    -webkit-filter: blur(6px);
    filter: blur(6px);
    background: url(../images/item-base-bg.jpg) center top;
    background-size: cover;
}
.inline {
    display: flex;
    gap: 2em;
    margin: 30px auto;
    justify-content: center;
}


.navbar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 0 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    height: 70px;
}

.nav-item {
    position: relative;
    margin: 0 10px;
    z-index: 1001;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    font-weight: bold;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
}

.dropdown-icon {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.nav-item:hover .dropdown-icon {
    transform: rotate(90deg);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s ease;
    z-index: 1000;
    margin-top: 10px;
    list-style: none;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-link {
    color: #333;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    transition: all 0.2s ease;
    position: relative;
}

.dropdown-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.dropdown-item:first-child .dropdown-link {
    border-radius: 12px 12px 0 0;
}

.dropdown-item:last-child .dropdown-link {
    border-radius: 0 0 12px 12px;
}

.dropdown-item:first-child:last-child .dropdown-link {
    border-radius: 12px;
}

.brand {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-right: 40px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-item.has-dropdown .nav-link {
    padding-right: 35px;
}

.dropdown-item {
    list-style: none;
}


.submenu-icon {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.dropdown-item:hover .submenu-icon {
    transform: rotate(90deg);
}

hr {
    color: #928fff;
}

.submenu {
    position: absolute;
    top: 0;
    left: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.2s ease;
    z-index: 10001;
    margin-left: 10px;
    list-style: none;
}

.dropdown-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.submenu-item {
    padding: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    list-style: none;
}

.submenu-item:last-child {
    border-bottom: none;
}

.submenu-link {
    color: #333;
    text-decoration: none;
    padding: 12px 18px;
    display: block;
    transition: all 0.2s ease;
}

.submenu-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.submenu-item:first-child .submenu-link {
    border-radius: 12px 12px 0 0;
}

.submenu-item:last-child .submenu-link {
    border-radius: 0 0 12px 12px;
}

.submenu-item:first-child:last-child .submenu-link {
    border-radius: 12px;
}

.item-list .aiondb-link-icon {
    display: none !important;
}

.item-list span {
    font-size: 1em !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
    }

    .nav-item {
        margin: 5px 0;
        width: 100%;
    }

    .nav-link {
        justify-content: center;
        width: 100%;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 0;
        display: none;
    }

    .nav-item:hover .dropdown {
        display: block;
    }

    .brand {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-link {
    text-decoration: none;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.lang-link.active {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border-color: rgba(255, 255, 255, 0.9);
}

.lang-separator {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

@media (max-width: 768px) {
    .language-selector {
        margin-top: 15px;
        justify-content: center;
    }

    .lang-link {
        font-size: 12px;
        padding: 4px 8px;
    }
}