
/* ==========================================
   Domain Search Section — BLACK THEME
   Dark Background | Blue Accents | 5px Radius
========================================== */

.domain-search-section {
    position: relative;
    padding: 60px 0 60px;
    background: #0a0e1a;
    overflow: hidden;
}

/* -------- Container -------- */

.domain-search-section .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ==========================================
   Domain Search Box (main card)
========================================== */

.domain-search-box {
    background: linear-gradient(135deg, #111827 0%, #0f172a 50%, #0a0e1a 100%);
    border-radius: 5px;
    border: 1px solid rgba(56, 98, 255, 0.10);
    padding: 48px 44px 40px 44px;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.40);
    position: relative;
    overflow: hidden;
}

/* -------- Subtle decorative glows (dark theme) -------- */

.domain-search-box::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(56, 98, 255, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.domain-search-box::after {
    content: '';
    position: absolute;
    bottom: -120px;
    left: -120px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(106, 59, 255, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ==========================================
   Search Badge
========================================== */

.search-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(56, 98, 255, 0.10);
    border: 1px solid rgba(56, 98, 255, 0.15);
    border-radius: 5px;
    padding: 5px 14px 5px 12px;
    font-size: 11px;
    font-weight: 500;
    color: #4a7aff;
    letter-spacing: 0.2px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.search-badge i {
    font-size: 11px;
}

/* ==========================================
   Heading
========================================== */

.domain-search-box h2 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 1;
}

.domain-search-box h2 span {
    background: linear-gradient(135deg, #4a7aff 0%, #6d3bff 50%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* -------- Description -------- */

.domain-search-box p {
    font-size: 15px;
    line-height: 1.6;
    color: #94a3b8;
    max-width: 540px;
    margin: 0 auto 24px;
    position: relative;
    z-index: 1;
}

/* ==========================================
   Search Form
========================================== */

#domainSearchForm {
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
}

.search-wrapper {
    display: flex;
    gap: 12px;
    max-width: 560px;
    margin: 0 auto;
}

/* -------- Input Field -------- */

#domainInput {
    flex: 1;
    padding: 13px 18px;
    font-size: 16px;
    font-weight: 400;
    color: #f1f5f9;
    background: #1e293b;
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-radius: 5px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-width: 0;
}

#domainInput::placeholder {
    color: #64748b;
    font-weight: 400;
}

#domainInput:focus {
    border-color: #4a7aff;
    box-shadow: 0 0 0 4px rgba(56, 98, 255, 0.12);
}

/* -------- Submit Button -------- */

.search-wrapper button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    background: linear-gradient(135deg, #4a7aff 0%, #6d3bff 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(56, 98, 255, 0.25);
}

.search-wrapper button i {
    font-size: 14px;
}

.search-wrapper button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(56, 98, 255, 0.40);
}

.search-wrapper button:active {
    transform: scale(0.97);
}

/* ==========================================
   Popular Extensions
========================================== */

.extensions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.extensions span {
    display: inline-block;
    padding: 4px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #4a7aff;
    background: rgba(56, 98, 255, 0.06);
    border: 1px solid rgba(56, 98, 255, 0.10);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.extensions span:hover {
    background: rgba(56, 98, 255, 0.14);
    border-color: rgba(56, 98, 255, 0.25);
    transform: translateY(-2px);
}

/* ==========================================
   Domain Result
========================================== */

.domain-result {
    position: relative;
    z-index: 1;
    min-height: 20px;
    margin-bottom: 12px;
}

/* -------- Placeholder State -------- */

.result-placeholder {
    text-align: center;
    padding: 30px 20px 24px 20px;
    border-radius: 5px;
    border: 1px dashed rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.result-placeholder i {
    font-size: 36px;
    color: #4a7aff;
    opacity: 0.25;
    margin-bottom: 12px;
    display: block;
}

.result-placeholder h3 {
    font-size: 16px;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0 0 6px 0;
}

.result-placeholder p {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    margin: 0 auto;
    max-width: 400px;
}

/* -------- Search Results (dynamic) -------- */

.search-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: fadeInUp 0.4s ease;
}

.search-results .result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 5px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.search-results .result-item:hover {
    border-color: rgba(56, 98, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.20);
    transform: translateX(4px);
}

.search-results .result-item .domain-name {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: #f1f5f9;
    letter-spacing: -0.01em;
}

.search-results .result-item .status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 14px;
    border-radius: 5px;
    white-space: nowrap;
}

.search-results .result-item .status.available {
    color: #34d399;
    background: rgba(16, 185, 129, 0.10);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.search-results .result-item .status.available i {
    font-size: 14px;
    color: #34d399;
}

.search-results .result-item .status.unavailable {
    color: #f87171;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.12);
}

.search-results .result-item .status.unavailable i {
    font-size: 14px;
    color: #f87171;
}

.search-results .result-item .buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 18px;
    background: linear-gradient(135deg, #4a7aff 0%, #6d3bff 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 14px rgba(56, 98, 255, 0.20);
    white-space: nowrap;
}

.search-results .result-item .buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(56, 98, 255, 0.35);
}

/* -------- Fade In Animation -------- */

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   Powered By
========================================== */

.powered-by {
    display: block;
    font-size: 12px;
    color: #64748b;
    position: relative;
    z-index: 1;
    margin-top: 4px;
}

.powered-by strong {
    color: #4a7aff;
    font-weight: 600;
}

/* ==========================================
   Responsive
========================================== */

/* -------- Tablets (<= 768px) -------- */

@media (max-width: 768px) {
    .domain-search-box {
        padding: 36px 28px 32px 28px;
    }

    .domain-search-box h2 {
        font-size: 24px;
    }

    .domain-search-box p {
        font-size: 14px;
    }

    .search-wrapper {
        max-width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    #domainInput {
        padding: 12px 16px;
        font-size: 15px;
        width: 100%;
    }

    .search-wrapper button {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }

    .extensions {
        gap: 6px;
    }

    .extensions span {
        font-size: 12px;
        padding: 3px 12px;
    }

    .result-placeholder {
        padding: 24px 16px 20px 16px;
    }

    .result-placeholder h3 {
        font-size: 15px;
    }

    .result-placeholder p {
        font-size: 13px;
    }

    .result-placeholder i {
        font-size: 30px;
    }

    .search-results .result-item {
        padding: 10px 14px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .search-results .result-item .domain-name {
        font-size: 15px;
        flex: 1 1 100%;
        order: 1;
    }

    .search-results .result-item .status {
        font-size: 12px;
        padding: 3px 12px;
        order: 2;
    }

    .search-results .result-item .buy-btn {
        padding: 5px 16px;
        font-size: 12px;
        order: 3;
        margin-left: auto;
    }
}

/* -------- Mobile (<= 480px) -------- */

@media (max-width: 480px) {
    .domain-search-section {
        padding: 40px 0 40px;
    }

    .domain-search-box {
        padding: 28px 18px 24px 18px;
    }

    .domain-search-box h2 {
        font-size: 20px;
    }

    .domain-search-box p {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .search-badge {
        font-size: 10px;
        padding: 4px 10px;
    }

    .search-badge i {
        font-size: 10px;
    }

    #domainInput {
        padding: 10px 14px;
        font-size: 14px;
    }

    .search-wrapper button {
        padding: 10px 20px;
        font-size: 13px;
    }

    .search-wrapper button i {
        font-size: 12px;
    }

    .extensions {
        gap: 6px;
        margin-bottom: 16px;
    }

    .extensions span {
        font-size: 11px;
        padding: 2px 10px;
    }

    .result-placeholder {
        padding: 18px 14px 16px 14px;
    }

    .result-placeholder i {
        font-size: 26px;
        margin-bottom: 8px;
    }

    .result-placeholder h3 {
        font-size: 14px;
    }

    .result-placeholder p {
        font-size: 12px;
        max-width: 100%;
    }

    .powered-by {
        font-size: 11px;
    }

    .search-results .result-item {
        padding: 8px 12px;
        gap: 8px;
    }

    .search-results .result-item .domain-name {
        font-size: 14px;
    }

    .search-results .result-item .status {
        font-size: 11px;
        padding: 2px 10px;
    }

    .search-results .result-item .status i {
        font-size: 12px;
    }

    .search-results .result-item .buy-btn {
        padding: 4px 14px;
        font-size: 11px;
    }
}

/* -------- Very small phones (<= 360px) -------- */

@media (max-width: 360px) {
    .domain-search-section {
        padding: 30px 0 30px;
    }

    .domain-search-box {
        padding: 20px 14px 18px 14px;
    }

    .domain-search-box h2 {
        font-size: 18px;
    }

    .domain-search-box p {
        font-size: 12px;
    }

    .extensions {
        gap: 4px;
    }

    .extensions span {
        font-size: 10px;
        padding: 2px 8px;
    }

    #domainInput {
        padding: 8px 12px;
        font-size: 13px;
    }

    .search-wrapper button {
        padding: 8px 16px;
        font-size: 12px;
    }

    .result-placeholder {
        padding: 14px 10px 12px 10px;
    }

    .result-placeholder i {
        font-size: 22px;
    }

    .result-placeholder h3 {
        font-size: 13px;
    }

    .result-placeholder p {
        font-size: 11px;
    }

    .powered-by {
        font-size: 10px;
    }

    .search-results .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 10px 12px;
    }

    .search-results .result-item .domain-name {
        font-size: 14px;
        flex: 1 1 auto;
        order: 1;
    }

    .search-results .result-item .status {
        font-size: 11px;
        padding: 2px 10px;
        order: 2;
    }

    .search-results .result-item .buy-btn {
        padding: 4px 14px;
        font-size: 11px;
        order: 3;
        margin-left: 0;
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* -------- Reduced motion preference -------- */

@media (prefers-reduced-motion: reduce) {
    .search-wrapper button {
        transition: none;
    }

    .search-wrapper button:hover {
        transform: none;
    }

    .extensions span {
        transition: none;
    }

    .extensions span:hover {
        transform: none;
    }

    .result-placeholder {
        transition: none;
    }

    .search-results {
        animation: none;
    }

    .search-results .result-item {
        transition: none;
    }

    .search-results .result-item:hover {
        transform: none;
    }

    .search-results .result-item .buy-btn {
        transition: none;
    }

    .search-results .result-item .buy-btn:hover {
        transform: none;
    }

    #domainInput {
        transition: none;
    }
}