/* ========================================
   Search Results Page Styles - GoDaddy Style
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700;800&display=swap');

* {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Search Header Section */
.search-header-section {
    background: #f9fafb;
    padding: 30px 0;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb a {
    color: #1e7b8f;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #176574;
}

.breadcrumb span:last-child {
    color: #6b7280;
    font-weight: 600;
}

/* Search Again Form */
.search-again-form {
    max-width: 800px;
    margin: 0 auto 30px;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #111827;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.search-input {
    flex: 1;
    padding: 16px 20px;
    font-size: 16px;
    border: none;
    outline: none;
    color: #111827;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: #1e7b8f;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.search-btn:hover {
    background: #176574;
}

.search-btn svg {
    width: 20px;
    height: 20px;
}

/* Search Stats */
.search-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    padding: 16px 24px;
    background: #fff;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    min-width: 120px;
}

.stat-item.success {
    border-color: #10b981;
    background: #ecfdf5;
}

.stat-item.info {
    border-color: #3b82f6;
    background: #eff6ff;
}

.stat-item strong {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 4px;
}

.stat-item div {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
}

/* Results Section */
.results-section {
    background: #fff;
    padding: 10px 0 100px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top-color: #1e7b8f;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error State */
.error-state {
    text-align: center;
    padding: 60px 20px;
}

.error-state svg {
    width: 64px;
    height: 64px;
    color: #ef4444;
    margin-bottom: 20px;
}

.error-state h3 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
}

.error-state p {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 24px;
}

/* Suggestions Section */
.suggestions-section {
    margin-bottom: 10px;
}

.btn-outline {
    padding: 10px 20px;
    background: transparent;
    border: 2px solid #1e7b8f;
    color: #1e7b8f;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background: #1e7b8f;
    color: #fff;
}

/* Filter Section */
.filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 30px;
}

.results-count {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

#sort-select {
    padding: 10px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

#sort-select:hover {
    border-color: #1e7b8f;
}

#sort-select:focus {
    outline: none;
    border-color: #1e7b8f;
    box-shadow: 0 0 0 3px rgba(30, 123, 143, 0.1);
}

/* Primary Domain Card */
.primary-domain-card {
    margin-bottom: 30px;
}

/* Available Banner */
.available-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
    border: 2px solid #10b981;
    border-radius: 12px;
    margin-bottom: 24px;
}

.available-banner svg {
    width: 32px;
    height: 32px;
    color: #10b981;
    stroke-width: 3;
}

.available-banner h2 {
    font-size: 24px;
    font-weight: 800;
    color: #065f46;
    margin: 0;
}

/* Results Category */
.results-category {
    margin-bottom: 40px;
}

/* Domains List */
.domains-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* Domain Card */
.domain-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.domain-card:hover {
    border-color: #1e7b8f;
    box-shadow: 0 8px 25px rgba(30, 123, 143, 0.15);
    transform: translateY(-2px);
}

.domain-card.available {
    border-left: 4px solid #10b981;
}

/* Domain Info */
.domain-info {
    flex: 1;
}

.domain-name {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    word-break: break-word;
    line-height: 1.3;
}

.domain-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge.popular {
    background: #dbeafe;
    color: #1e40af;
}

.badge.premium {
    background: #fef3c7;
    color: #92400e;
}

.badge.cheap {
    background: #d1fae5;
    color: #065f46;
}

/* Domain Pricing */
.domain-pricing {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.price-info {
    flex: 1;
}

.price {
    font-size: 28px;
    font-weight: 800;
    color: #10b981;
    line-height: 1;
    margin-bottom: 4px;
}

.price-details {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.old-price {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
}

.discount {
    padding: 2px 8px;
    background: #fef2f2;
    color: #dc2626;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
}

.renewal-price {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

/* Buttons */
.btn-add-cart {
    padding: 12px 24px;
    background: #10b981;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-add-cart:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn {
    padding: 12px 28px;
    background: #1e7b8f;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover {
    background: #176574;
}

/* Load More Section */
.load-more-section {
    text-align: center;
    margin: 40px 0;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-load-more:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

.btn-load-more svg {
    transition: transform 0.3s ease;
}

.btn-load-more:hover:not(:disabled) svg {
    transform: translateY(3px);
}

#more-count {
    font-size: 14px;
    opacity: 0.9;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #111827;
    color: #fff;
    padding: 16px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
    max-width: 400px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.error {
    background: #dc2626;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .domains-list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .search-stats {
        gap: 20px;
    }
    
    .stat-item {
        min-width: 100px;
        padding: 12px 16px;
    }
    
    .stat-item strong {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .search-header-section {
        padding: 20px 0;
    }
    
    .search-wrapper {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
    
    .search-stats {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .stat-item {
        flex: 1;
        min-width: 90px;
    }
    
    .filter-section {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    #sort-select {
        width: 100%;
    }
    
    .domains-list {
        grid-template-columns: 1fr;
    }
    
    .domain-pricing {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-add-cart {
        width: 100%;
    }
    
    .available-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .available-banner h2 {
        font-size: 20px;
    }
    
    .btn-load-more {
        padding: 14px 30px;
        font-size: 15px;
    }
    
    .toast {
        right: 16px;
        left: 16px;
        bottom: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .search-input {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .domain-name {
        font-size: 18px;
    }
    
    .price {
        font-size: 24px;
    }
    
    .stat-item strong {
        font-size: 20px;
    }
}