/* RPW Seller Directory - Main Stylesheet */

/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#app {
    flex: 1;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

.min-width-0 {
    min-width: 0;
}

/* Badge Display */
.badge-container {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.badge-img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.badge-img.medium {
    width: 24px;
    height: 24px;
}

.badge-img.large {
    width: 32px;
    height: 32px;
}

.badge-label {
    font-size: 0.85em;
    padding: 0.15em 0.5em;
    border-radius: 3px;
}

.badge-label.blue-badge {
    background: #d0ebff;
    color: #0d6efd;
    border: 1px solid #a0cfff;
}

.badge-label.scam-badge {
    background: #ffe0e0;
    color: #dc3545;
    border: 1px solid #ffb3b3;
}

/* Card Hover Effects */
.card-hover {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Search Results */
.search-result-item {
    border-left: 3px solid transparent;
    transition: border-color 0.2s;
}

.search-result-item:hover {
    border-left-color: #0d6efd;
}

/* Loading Spinner */
.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Autocomplete Dropdown */
.autocomplete-dropdown {
    position: absolute;
    z-index: 1050;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
}

.autocomplete-item {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.15s;
}

.autocomplete-item:hover {
    background: #f8f9fa;
}

/* Rating Stars */
.rating-stars {
    font-size: 1.5rem;
    unicode-bidi: bidi-override;
    direction: rtl;
    text-align: left;
}

.rating-stars .form-check-inline {
    margin-right: 0;
}

.rating-stars label {
    cursor: pointer;
    color: #ddd;
    transition: color 0.15s;
}

.rating-stars input:checked ~ label,
.rating-stars label:hover,
.rating-stars label:hover ~ label {
    color: #ffc107;
}

/* Progress Steps */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    align-items: center;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}

.step.active .step-number {
    background: #0d6efd;
    color: white;
}

.step.completed .step-number {
    background: #198754;
    color: white;
}

.step-label {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.step-divider {
    width: 40px;
    height: 2px;
    background: #e9ecef;
    margin: 0 8px;
}

.step.active .step-divider,
.step.completed .step-divider {
    background: #0d6efd;
}

/* Stats Counter Animation */
.stat-counter {
    font-variant-numeric: tabular-nums;
}

/* Dark Mode Hero Section */
.bg-dark-light {
    background: rgba(255,255,255,0.05);
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.6rem;
    padding: 0.15rem 0.4rem;
}

/* Media Grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}

.media-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f8f9fa;
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-item-actions {
    position: absolute;
    top: 4px;
    right: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.media-item:hover .media-item-actions {
    opacity: 1;
}

/* Print */
@media print {
    .navbar, .sidebar, footer, .btn, .no-print {
        display: none !important;
    }
    body {
        background: white !important;
    }
}
