/**
 * Marketplace Stylesheet
 * Common styles for the marketplace system - Designer-style theme
 */

/* Global marketplace styles */
.marketplace-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Poppins', sans-serif;
}

/* Button styles - Designer theme */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: #88D098;
}

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

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-danger {
    background-color: #AF4C4C;
    color: white;
}

.btn-danger:hover {
    background-color: #D06B6B;
}

/* Card styles - Designer theme */
.card {
    background: var(--gst-background-columncontainer);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-2px);
}

/* Badge styles - Designer theme */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.badge-primary {
    background: #eaefd9;
    color: #5EBD73;
}

.badge-warning {
    background: #fcf4e2;
    color: #856404;
}

.badge-danger {
    background: #ffd6da;
    color: #AF4C4C;
}

.badge-info {
    background: #def3f6;
    color: #0c5460;
}

/* Loading spinner - Designer style */
.spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid var(--gst-background-lightgray);
    border-top: 5px solid var(--gst-background-pink);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty states - Designer style */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--gst-text-959595);
    font-family: 'Poppins', sans-serif;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
    color: var(--gst-text-pink);
}

.empty-state h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--gst-body-fontcolor);
}

.empty-state p {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
}

/* Currency icons */
.currency-icon {
    height: 14px;
    vertical-align: middle;
    margin-right: 3px;
}

.currency-display {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.currency-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Status indicators */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-dot.active {
    background-color: #5EBD73;
}

.status-dot.sold {
    background-color: #d33;
}

.status-dot.expired {
    background-color: #6c757d;
}

/* Tooltips */
.tooltip-trigger {
    cursor: help;
    border-bottom: 1px dotted currentColor;
}

/* Responsive grid */
.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Price formatting */
.price {
    font-weight: 700;
    color: var(--gst-text-pink);
}

.price-negotiable {
    color: #5EBD73;
    font-style: italic;
}

/* Time remaining indicator */
.time-remaining {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
}

.time-remaining.urgent {
    color: #d33;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Form elements - Designer style */
.form-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--gst-text-4D4D4D);
    font-family: 'Poppins', sans-serif;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gst-border-ccc);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    transition: border-color 0.2s;
    background-color: var(--gst-background-white);
    color: var(--gst-body-fontcolor);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--gst-border-pink);
}

.form-help {
    display: block;
    margin-top: 5px;
    color: var(--gst-text-555);
    font-size: 12px;
}

.form-error {
    color: #d33;
    font-size: 12px;
    margin-top: 5px;
}

/* Alert boxes */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border: 1px solid var(--gst-border-ccc);
    border-radius: 6px;
    color: var(--gst-body-fontcolor);
    text-decoration: none;
    transition: all 0.2s;
}

.pagination a:hover {
    background-color: var(--gst-background-pink);
    color: white;
    border-color: var(--gst-background-pink);
}

.pagination .current {
    background-color: var(--gst-background-pink);
    color: white;
    border-color: var(--gst-background-pink);
}

/* Image preview */
.image-preview {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Loading states */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--gst-text-555);
}

.loading-text {
    margin-top: 15px;
    font-size: 14px;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}




