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

.wpdc-wrapper {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    box-sizing: border-box;
    max-width: 850px;
    margin: 40px auto;
    padding: 0 15px;
}

.wpdc-wrapper *, .wpdc-wrapper *::before, .wpdc-wrapper *::after {
    box-sizing: border-box;
}

.wpdc-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #ffffff;
}

.wpdc-header {
    text-align: center;
    margin-bottom: 35px;
}

.wpdc-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #60a5fa, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wpdc-header p {
    color: #94a3b8;
    font-size: 1rem;
    margin: 0;
}

.wpdc-search-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 25px;
}

.wpdc-input-group {
    display: flex;
    position: relative;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.wpdc-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    color: #3b82f6;
    font-size: 1.2rem;
}

.wpdc-input-group input {
    flex: 1;
    border: none;
    outline: none;
    padding: 18px 10px;
    font-size: 1.1rem;
    font-family: 'Vazirmatn', sans-serif;
    color: #0f172a;
    background: transparent;
}

.wpdc-input-group input::placeholder {
    color: #94a3b8;
}

#wpdc-search-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    padding: 0 35px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Vazirmatn', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

#wpdc-search-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

/* Shortcuts Chips Style */
.wpdc-shortcuts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.wpdc-shortcut-label {
    font-size: 0.9rem;
    color: #cbd5e1;
    font-weight: 500;
}

.wpdc-chip {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(96, 165, 250, 0.4);
    color: #93c5fd;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-family: 'Vazirmatn', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wpdc-chip:hover {
    background: #3b82f6;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Loading animation state with dynamic dots */
.wpdc-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    padding: 20px;
    background: rgba(30, 58, 138, 0.4);
    border-radius: 14px;
    color: #93c5fd;
    font-size: 1.1rem;
    font-weight: 600;
}

.wpdc-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(147, 197, 253, 0.2);
    border-top-color: #60a5fa;
    border-radius: 50%;
    animation: wpdc-spin 0.8s linear infinite;
}

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

/* Results section */
.wpdc-results {
    margin-top: 30px;
}

.wpdc-result-item {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.wpdc-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.wpdc-domain-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.wpdc-domain-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.wpdc-domain-price {
    color: #cbd5e1;
    font-size: 0.95rem;
}

.wpdc-badge {
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
}

.wpdc-badge.available {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.4);
}

.wpdc-badge.taken {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.4);
}

.wpdc-action-btn {
    background: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Vazirmatn', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}

.wpdc-action-btn:hover {
    background: #2563eb;
}

@media(max-width: 600px) {
    .wpdc-input-group {
        flex-direction: column;
    }
    #wpdc-search-btn {
        padding: 15px;
    }
    .wpdc-result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .wpdc-domain-info {
        width: 100%;
        justify-content: space-between;
    }
}
