/* ================================
   ITEMS DATABASE - MODERN DESIGN V1
   Account Management Style
   ================================ */

:root {
    --primary-bg: #0f141a;
    --secondary-bg: #1a2332;
    --border-color: #2a3440;
    --accent-cyan: #00ffaa;
    --text-light: #e6f8ff;
    --text-muted: #a8b3c2;
    --error-red: #ff4444;
    --success-green: #7AF972;
    --warning-yellow: #F9F572;
    --items-blue: #4a90e2;
    --items-purple: #9b59b6;
    --items-orange: #e67e22;
}

/* ================================
   CONTAINER & LAYOUT
   ================================ */

.items-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ================================
   HEADER
   ================================ */

.items-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #1a2332 0%, #0f141a 100%);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.items-logo {
    font-size: 64px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 20px rgba(0, 255, 170, 0.3));
}

.items-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-light);
    margin: 0 0 12px 0;
    text-shadow: 0 2px 10px rgba(0, 255, 170, 0.2);
}

.items-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ================================
   INFO BOX
   ================================ */

.info-box {
    background: linear-gradient(135deg, rgba(0, 255, 170, 0.1) 0%, rgba(0, 255, 170, 0.05) 100%);
    border: 1px solid rgba(0, 255, 170, 0.2);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.info-icon {
    font-size: 24px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(0, 255, 170, 0.5));
}

.info-text {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.info-text strong {
    color: var(--accent-cyan);
}

/* ================================
   CATEGORY SECTION
   ================================ */

.category-section {
    background: var(--secondary-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    overflow: hidden;
}

.category-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #1a2332 0%, #141c28 100%);
    border-bottom: 2px solid var(--border-color);
}

.category-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-cyan);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 170, 0.4));
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    padding: 24px;
}

/* ================================
   ITEM CARD
   ================================ */

.item-card {
    background: linear-gradient(135deg, #1a2332 0%, #141c28 100%);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 255, 170, 0.2);
    border-color: var(--accent-cyan);
}

.item-image-container {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 8px;
}

.item-image-container img {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    max-width: 48px;
    max-height: 48px;
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.5));
}

.item-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    margin: 0;
}

.item-card:hover .item-name {
    color: var(--accent-cyan);
}

/* ================================
   STATS BOX
   ================================ */

.stats-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #1a2332 0%, #141c28 100%);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ================================
   ANIMATIONS
   ================================ */

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-scale {
    animation: fadeInScale 0.4s ease-out;
}

.category-section {
    animation: slideInUp 0.5s ease-out;
}

.category-section:nth-child(1) {
    animation-delay: 0s;
}

.category-section:nth-child(2) {
    animation-delay: 0.1s;
}

.category-section:nth-child(3) {
    animation-delay: 0.2s;
}

.item-card {
    animation: fadeInScale 0.3s ease-out;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media screen and (max-width: 1024px) {
    .items-container {
        padding: 16px;
    }
    
    .items-header {
        padding: 30px 16px;
    }
    
    .items-title {
        font-size: 30px;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
        padding: 20px;
    }
}

@media screen and (max-width: 768px) {
    .items-title {
        font-size: 26px;
    }
    
    .items-subtitle {
        font-size: 14px;
    }
    
    .category-header {
        padding: 16px 20px;
    }
    
    .category-title {
        font-size: 20px;
    }
    
    .category-icon {
        font-size: 24px;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
        padding: 16px;
    }
    
    .item-card {
        padding: 16px;
    }
    
    .item-name {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .items-container {
        padding: 12px;
    }
    
    .items-header {
        padding: 24px 12px;
    }
    
    .items-logo {
        font-size: 48px;
    }
    
    .items-title {
        font-size: 22px;
    }
    
    .items-subtitle {
        font-size: 13px;
    }
    
    .info-box {
        padding: 16px;
        gap: 12px;
    }
    
    .info-icon {
        font-size: 20px;
    }
    
    .info-text {
        font-size: 14px;
    }
    
    .category-section {
        margin-bottom: 20px;
    }
    
    .category-header {
        padding: 14px 16px;
    }
    
    .category-title {
        font-size: 18px;
    }
    
    .category-icon {
        font-size: 20px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 12px;
    }
    
    .item-card {
        padding: 12px;
        gap: 8px;
    }
    
    .item-image-container {
        width: 56px;
        height: 56px;
        padding: 6px;
    }
    
    .item-image-container img {
        max-width: 40px;
        max-height: 40px;
    }
    
    .item-name {
        font-size: 13px;
    }
    
    .stats-box {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 11px;
    }
}

/* ================================
   UTILITY CLASSES
   ================================ */

.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}
