/* ═══════════════════════════════════════════════════════
   Pois Domain Reseller — Styles v1.2 (Official Brand)
   Giallo: #D9AE39 | Scritta: #222222
   ═══════════════════════════════════════════════════════ */

/* Reset base per il plugin */
.pois-domain-search {
    font-family: "Dosis", "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #222;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
}

.pois-domain-search *,
.pois-domain-search *::before,
.pois-domain-search *::after {
    box-sizing: border-box;
}

/* ─── HERO SECTION ───────────────────────────────────── */
.pois-search-hero {
    text-align: center;
    padding: 50px 20px 40px;
    background: linear-gradient(135deg, #1a1a1a 0%, #222 30%, #333 100%);
    border-radius: 16px;
    margin-bottom: 30px;
}

.pois-search-title {
    font-family: "Caviar Dreams", "Dosis", sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}

.pois-search-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 35px;
    font-weight: 400;
}

/* ─── SEARCH BAR ─────────────────────────────────────── */
.pois-search-bar {
    display: flex;
    max-width: 620px;
    margin: 0 auto 25px;
    gap: 0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.3s ease;
}

.pois-search-bar:focus-within {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 0 3px rgba(217, 174, 57, 0.5);
}

.pois-search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 16px;
    position: relative;
}

.pois-search-icon {
    color: #999;
    display: flex;
    align-items: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.pois-domain-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.1rem;
    padding: 16px 0;
    background: transparent;
    color: #222;
    font-weight: 500;
    min-width: 0;
}

.pois-domain-input::placeholder {
    color: #bbb;
    font-weight: 400;
}

.pois-domain-tld {
    color: #d9ae39;
    font-weight: 600;
    font-size: 1.1rem;
    white-space: nowrap;
    margin-right: 4px;
}

.pois-search-btn {
    background: #d9ae39;
    color: #222;
    border: none;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    white-space: nowrap;
}

.pois-search-btn:hover {
    background: #c49b2e;
}

.pois-search-btn:active {
    background: #b08a25;
}

.pois-search-btn:disabled {
    background: #e8d49c;
    color: #999;
    cursor: not-allowed;
}

/* Spinner animation */
.pois-spinner {
    animation: pois-spin 1s linear infinite;
}

@keyframes pois-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ─── TLD BADGES ─────────────────────────────────────── */
.pois-tld-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.pois-tld-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pois-tld-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(217, 174, 57, 0.4);
}

.pois-tld-badge strong {
    color: #d9ae39;
}

/* ─── RESULTS ────────────────────────────────────────── */
.pois-results {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.pois-results-header {
    padding: 18px 24px;
    border-bottom: 1px solid #f3f4f6;
    background: #fafafa;
}

.pois-results-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #222;
}

.pois-results-header span {
    color: #d9ae39;
    font-weight: 700;
}

.pois-results-list {
    padding: 0;
}

/* Single result row */
.pois-result-row {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s ease;
}

.pois-result-row:last-child {
    border-bottom: none;
}

.pois-result-row:hover {
    background: #fafafa;
}

.pois-result-row.unavailable {
    opacity: 0.55;
}

.pois-result-status {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    font-size: 14px;
}

.pois-result-status.available {
    background: #dcfce7;
    color: #16a34a;
}

.pois-result-status.unavailable {
    background: #fee2e2;
    color: #dc2626;
}

.pois-result-status.loading {
    background: #fef3c7;
    color: #d97706;
}

.pois-result-domain {
    flex: 1;
    min-width: 0;
}

.pois-result-domain-name {
    font-size: 1rem;
    font-weight: 600;
    color: #222;
    word-break: break-all;
}

.pois-result-domain-name .tld {
    color: #d9ae39;
}

.pois-result-label {
    font-size: 0.8rem;
    color: #888;
    margin-top: 2px;
}

.pois-result-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    margin-right: 20px;
    white-space: nowrap;
}

.pois-result-price .per-year {
    font-size: 0.8rem;
    font-weight: 400;
    color: #999;
}

.pois-result-action .pois-add-btn {
    background: #d9ae39;
    color: #222;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pois-result-action .pois-add-btn:hover {
    background: #c49b2e;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(217, 174, 57, 0.4);
}

.pois-result-action .pois-unavailable-label {
    color: #999;
    font-size: 0.85rem;
    font-style: italic;
}

/* Result row main flex */
.pois-result-main {
    display: flex;
    align-items: center;
    width: 100%;
}

/* Mini addon cards inside results */
.pois-result-addons {
    display: flex;
    gap: 8px;
    padding: 8px 0 2px 44px;
    flex-wrap: wrap;
}

.pois-addon-card-mini {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: #f5f5f5;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.78rem;
    transition: all 0.2s ease;
    user-select: none;
}

.pois-addon-card-mini:hover {
    border-color: #d9ae39;
    background: #fdf8ec;
}

.pois-addon-card-mini.selected {
    background: #fdf8ec;
    border-color: #d9ae39;
    box-shadow: 0 0 0 1px #d9ae39;
}

.pois-ami-icon {
    font-size: 0.9rem;
}

.pois-ami-label {
    font-weight: 600;
    color: #222;
}

.pois-ami-price {
    color: #d9ae39;
    font-weight: 700;
}

/* Add button success state */
.pois-add-btn.pois-btn-success {
    background: #16a34a !important;
    color: #fff !important;
    cursor: default;
}

/* Cart link after add */
.pois-cart-link {
    display: inline-block;
    color: #222;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #d9ae39;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.pois-cart-link:hover {
    background: #d9ae39;
    color: #222;
}

/* ─── YEAR SELECTOR ─────────────────────────────────── */
.pois-year-selector {
    padding: 6px 0 0 44px;
}

.pois-year-select {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.8rem;
    color: #222;
    background: #fafafa;
    cursor: pointer;
    outline: none;
}

.pois-year-select:focus {
    border-color: #d9ae39;
    box-shadow: 0 0 0 2px rgba(217, 174, 57, 0.2);
}

/* ─── TRANSFER BUTTON ───────────────────────────────── */
.pois-transfer-btn {
    background: transparent;
    color: #222;
    border: 1px solid #d9ae39;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pois-transfer-btn:hover {
    background: #d9ae39;
    color: #222;
}

.pois-result-row.unavailable {
    opacity: 0.85;
}

.pois-result-row.unavailable:hover {
    opacity: 1;
}

/* Loading skeleton */
.pois-result-row.skeleton {
    animation: pois-pulse 1.5s ease-in-out infinite;
}

@keyframes pois-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pois-skeleton-bar {
    height: 14px;
    background: #e5e7eb;
    border-radius: 4px;
}

/* ─── ERROR MESSAGE ──────────────────────────────────── */
.pois-error-message {
    text-align: center;
    padding: 30px 20px;
    color: #ef4444;
}

.pois-error-message .pois-error-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* ─── ADDONS SECTION ─────────────────────────────────── */
.pois-addons-section {
    margin-bottom: 30px;
}

.pois-addons-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 6px;
}

.pois-addons-subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: #888;
    margin: 0 0 25px;
}

.pois-addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.pois-addon-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.2s ease;
}

.pois-addon-card:hover {
    border-color: #d9ae39;
    box-shadow: 0 4px 16px rgba(217, 174, 57, 0.15);
    transform: translateY(-2px);
}

.pois-addon-icon {
    color: #d9ae39;
    margin-bottom: 12px;
}

.pois-addon-card h4 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 600;
    color: #222;
}

.pois-addon-card p {
    margin: 0 0 12px;
    font-size: 0.85rem;
    color: #888;
    line-height: 1.4;
}

.pois-addon-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #222;
}

.pois-addon-price span {
    font-size: 0.8rem;
    font-weight: 400;
    color: #999;
}

/* ─── TRUST SECTION ──────────────────────────────────── */
.pois-trust-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 30px 20px;
    border-top: 1px solid #f3f4f6;
}

.pois-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
}

.pois-trust-item svg {
    color: #d9ae39;
    flex-shrink: 0;
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 640px) {
    .pois-domain-search {
        padding: 10px;
    }

    .pois-search-hero {
        padding: 35px 15px 30px;
    }

    .pois-search-title {
        font-size: 1.6rem;
    }

    .pois-search-subtitle {
        font-size: 0.9rem;
    }

    .pois-search-bar {
        flex-direction: column;
        border-radius: 12px;
    }

    .pois-search-input-wrap {
        border-bottom: 1px solid #e5e7eb;
    }

    .pois-search-btn {
        border-radius: 0 0 12px 12px;
        padding: 14px;
    }

    .pois-tld-badges {
        gap: 6px;
    }

    .pois-tld-badge {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .pois-result-row {
        flex-wrap: wrap;
        padding: 14px 16px;
        gap: 8px;
    }

    .pois-result-price {
        margin-right: 0;
    }

    .pois-result-action {
        width: 100%;
    }

    .pois-result-action .pois-add-btn {
        width: 100%;
        text-align: center;
    }

    .pois-addons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .pois-addon-card {
        padding: 16px 12px;
    }

    .pois-trust-section {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

@media (max-width: 400px) {
    .pois-addons-grid {
        grid-template-columns: 1fr;
    }
}
