/**
 * Instagram Handle Checker - CreatorFlow Free Tool
 * Brand Colors: #000000 (black), #d1fe17 (lime green)
 * NO box-shadows, NO gradients
 */

/* This tool inherits most styles from instagram-chat-link-generator.css */
/* Only custom styles specific to handle checker are defined here */

/* Results Container */
#resultsContainer {
    min-height: 200px;
}

/* Results States */
.results-loading {
    text-align: center;
    padding: 3rem 1rem;
}

.results-loading__spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: #d1fe17;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.results-loading__text {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}

/* Available Result */
.result-available {
    text-align: center;
    padding: 2rem 1.5rem;
}

.result-available__icon {
    width: 64px;
    height: 64px;
    background: #d1fe17;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.result-available__icon svg {
    width: 36px;
    height: 36px;
    color: #000000;
    stroke-width: 3;
}

.result-available__title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.result-available__username {
    display: inline-block;
    background: #f9fafb;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1.5rem;
    font-family: 'Courier New', monospace;
}

.result-available__message {
    font-size: 1.0625rem;
    color: #374151;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.result-available__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Taken Result */
.result-taken {
    text-align: center;
    padding: 2rem 1.5rem;
}

.result-taken__icon {
    width: 64px;
    height: 64px;
    background: #fee2e2;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.result-taken__icon svg {
    width: 36px;
    height: 36px;
    color: #ef4444;
    stroke-width: 3;
}

.result-taken__title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.result-taken__username {
    display: inline-block;
    background: #fee2e2;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ef4444;
    margin-bottom: 1.5rem;
    font-family: 'Courier New', monospace;
}

.result-taken__message {
    font-size: 1.0625rem;
    color: #374151;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Alternative Suggestions */
.suggestions {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

.suggestions__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1.5rem;
    text-align: center;
}

.suggestions__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.suggestions__item {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.suggestions__item:hover {
    border-color: #d1fe17;
    background: #fafff0;
}

.suggestions__item-username {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    font-family: 'Courier New', monospace;
    margin-bottom: 0.25rem;
}

.suggestions__item-label {
    display: block;
    font-size: 0.8125rem;
    color: #6b7280;
}

/* Try Again Action */
.result-actions {
    margin-top: 2rem;
}

.result-actions .btn {
    width: 100%;
    justify-content: center;
}

/* Error State */
.result-error {
    text-align: center;
    padding: 2rem 1.5rem;
}

.result-error__icon {
    width: 64px;
    height: 64px;
    background: #fef3c7;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.result-error__icon svg {
    width: 36px;
    height: 36px;
    color: #f59e0b;
    stroke-width: 3;
}

.result-error__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.75rem;
}

.result-error__message {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .result-available__title,
    .result-taken__title {
        font-size: 1.5rem;
    }

    .result-available__username,
    .result-taken__username {
        font-size: 1.125rem;
        padding: 0.625rem 1.25rem;
    }

    .suggestions__list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .result-available,
    .result-taken,
    .result-error {
        padding: 1.5rem 1rem;
    }

    .result-available__icon,
    .result-taken__icon,
    .result-error__icon {
        width: 56px;
        height: 56px;
    }

    .result-available__icon svg,
    .result-taken__icon svg,
    .result-error__icon svg {
        width: 32px;
        height: 32px;
    }

    .result-available__username,
    .result-taken__username {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    .suggestions {
        padding-top: 1.5rem;
    }

    .suggestions__item {
        padding: 0.875rem 1rem;
    }
}
