/* Domain Sales Platform - Frontend Styles v2.0 */

/* Grid Layout */
.dsp-domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* Domain Cards */
.dsp-domain-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dsp-domain-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.dsp-domain-card.dsp-featured {
    border: 2px solid #ffc107;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

/* Domain Image */
.dsp-domain-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.dsp-domain-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dsp-domain-card:hover .dsp-domain-image img {
    transform: scale(1.05);
}

/* Featured Badge */
.dsp-featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffc107;
    color: #000;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
}

/* Sold Overlay */
.dsp-sold-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.dsp-sold-badge {
    background: #dc3545;
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 24px;
    font-weight: bold;
    transform: rotate(-10deg);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.5);
}

/* Domain Content */
.dsp-domain-header {
    padding: 20px 20px 10px;
}

.dsp-domain-name {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #2c3e50;
    word-break: break-word;
}

.dsp-domain-category {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.dsp-domain-description {
    padding: 0 20px 15px;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    flex-grow: 1;
}

/* Domain Metrics */
.dsp-domain-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.dsp-metric-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #495057;
}

.dsp-metric-icon {
    font-size: 14px;
}

.dsp-metric-value {
    font-weight: 600;
}

/* Domain Price */
.dsp-domain-price {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.dsp-price-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.dsp-price-amount {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}

/* Domain Actions */
.dsp-domain-actions {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #e9ecef;
}

.dsp-domain-actions button {
    flex: 1;
}

/* Buttons */
.dsp-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dsp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.dsp-btn-primary {
    background: #007bff;
    color: #fff;
}

.dsp-btn-primary:hover:not(:disabled) {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.dsp-btn-secondary {
    background: #6c757d;
    color: #fff;
}

.dsp-btn-secondary:hover:not(:disabled) {
    background: #545b62;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Modal */
.dsp-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

.dsp-modal-content {
    background-color: #fff;
    margin: 0;
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.dsp-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #999;
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
}

.dsp-modal-close:hover,
.dsp-modal-close:focus {
    color: #000;
    background: #f0f0f0;
}

.dsp-modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 24px;
    padding-right: 40px;
}

.dsp-buy-price {
    font-size: 18px;
    margin: 15px 0 25px;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
}

.dsp-buy-price strong {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}

/* Form Styles */
.dsp-form-group {
    margin-bottom: 20px;
}

.dsp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.dsp-form-group input,
.dsp-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.dsp-form-group input:focus,
.dsp-form-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

.dsp-form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
}

.dsp-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.dsp-form-actions button {
    flex: 1;
}

/* No Domains Message */
.dsp-no-domains {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dsp-domain-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dsp-modal-content {
        width: 95%;
        max-width: none;
        padding: 30px 20px;
        max-height: 90vh;
        overflow-y: auto;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    
    .dsp-modal-content h2 {
        font-size: 20px;
        padding-right: 35px;
    }
    
    .dsp-modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 28px;
    }
    
    .dsp-domain-actions {
        flex-direction: column;
    }
    
    .dsp-price-amount {
        font-size: 24px;
    }
    
    .dsp-form-actions {
        flex-direction: column;
    }
    
    .dsp-buy-price {
        font-size: 16px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .dsp-domain-name {
        font-size: 18px;
    }
    
    .dsp-price-amount {
        font-size: 20px;
    }
    
    .dsp-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .dsp-modal-content {
        padding: 25px 15px;
        border-radius: 12px;
    }
    
    .dsp-modal-content h2 {
        font-size: 18px;
    }
    
    .dsp-form-group label {
        font-size: 13px;
    }
    
    .dsp-form-group input,
    .dsp-form-group textarea {
        font-size: 14px;
        padding: 10px;
    }
}

/* Prevent body scroll when modal is open */
body.dsp-modal-open {
    overflow: hidden;
}
