/* Use the same color scheme as monster generator */
body {
    color: #e7bf8f !important;
}

.item-details {
    max-width: 1200px;
    margin: auto;
    margin-top: 2rem;
    background-color: #151f25;
    color: #e7bf8f;
    padding: 2rem;
    border-radius: 0.5rem;
}

.item-header {
    margin-bottom: 1.5rem;
}

.item-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e7bf8f;
    margin-bottom: 0.5rem;
    text-align: center;
}

.item-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.item-type {
    font-style: italic;
    color: #e7bf8f;
    opacity: 0.8;
}

.attunement-required {
    font-style: italic;
    color: #ff6b6b;
    font-size: 0.9em;
}

.item-source {
    text-align: center;
    font-style: italic;
    opacity: 0.7;
    margin-top: 0.5rem;
}

.monster-link {
    color: #4ecdc4;
    text-decoration: none;
    font-weight: 500;
}

.monster-link:hover {
    text-decoration: underline;
    color: #6fede6;
}

.rarity-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rarity-common { background-color: #6b7280; color: white; }
.rarity-uncommon { background-color: #10b981; color: white; }
.rarity-rare { background-color: #3b82f6; color: white; }
.rarity-very_rare { background-color: #8b5cf6; color: white; }
.rarity-legendary { background-color: #f59e0b; color: white; }
.rarity-artifact { background-color: #ef4444; color: white; }
.rarity-pending { background-color: #fbbf24; color: #1f2937; }

.divider {
    height: 3px;
    background: linear-gradient(90deg, transparent, #e7bf8f, transparent);
    margin: 1.5rem auto;
    width: 80%;
}

.basic-properties {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.property-item {
    text-align: center;
}

.property-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(231, 191, 143, 0.7);
    margin-bottom: 0.25rem;
}

.property-value {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: #e7bf8f;
}

.info-card {
    background-color: #151f25;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-title {
    color: #e7bf8f;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
}

.item-description {
    line-height: 1.7;
    color: #e7bf8f;
    text-align: justify;
}

.item-description p {
    margin-bottom: 1rem;
}

.item-description ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.item-description li {
    margin-bottom: 0.5rem;
}

.item-description strong {
    color: #fbbf24;
    font-weight: 600;
}

.magical-properties {
    line-height: 1.7;
    color: #e7bf8f;
}

.magical-properties p {
    margin-bottom: 1rem;
}

.magical-properties ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.magical-properties li {
    margin-bottom: 0.5rem;
}

.magical-properties strong {
    color: #fbbf24;
    font-weight: 600;
}

.generate-another-btn {
    text-align: center;
    margin-top: 2rem;
}

.generate-another-btn .btn {
    background-color: #4ecdc4;
    border-color: #4ecdc4;
    color: #1f2937;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
}

.generate-another-btn .btn:hover {
    background-color: #6fede6;
    border-color: #6fede6;
    transform: translateY(-1px);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 20, 25, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-icon {
    width: 40px;
    height: 40px;
    border: 4px solid #151f25;
    border-top: 4px solid #e7bf8f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loot-item-link {
    text-decoration: none;
}

.loot-item-link:hover {
    text-decoration: none;
}

.loot-item-link .loot-item:hover {
    opacity: 0.8;
    transform: scale(1.05);
    transition: all 0.2s ease;
}

/* Responsive design */
@media (max-width: 768px) {
    .item-name {
        font-size: 2rem;
    }
    
    .basic-properties {
        gap: 1rem;
    }
    
    .item-meta {
        gap: 0.5rem;
    }
    
    .divider {
        width: 90%;
        margin: 1rem auto;
    }
}