/* Import Mohave font */
@import url('https://fonts.googleapis.com/css2?family=Mohave:wght@400;500;600&display=swap');

/* Container */
.aisng-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    font-family: 'Mohave', sans-serif;
}

/* Search Bar */
.aisng-search-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border-radius: 60px;
    padding: 6px 10px 6px 26px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.aisng-search-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    font-family: 'Mohave', sans-serif;
    font-size: 18px;
    padding: 18px 10px;
    color: #333;
    background: transparent;
}

.aisng-search-wrapper input::placeholder {
    color: #999;
    font-size: 16px;
}

.aisng-search-wrapper button {
    min-width: 54px;
    height: 54px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff5f6d, #ff9a44);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.aisng-search-wrapper button:hover {
    transform: scale(1.08);
}

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

/* Loading Spinner */
.aisng-loading {
    text-align: center;
    padding: 40px 20px;
}

.aisng-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff5f6d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.aisng-loading p {
    font-size: 18px;
    color: #666;
    font-weight: 500;
}

/* Results Grid */
.aisng-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Name Cards */
.aisng-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.aisng-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.aisng-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

.aisng-card:hover::before {
    opacity: 1;
}

/* Alternate card colors */
.aisng-card:nth-child(3n+1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.aisng-card:nth-child(3n+2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.aisng-card:nth-child(3n+3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Load More Button */
.aisng-load-more {
    display: block;
    margin: 30px auto;
    padding: 16px 48px;
    background: linear-gradient(45deg, #ff5f6d, #ff9a44);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-family: 'Mohave', sans-serif;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 95, 109, 0.3);
}

.aisng-load-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 95, 109, 0.4);
}

.aisng-load-more:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .aisng-search-wrapper {
        flex-direction: column;
        border-radius: 20px;
        padding: 20px;
    }

    .aisng-search-wrapper input {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }

    .aisng-search-wrapper button {
        width: 100%;
        border-radius: 30px;
        height: 48px;
        margin-top: 10px;
    }

    .aisng-results {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .aisng-card {
        padding: 24px 16px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .aisng-results {
        grid-template-columns: 1fr;
    }
}