/* Items Page Specific Styles */

/* Items Navigation */
.items-nav {
    background: rgba(26, 26, 26, 0.95);
    padding: 2rem 0;
    border-bottom: 2px solid #4CAF50;
    position: sticky;
    top: 80px;
    z-index: 100;
}

.items-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.items-nav-btn {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    color: #e0e0e0;
    border: 2px solid #4CAF50;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.items-nav-btn:hover,
.items-nav-btn.active {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

/* Items Sections */
.items-section {
    display: none;
    padding: 4rem 0;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
}

.items-section.active {
    display: block;
}

.section-title {
    color: #4CAF50;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.section-description {
    color: #e0e0e0;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Priority Categories */
.priority-categories {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.priority-category h3 {
    color: #4CAF50;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

/* Items Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Item Cards */
.item-card {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
}

.item-card.legendary::before {
    background: linear-gradient(90deg, #ff8c00, #ffa500);
}

.item-card.tier::before {
    background: linear-gradient(90deg, #9c27b0, #e91e63);
}

.item-card.weapon::before {
    background: linear-gradient(90deg, #2196f3, #03a9f4);
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.2);
}

.item-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.item-info h4 {
    color: #e0e0e0;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.item-source {
    color: #b8860b;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-style: italic;
}

/* Item Priority */
.item-priority {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.priority-level {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-level.highest {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
    border: 1px solid #F44336;
}

.priority-level.high {
    background: rgba(255, 152, 0, 0.2);
    color: #FF9800;
    border: 1px solid #FF9800;
}

.priority-level.medium {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
    border: 1px solid #FFC107;
}

.priority-level.low {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.assigned-to {
    color: #e0e0e0;
    font-size: 0.9rem;
}

/* Item Progress */
.item-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.progress-label {
    color: #4CAF50;
    font-weight: 600;
    font-size: 0.9rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(76, 175, 80, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
    transition: width 0.3s ease;
}

.progress-text {
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Set Progress */
.set-progress {
    margin-top: 1rem;
}

.set-pieces {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.piece {
    background: rgba(76, 175, 80, 0.1);
    color: #e0e0e0;
    padding: 0.3rem 0.6rem;
    border-radius: 10px;
    font-size: 0.8rem;
    border: 1px solid #4CAF50;
}

.piece.completed {
    background: rgba(76, 175, 80, 0.3);
    color: #4CAF50;
    font-weight: 600;
}

/* Wishlist Controls */
.wishlist-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.add-item-btn {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: #000;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-item-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.wishlist-filters {
    display: flex;
    gap: 1rem;
}

.wishlist-filters select {
    background: rgba(26, 26, 26, 0.8);
    color: #e0e0e0;
    border: 2px solid #4CAF50;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 1rem;
}

/* My Wishlist */
.my-wishlist {
    min-height: 300px;
}

.wishlist-empty {
    text-align: center;
    color: #e0e0e0;
    font-size: 1.2rem;
    padding: 3rem;
    background: rgba(76, 175, 80, 0.1);
    border: 2px dashed #4CAF50;
    border-radius: 15px;
}

.wishlist-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Guild Needs */
.needs-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.need-category {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border: 2px solid #4CAF50;
    border-radius: 15px;
    padding: 2rem;
}

.need-category h3 {
    color: #4CAF50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.need-list,
.class-needs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.need-item,
.class-need {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 10px;
    border-left: 4px solid #4CAF50;
}

.item-name,
.class-name {
    color: #e0e0e0;
    font-weight: 600;
}

.need-count,
.items-needed {
    color: #4CAF50;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Recent Drops */
.drops-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.drop-entry {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border: 2px solid #4CAF50;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.drop-entry:hover {
    transform: translateY(-3px);
}

.drop-date {
    color: #4CAF50;
    font-weight: 600;
    font-size: 1rem;
    min-width: 120px;
}

.drop-details {
    flex: 1;
}

.drop-item {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.drop-item.legendary {
    color: #ff8c00;
}

.drop-item.tier {
    color: #9c27b0;
}

.drop-item.weapon {
    color: #2196f3;
}

.drop-recipient {
    color: #e0e0e0;
    margin-bottom: 0.3rem;
}

.drop-recipient strong {
    color: #4CAF50;
}

.drop-source {
    color: #b8860b;
    font-style: italic;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    margin: 5% auto;
    padding: 2rem;
    border: 2px solid #4CAF50;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    color: #e0e0e0;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.close:hover {
    color: #4CAF50;
}

.modal-content h2 {
    color: #4CAF50;
    margin-bottom: 2rem;
    text-align: center;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #4CAF50;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #4CAF50;
    border-radius: 10px;
    background: rgba(26, 26, 26, 0.8);
    color: #e0e0e0;
    font-size: 1rem;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: #000;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .items-nav-buttons {
        gap: 0.5rem;
    }
    
    .items-nav-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .items-grid {
        grid-template-columns: 1fr;
    }
    
    .wishlist-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wishlist-filters {
        justify-content: center;
    }
    
    .needs-summary {
        grid-template-columns: 1fr;
    }
    
    .drop-entry {
        flex-direction: column;
        gap: 1rem;
    }
    
    .drop-date {
        min-width: auto;
    }
    
    .item-priority {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }
    
    .item-card {
        padding: 1.5rem;
    }
    
    .item-info h4 {
        font-size: 1.1rem;
    }
    
    .priority-category h3 {
        font-size: 1.5rem;
    }
    
    .need-category {
        padding: 1.5rem;
    }
    
    .drop-entry {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .items-nav,
    .wishlist-controls,
    .modal {
        display: none !important;
    }
    
    .items-section {
        display: block !important;
        padding: 1rem 0;
    }
    
    .item-card,
    .need-category,
    .drop-entry {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    body {
        background: #fff !important;
        color: #000 !important;
    }
}

/* Accessibility */
.items-nav-btn:focus,
.add-item-btn:focus,
.submit-btn:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .item-card,
    .need-category,
    .drop-entry {
        border-width: 3px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .item-card,
    .drop-entry,
    .items-nav-btn,
    .add-item-btn,
    .submit-btn {
        transition: none;
    }
}
