/* Payment Delivery System Styles */

/* Modal Base Styles */
.delivery-confirmation-modal,
.download-center-modal,
.purchase-prompt-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.delivery-confirmation-modal .modal-content,
.download-center-modal .modal-content,
.purchase-prompt-modal .modal-content {
    background: #1a1a1a;
    border: 2px solid #cc0000;
    border-radius: 10px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
}

/* Delivery Confirmation Styles */
.confirmation-content {
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.confirmation-content h3 {
    color: #cc0000;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.purchase-details {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: left;
}

.purchase-details p {
    margin: 0.5rem 0;
    color: #fff;
}

.delivery-status {
    background: #1a4a1a;
    border: 1px solid #28a745;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.delivery-status h4 {
    color: #28a745;
    margin-bottom: 0.5rem;
}

.delivery-status p {
    margin: 0.25rem 0;
    color: #fff;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.primary-btn,
.secondary-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-btn {
    background: #cc0000;
    color: white;
}

.primary-btn:hover {
    background: #aa0000;
    transform: translateY(-2px);
}

.secondary-btn {
    background: #444;
    color: white;
}

.secondary-btn:hover {
    background: #555;
    transform: translateY(-2px);
}

/* Download Center Styles */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #444;
}

.modal-header h3 {
    color: #cc0000;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: #ccc;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #cc0000;
}

.download-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.download-option {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 1.5rem;
}

.download-option h4 {
    color: #cc0000;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.download-option p {
    color: #ccc;
    margin-bottom: 1rem;
}

.download-btn {
    background: #cc0000;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-family: 'Bebas Neue', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.download-btn:hover {
    background: #aa0000;
    transform: translateY(-2px);
}

.track-download-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 0.5rem;
}

.track-download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    border-bottom: 1px solid #333;
}

.track-download-item:last-child {
    border-bottom: none;
}

.track-number {
    color: #cc0000;
    font-weight: bold;
    width: 30px;
}

.track-name {
    color: #fff;
    flex: 1;
    margin-left: 0.5rem;
}

.mini-download-btn {
    background: #444;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mini-download-btn:hover {
    background: #cc0000;
}

/* Play/Pause Button States */
.mini-play-btn.playing {
    background: #cc0000;
    color: white;
}

.mini-play-btn:hover {
    background: #aa0000;
    color: white;
}

.purchase-info {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 1.5rem;
}

.purchase-info h4 {
    color: #cc0000;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.purchase-info p {
    margin: 0.5rem 0;
    color: #fff;
}

/* Purchase Prompt Styles */
.purchase-prompt-modal .modal-content {
    max-width: 400px;
    text-align: center;
}

.purchase-prompt-modal h3 {
    color: #cc0000;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.purchase-prompt-modal p {
    color: #ccc;
    margin-bottom: 1.5rem;
}

.prompt-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.purchase-btn {
    background: #cc0000;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-family: 'Bebas Neue', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.purchase-btn:hover {
    background: #aa0000;
    transform: translateY(-2px);
}

.cancel-btn {
    background: #666;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-family: 'Bebas Neue', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #777;
}

/* Toast Notifications */
.success-toast,
.error-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    z-index: 10001;
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.success-toast {
    background: #28a745;
    border: 1px solid #1e7e34;
}

.error-toast {
    background: #dc3545;
    border: 1px solid #c82333;
}

.success-toast i,
.error-toast i {
    font-size: 1.2rem;
}

/* Track Status Updates */
.track-status.owned {
    background: #28a745;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

.track-status.stream {
    background: #007bff;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

.track-status.preview {
    background: #ffc107;
    color: #000;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

/* Button Updates */
.download-album.purchased {
    background: #28a745 !important;
    color: white !important;
}

.download-album.purchased:hover {
    background: #218838 !important;
}

.download-track {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-track:hover {
    background: #218838;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from { 
        opacity: 0;
        transform: translateX(100px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .download-options {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .prompt-actions {
        flex-direction: column;
    }
    
    .delivery-confirmation-modal .modal-content,
    .download-center-modal .modal-content,
    .purchase-prompt-modal .modal-content {
        padding: 1rem;
        margin: 1rem;
    }
}