/**
 * DewaBiz Domain Checker - Modern List Design
 * Inspired by GoDaddy/Namecheap style
 * Blue theme matching dewa.biz branding
 */

/* ============================================
   RESET & BASE
   ============================================ */
.wdc-form,
.wdc-form *,
#results,
#results * {
    font-family: inherit !important;
    box-sizing: border-box;
}

/* ============================================
   SEARCH FORM - TOP BAR STYLE
   ============================================ */
.wdc-form {
    max-width: 800px;
    margin: 0 auto 30px;
}

.wdc-form .input-group,
.wdc-form .wdc-input-group {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.wdc-form .input-group:focus-within,
.wdc-form .wdc-input-group:focus-within {
    border-color: #126dff;
    box-shadow: 0 0 0 4px rgba(18, 109, 255, 0.1);
}

.wdc-form input[type="text"],
.wdc-form input[name="domain"] {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 14px 18px !important;
    font-size: 16px !important;
    outline: none !important;
    box-shadow: none !important;
}

.wdc-form input[type="text"]:focus,
.wdc-form input[name="domain"]:focus {
    outline: none !important;
    box-shadow: none !important;
}

.wdc-form button[type="submit"],
.wdc-form input[type="submit"],
.wdc-form #Submit {
    background: #126dff !important;
    color: white !important;
    border: none !important;
    padding: 14px 28px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    white-space: nowrap;
}

.wdc-form button[type="submit"]:hover,
.wdc-form input[type="submit"]:hover,
.wdc-form #Submit:hover {
    background: #0052cc !important;
}

/* ============================================
   RESULTS CONTAINER
   ============================================ */
#results {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

#results:empty {
    border: none;
    box-shadow: none;
}

.wdc-domain-result,
.wdc-domain-result__list {
    margin-bottom: 0 !important;
}

/* ============================================
   DOMAIN LIST ROWS - BASE STYLE
   ============================================ */
.callout {
    background: #fff !important;
    border: none !important;
    border-bottom: 1px solid #f3f4f6 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    transition: background 0.2s ease;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
}

.callout:hover {
    background: #f9fafb !important;
}

.callout .row {
    width: 100%;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

.callout .col-xs-6,
.callout .col-xs-10 {
    padding: 16px 20px !important;
    display: flex !important;
    align-items: center !important;
    float: none !important;
}

.callout .col-xs-6:first-child {
    text-align: left !important;
    justify-content: flex-start !important;
    flex: 1;
    min-width: 0;
}

.callout .col-xs-6:last-child {
    text-align: right !important;
    justify-content: flex-end !important;
    gap: 15px;
}

/* ============================================
   DOMAIN NAME STYLING
   ============================================ */
.callout .col-xs-6:first-child {
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #374151 !important;
}

/* TLD highlighting (make extension stand out) */
.callout .col-xs-6:first-child strong {
    color: #126dff !important;
    font-weight: 700 !important;
}

/* ============================================
   STATUS ICONS
   ============================================ */
/* Checkmark icon - Available */
.callout.available .glyphicon-ok,
.callout.callout-success .glyphicon-ok,
.callout .glyphicon-ok {
    color: #22c55e !important;
    font-size: 14px !important;
    margin-right: 12px !important;
    flex-shrink: 0;
}

/* X icon - Not Available */
.callout.not-available .glyphicon-remove,
.callout.callout-danger .glyphicon-remove,
.callout .glyphicon-remove {
    color: #9ca3af !important;
    font-size: 14px !important;
    margin-right: 12px !important;
    flex-shrink: 0;
}

/* Warning icon */
.callout.notfound .glyphicon-exclamation-sign,
.callout.callout-warning .glyphicon-exclamation-sign,
.callout .glyphicon-exclamation-sign {
    color: #f59e0b !important;
    font-size: 14px !important;
    margin-right: 12px !important;
    flex-shrink: 0;
}

/* ============================================
   FIRST RESULT - HIGHLIGHTED CARD
   ============================================ */
.wdc-domain-result__list:first-child .callout,
#results > .callout:first-child,
#results > div:first-child .callout {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    border: none !important;
    border-bottom: 2px solid #93c5fd !important;
    margin-bottom: 0 !important;
}

.wdc-domain-result__list:first-child .callout .col-xs-6:first-child,
#results > .callout:first-child .col-xs-6:first-child,
#results > div:first-child .callout .col-xs-6:first-child {
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #1e40af !important;
}

.wdc-domain-result__list:first-child .callout .glyphicon-ok,
#results > .callout:first-child .glyphicon-ok,
#results > div:first-child .callout .glyphicon-ok {
    font-size: 16px !important;
}

/* First result button style */
.wdc-domain-result__list:first-child .callout .order-btn,
.wdc-domain-result__list:first-child .callout .btn-success,
#results > .callout:first-child .order-btn,
#results > div:first-child .callout .order-btn {
    background: #126dff !important;
    padding: 10px 22px !important;
    font-size: 13px !important;
}

.wdc-domain-result__list:first-child .callout .order-btn:hover,
.wdc-domain-result__list:first-child .callout .btn-success:hover,
#results > .callout:first-child .order-btn:hover,
#results > div:first-child .callout .order-btn:hover {
    background: #0052cc !important;
}

/* ============================================
   PRICE STYLING
   ============================================ */
.callout .col-xs-6:last-child span,
.callout .col-xs-6 span[style*="padding-right"] {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
}

/* ============================================
   ADD TO CART BUTTON
   ============================================ */
.callout .order-btn,
.callout .btn-success,
.callout.available .btn,
.callout.callout-success .btn {
    background: #374151 !important;
    border: none !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    color: white !important;
    transition: all 0.2s ease !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px;
    box-shadow: none !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.callout .order-btn:hover,
.callout .btn-success:hover,
.callout.available .btn:hover,
.callout.callout-success .btn:hover {
    background: #1f2937 !important;
    color: white !important;
    text-decoration: none !important;
}

/* WHOIS Button - for unavailable domains */
.callout .whois-btn,
.callout .btn-danger,
.callout.not-available .btn,
.callout.callout-danger .btn {
    background: #9ca3af !important;
    border: none !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    color: white !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.callout .whois-btn:hover,
.callout .btn-danger:hover,
.callout.not-available .btn:hover,
.callout.callout-danger .btn:hover {
    background: #6b7280 !important;
    color: white !important;
}

/* ============================================
   SECTION HEADERS (if any)
   ============================================ */
.wdc-heading,
#results h4,
#results h5 {
    background: #f9fafb !important;
    padding: 12px 20px !important;
    margin: 0 !important;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600 !important;
    color: #6b7280 !important;
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   LOADING STATE
   ============================================ */
#loading {
    text-align: center;
    padding: 50px;
    color: #6b7280;
}

#loading img {
    max-width: 50px;
    opacity: 0.7;
}

/* ============================================
   STYLE 2 (WDC Grid) OVERRIDE
   ============================================ */
.wdc-domain-result__button .wdc-grid {
    background: #fff !important;
    border: none !important;
    border-bottom: 1px solid #f3f4f6 !important;
    border-radius: 0 !important;
    padding: 16px 20px !important;
    margin: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
}

.wdc-domain-result__button .wdc-grid:hover {
    background: #f9fafb !important;
}

.wdc-domain-result__button .wdc-domain-name {
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #374151 !important;
}

.wdc-domain-result__button .wdc-domain-name strong {
    color: #126dff !important;
}

.wdc-domain-result__button .wdc-domain-available .btn {
    background: #374151 !important;
    border: none !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

.wdc-domain-result__button .wdc-domain-available .btn:hover {
    background: #1f2937 !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .wdc-form {
        padding: 0 15px;
    }
    
    .wdc-form .input-group,
    .wdc-form .wdc-input-group {
        flex-direction: column;
        padding: 10px;
    }
    
    .wdc-form input[type="text"],
    .wdc-form input[name="domain"] {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .wdc-form button[type="submit"],
    .wdc-form #Submit {
        width: 100%;
    }
    
    #results {
        margin: 0 15px;
        border-radius: 10px;
    }
    
    .callout .col-xs-6 {
        padding: 12px 15px !important;
    }
    
    .callout .col-xs-6:first-child {
        font-size: 14px !important;
    }
    
    .callout .order-btn,
    .callout .btn-success {
        padding: 7px 14px !important;
        font-size: 11px !important;
    }
    
    .wdc-domain-result__list:first-child .callout .col-xs-6:first-child {
        font-size: 15px !important;
    }
}

@media (max-width: 480px) {
    .callout .row,
    .callout {
        flex-direction: column;
    }
    
    .callout .col-xs-6 {
        width: 100% !important;
        justify-content: space-between !important;
    }
    
    .callout .col-xs-6:first-child {
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 12px !important;
    }
    
    .callout .col-xs-6:last-child {
        padding-top: 12px !important;
        justify-content: space-between !important;
        width: 100% !important;
    }
}

/* ============================================
   ANIMATION
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wdc-domain-result__list,
#results > div,
#results > .callout {
    animation: fadeInUp 0.3s ease forwards;
}

.wdc-domain-result__list:nth-child(1) { animation-delay: 0s; }
.wdc-domain-result__list:nth-child(2) { animation-delay: 0.05s; }
.wdc-domain-result__list:nth-child(3) { animation-delay: 0.05s; }
.wdc-domain-result__list:nth-child(4) { animation-delay: 0.1s; }
.wdc-domain-result__list:nth-child(5) { animation-delay: 0.1s; }
.wdc-domain-result__list:nth-child(6) { animation-delay: 0.15s; }
.wdc-domain-result__list:nth-child(7) { animation-delay: 0.15s; }
.wdc-domain-result__list:nth-child(8) { animation-delay: 0.2s; }
.wdc-domain-result__list:nth-child(9) { animation-delay: 0.2s; }
.wdc-domain-result__list:nth-child(10) { animation-delay: 0.25s; }

/* ============================================
   HIDE UNWANTED ELEMENTS
   ============================================ */
.callout::before,
.callout::after {
    display: none !important;
}

/* Clear floats */
.callout .row::after {
    content: "";
    display: table;
    clear: both;
}
