/**
 * Details Modal Styles
 * Styles for the offer details modal component
 */

.details-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.details-modal.active {
    pointer-events: auto;
    opacity: 1;
}

.details-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.details-panel {
    position: relative;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    background: #0a0a0a;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    border: 1px solid #262626;
}

.details-modal.active .details-panel {
    transform: scale(1);
}

.details-header {
    padding: 1.5rem;
    border-bottom: 1px solid #262626;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.details-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
}

.details-close:hover {
    background: #262626;
}

.details-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    color: #fff;
}

.details-content::-webkit-scrollbar {
    width: 8px;
}

.details-content::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.details-content::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 4px;
}

.details-content::-webkit-scrollbar-thumb:hover {
    background: #525252;
}

.details-footer {
    padding: 1.5rem;
    border-top: 1px solid #262626;
    background: #0a0a0a;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .details-panel {
        max-height: 95vh;
    }

    .details-header,
    .details-content,
    .details-footer {
        padding: 1rem;
    }
}
