/* Calculator Styles */
.calculator-container {
    display: flex;
    gap: 3rem;
    padding: 3rem;
    max-width: 1600px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
}

.offer-section {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.offer-title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.slot-counter {
    color: #888;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.slots-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.slot {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

.slot:hover {
    border-color: rgba(0, 255, 136, 0.5);
    background: rgba(0, 255, 136, 0.1);
    transform: translateY(-2px);
}

.slot.add-slot {
    border-style: dashed;
}

.slot.add-slot .add-icon {
    font-size: 2rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.slot.add-slot .add-text {
    font-size: 1rem;
    color: #888;
    text-align: center;
}

.slot.filled {
    border-style: solid;
    border-color: rgba(0, 255, 136, 0.3);
    background: rgba(0, 255, 136, 0.1);
}

.slot.filled .item-image {
    width: 70%;
    height: 70%;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.slot.filled .item-name {
    font-size: 0.8rem;
    color: #ffffff;
    text-align: center;
    font-weight: 500;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.slot.filled .item-value {
    font-size: 0.7rem;
    color: #00ff88;
    font-weight: 600;
}

.slot .remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 0.8rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}

.slot.filled:hover .remove-btn {
    display: flex;
}

/* Calculator Summary */
.calculator-summary {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.summary-label {
    color: #888;
    font-size: 0.9rem;
    font-weight: 500;
}

.summary-value {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
}

#your-total {
    color: #00ff88;
}

#their-total {
    color: #ff6b6b;
}

#difference {
    color: #ffd93d;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    color: #ffffff;
    margin: 0;
    font-size: 1.3rem;
}

.modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-body .search-container {
    margin-bottom: 1.5rem;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.modal-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.modal-item:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateY(-2px);
}

.modal-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.modal-item .item-name {
    font-size: 0.8rem;
    color: #ffffff;
    font-weight: 500;
    line-height: 1.2;
}

.modal-item .item-value {
    font-size: 0.7rem;
    color: #00ff88;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calculator-container {
        flex-direction: column;
        padding: 1rem;
    }
    
    .offer-section {
        margin-bottom: 1rem;
    }
    
    .slots-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .calculator-summary {
        padding: 1rem;
    }
    
    .summary-value {
        font-size: 1.2rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media (max-width: 480px) {
    .slots-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calculator-summary {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .summary-item {
        flex-direction: row;
        gap: 1rem;
    }
} 