* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: #2c2c2c;
    padding: 0.75rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    border-bottom: 2px solid #dc3545;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #dc3545;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-menu a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-menu a:hover {
    color: #dc3545;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #b0b0b0;
}

.nav-user-id {
    font-size: 0.75rem;
    color: #b0b0b0;
}

.nav-user-badge {
    background: #dc3545;
    color: #fff;
    padding: 0.15rem 0.4rem;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

.nav-user-btn {
    background: #1a1a1a;
    color: #e0e0e0;
    border: 1px solid #3c3c3c;
    border-radius: 4px;
    padding: 0.35rem 0.6rem;
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.nav-user-btn:hover {
    border-color: #dc3545;
    color: #dc3545;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropbtn {
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #2c2c2c;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    z-index: 1000;
    border-radius: 4px;
    top: calc(100% + 2px);
    left: 0;
    border: 1px solid #3c3c3c;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    right: 0;
    height: 4px;
}

.dropdown-content a {
    color: #e0e0e0;
    padding: 0.6rem 1rem;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.dropdown-content a:hover {
    background-color: #3c3c3c;
    color: #dc3545;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Content */
.content {
    min-height: auto;
    padding: 1.5rem 0;
    flex: 1;
}

.hero {
    text-align: center;
    padding: 2.5rem 0;
}

.hero h1 {
    font-size: 2.5rem;
    color: #dc3545;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
    color: #b0b0b0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.card {
    background-color: #2c2c2c;
    border-radius: 6px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #3c3c3c;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
    border-color: #dc3545;
}

.card h3 {
    color: #dc3545;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.card p {
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    background-color: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 0.75rem;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.95rem;
}

.btn:hover {
    background-color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* Forms */
.search-box {
    width: 100%;
    padding: 0.75rem;
    background-color: #2c2c2c;
    border: 1px solid #3c3c3c;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.search-box:focus {
    outline: none;
    border-color: #dc3545;
}

.filters {
    display: flex;
    gap: 0.75rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 0.9rem;
    background-color: #3c3c3c;
    border: 1px solid #4c4c4c;
    border-radius: 4px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-btn:hover, .filter-btn.active {
    background-color: #dc3545;
    border-color: #dc3545;
    transform: translateY(-1px);
}

/* Footer */
.footer {
    background-color: #2c2c2c;
    padding: 1.25rem 0;
    text-align: center;
    color: #b0b0b0;
    border-top: 2px solid #dc3545;
    font-size: 0.9rem;
    margin-top: auto;
}

/* Item Grid */
.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.item-card {
    background-color: #2c2c2c;
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s;
    border: 1px solid #3c3c3c;
}

.item-card:hover {
    transform: translateY(-2px);
    border-color: #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.item-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.75rem;
    background-color: #3c3c3c;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-name {
    color: #dc3545;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.item-description {
    color: #b0b0b0;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.item-value {
    color: #ffd700;
    font-weight: bold;
}

/* Item Tooltip (shared) */
.item-tooltip {
    position: fixed;
    background: linear-gradient(180deg, rgba(32, 32, 32, 0.98), rgba(16, 16, 16, 0.98));
    border: 1px solid rgba(220, 53, 69, 0.6);
    border-radius: 6px;
    padding: 0.95rem;
    min-width: 260px;
    max-width: 340px;
    z-index: 2000;
    display: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    pointer-events: auto;
}

.item-tooltip.active {
    display: block;
}

.tooltip-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 0.5rem;
}

.tooltip-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.tooltip-icon {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    object-fit: cover;
}

.tooltip-name {
    font-weight: 700;
    color: #dc3545;
    font-size: 0.95rem;
}

.tooltip-category {
    font-size: 0.7rem;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tooltip-link {
    color: #f0f0f0;
    font-size: 0.7rem;
    text-decoration: none;
    padding: 0.2rem 0.45rem;
    border: 1px solid #3c3c3c;
    border-radius: 4px;
    background: #1a1a1a;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tooltip-link:hover {
    border-color: #dc3545;
    color: #dc3545;
}

.tooltip-close {
    background: transparent;
    border: 1px solid #3c3c3c;
    color: #f0f0f0;
    border-radius: 4px;
    padding: 0.15rem 0.4rem;
    font-size: 0.7rem;
    cursor: pointer;
}

.tooltip-close:hover {
    border-color: #dc3545;
    color: #dc3545;
}

.tooltip-description {
    color: #b0b0b0;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.6rem;
}

.tooltip-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.4rem 0.6rem;
}

.tooltip-detail {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.tooltip-detail .detail-label {
    color: #777;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.tooltip-detail .detail-value {
    color: #f0f0f0;
    font-size: 0.8rem;
    font-weight: 600;
}
