/* Request Auction Dropdown Styles */

/* Container for the dropdown */
.auction-dropdown-container {
    position: relative;
    z-index: 1000;
    width: 100%;
    margin-top: -1px; /* Overlap with row border */
}

/* Dropdown card style */
.auction-dropdown {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 
                0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    animation: slideDown 0.2s ease-out;
}

/* Arrow indicator - position near the RA button */
.auction-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 30px; /* Position near the RA button on the right */
    width: 16px;
    height: 16px;
    background: #1e293b;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    z-index: 1;
}

/* Alternative arrow positioning using CSS variable */
.auction-dropdown[style*="--arrow-position"]::before {
    left: var(--arrow-position);
    right: auto;
    transform: translateX(-50%) rotate(45deg);
}

/* Dropdown header */
.auction-dropdown-header {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.auction-dropdown-header h4 {
    margin: 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auction-dropdown-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.auction-dropdown-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Dropdown body */
.auction-dropdown-body {
    padding: 1.25rem;
}

.auction-domain-info {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.auction-domain-info p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
}

.auction-domain-name {
    font-family: monospace;
    font-size: 1rem;
    font-weight: 600;
    color: #a78bfa;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    display: inline-block;
}

/* Price info section */
.auction-price-info {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.auction-price-info p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
}

.auction-start-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #22c55e;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
}

/* No price notice */
.auction-no-price-notice {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.notice-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.auction-no-price-notice h5 {
    color: #ef4444;
    margin: 0 0 0.75rem 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.auction-no-price-notice p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.auction-no-price-notice p:last-child {
    margin-bottom: 0;
}

/* Form styles */
.auction-dropdown-form label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.auction-message-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    color: white;
    font-size: 0.875rem;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.auction-message-textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    background: rgba(0, 0, 0, 0.4);
}

.auction-message-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Note section */
.auction-note {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    margin: 1rem 0;
}

.auction-note p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.813rem;
    line-height: 1.4;
}

/* Buttons */
.auction-dropdown-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.auction-dropdown-submit {
    background: #8b5cf6;
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.auction-dropdown-submit:hover {
    background: #7c3aed;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.auction-dropdown-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auction-dropdown-cancel {
    background: rgba(107, 114, 128, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.auction-dropdown-cancel:hover {
    background: rgba(107, 114, 128, 0.4);
}

/* Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dropdown row styling */
#auction-dropdown-row {
    background: transparent !important;
}

#auction-dropdown-row td {
    padding-top: 0 !important;
    padding-bottom: 10px !important;
    border-top: none !important;
    background: transparent !important;
}

/* Ensure dropdown stays within viewport */
.auction-dropdown-container {
    padding: 0 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .auction-dropdown-container {
        padding: 0 10px;
    }
    
    .auction-dropdown::before {
        right: 25px;
    }
    
    .auction-start-price {
        font-size: 1.25rem;
    }
}

/* Overlay for mobile */
@media (max-width: 640px) {
    .auction-dropdown-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 999;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem;
    }
    
    .auction-dropdown-container {
        position: static;
        width: 100%;
        max-width: 400px;
    }
    
    .auction-dropdown::before {
        display: none;
    }
}