@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --dark-bg: #0f172a;
    --light-bg: #f1f5f9;
    --card-bg: #ffffff;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --font-family: 'Gotham', 'Gotham Black', 'Heebo', 'Arial Black', sans-serif;
}

body {
    font-family: var(--font-family);
    font-weight: 900;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 900;
    font-family: var(--font-family);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Navbar */
.navbar {
    background-color: var(--card-bg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.navbar ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    padding: 1rem;
    display: inline-block;
    transition: color 0.3s ease;
    font-weight: 900;
    font-family: var(--font-family);
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Sections */
section {
    margin-bottom: 3rem;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
    font-weight: 900;
    font-family: var(--font-family);
}

/* Items Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.item-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.item-image {
    width: 100%;
    height: 180px;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 3rem;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-content {
    padding: 1.5rem;
}

.item-name {
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    font-family: var(--font-family);
}

.item-rarity {
    font-size: 0.9rem;
    font-weight: 900;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 1rem;
    background-color: var(--light-bg);
    color: var(--text-dark);
    font-family: var(--font-family);
}

.item-rarity.gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

/* Classic Rarity Colors */
.item-rarity.classic-common {
    background-color: #94a3b8;
    color: white;
}

.item-rarity.classic-uncommon {
    background-color: #10b981;
    color: white;
}

.item-rarity.classic-rare {
    background-color: #3b82f6;
    color: white;
}

.item-rarity.classic-epic {
    background-color: #8b5cf6;
    color: white;
}

.item-rarity.classic-legendary {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
}

.item-rarity.classic-mythic {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.item-rarity.classic-secret {
    background-color: #000000;
    color: white;
}

.item-rarity.classic-og {
    background: linear-gradient(135deg, #ffff00 0%, #000000 100%);
    color: black;
}

.item-rarity.classic-admin {
    background: linear-gradient(135deg, #ef4444 0%, #ffff00 100%);
    color: black;
}

.item-money {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--success-color);
    font-family: var(--font-family);
}

.money-icon {
    font-size: 1.3rem;
}

/* Guides */
.guide-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.guide-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 900;
    font-family: var(--font-family);
}

/* About Section */
.about-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

/* Secret Trigger */
.secret-trigger {
    position: fixed;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 50;
}

/* Modal Base */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close-modal {
    color: var(--text-light);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--text-dark);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-family: var(--font-family);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-family);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-secondary {
    background-color: var(--light-bg);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* File Input */
.file-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-input-wrapper input[type="file"] {
    display: none;
}

.file-input-label {
    display: block;
    padding: 0.75rem;
    background-color: var(--light-bg);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-input-label:hover {
    border-color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.05);
}

/* Preview */
.image-preview {
    margin-top: 1rem;
    text-align: center;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Rarity Options */
.rarity-options {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.rarity-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rarity-option input[type="radio"] {
    cursor: pointer;
    width: auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .navbar ul {
        gap: 0.5rem;
    }

    .nav-link {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .item-image {
        height: 120px;
        font-size: 2rem;
    }

    .item-content {
        padding: 1rem;
    }

    .item-name {
        font-size: 1rem;
    }

    .item-rarity {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .modal-content {
        max-width: 95%;
        padding: 1.5rem;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }

    .item-card {
        border-radius: 8px;
    }

    .item-image {
        height: 100px;
    }

    .item-content {
        padding: 0.75rem;
    }

    .header-content h1 {
        font-size: 1.5rem;
    }

    section h2 {
        font-size: 1.3rem;
    }

    .guide-card {
        padding: 1rem;
    }
}
