/**
 * Instagram Trending Hashtags Tracker - CreatorFlow Free Tool
 * Brand Colors: #000000 (black), #d1fe17 (lime green)
 * NO box-shadows, NO gradients per brand guidelines
 */

/* Trending Tool Layout */
.trending-tool {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Country Selector */
.trending-tool__selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.country-select-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.country-select-wrapper .form-select {
    flex: 1;
    padding: 0.875rem 2.5rem 0.875rem 1rem;
    font-size: 1rem;
    color: #000000;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-family: inherit;
    background: #ffffff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

.country-select-wrapper .form-select:focus {
    outline: none;
    border-color: #d1fe17;
}

.country-select-wrapper .btn {
    flex-shrink: 0;
    padding: 0.875rem 1.5rem;
}

/* Results Section */
.trending-results {
    display: none;
}

.trending-results.is-visible {
    display: block;
}

.trending-results__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.trending-results__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.trending-results__title #countryName {
    color: #000000;
}

.trending-results__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.results-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #6b7280;
    background: #f9fafb;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
}

.results-badge svg {
    color: #10b981;
}

/* Hashtag Categories */
.hashtag-categories {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.hashtag-category {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: border-color 0.2s ease;
}

.hashtag-category:hover {
    border-color: #d1fe17;
}

.hashtag-category__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.hashtag-category__icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.hashtag-category__icon--hot {
    background: #fef3c7;
}

.hashtag-category__icon--trending {
    background: #dbeafe;
}

.hashtag-category__icon--popular {
    background: #f3e8ff;
}

.hashtag-category__info {
    flex: 1;
}

.hashtag-category__title {
    font-size: 1rem;
    font-weight: 700;
    color: #000000;
    margin: 0 0 0.25rem 0;
}

.hashtag-category__desc {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0;
}

/* Hashtag Tags */
.hashtag-category__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hashtag-tag {
    display: inline-block;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    border: 1px solid transparent;
}

/* Color variations for hashtag tags */
.hashtag-tag--red {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.hashtag-tag--orange {
    background: #fff7ed;
    color: #ea580c;
    border-color: #fed7aa;
}

.hashtag-tag--amber {
    background: #fffbeb;
    color: #d97706;
    border-color: #fde68a;
}

.hashtag-tag--yellow {
    background: #fefce8;
    color: #ca8a04;
    border-color: #fef08a;
}

.hashtag-tag--lime {
    background: #f7fee7;
    color: #65a30d;
    border-color: #d9f99d;
}

.hashtag-tag--green {
    background: #f0fdf4;
    color: #16a34a;
    border-color: #bbf7d0;
}

.hashtag-tag--teal {
    background: #f0fdfa;
    color: #0d9488;
    border-color: #99f6e4;
}

.hashtag-tag--cyan {
    background: #ecfeff;
    color: #0891b2;
    border-color: #a5f3fc;
}

.hashtag-tag--blue {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.hashtag-tag--indigo {
    background: #eef2ff;
    color: #4f46e5;
    border-color: #c7d2fe;
}

.hashtag-tag--violet {
    background: #f5f3ff;
    color: #7c3aed;
    border-color: #ddd6fe;
}

.hashtag-tag--purple {
    background: #faf5ff;
    color: #9333ea;
    border-color: #e9d5ff;
}

.hashtag-tag--pink {
    background: #fdf2f8;
    color: #db2777;
    border-color: #fbcfe8;
}

.hashtag-tag--rose {
    background: #fff1f2;
    color: #e11d48;
    border-color: #fecdd3;
}

/* Hover state for all tags */
.hashtag-tag:hover {
    background: #d1fe17;
    color: #000000;
    border-color: #d1fe17;
}

/* Copied state */
.hashtag-tag.copied {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
}

/* Results Actions */
.trending-results__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    margin: 0 auto;
}

.trending-results__actions .btn {
    width: 100%;
    justify-content: center;
}

.trending-results__actions .btn.copied {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

/* Next Step CTA */
.next-step-cta {
    padding: 3rem 0;
    background: #f9fafb;
}

.next-step-cta__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.next-step-cta__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.next-step-cta__badge {
    display: inline-block;
    background: #d1fe17;
    color: #000000;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
}

.next-step-cta__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
    line-height: 1.3;
}

.next-step-cta__description {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
    max-width: 500px;
    line-height: 1.5;
}

.next-step-cta__btn {
    margin-top: 0.5rem;
}

/* Best Practices List */
.best-practices-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.best-practice-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #f9fafb;
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.best-practice-item:hover {
    border-color: #d1fe17;
}

.best-practice-item__number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #d1fe17;
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
}

.best-practice-item__content {
    flex: 1;
}

.best-practice-item__title {
    font-size: 1rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.375rem;
    line-height: 1.4;
}

.best-practice-item__content p {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .country-select-wrapper {
        flex-direction: column;
    }

    .country-select-wrapper .btn {
        width: 100%;
        justify-content: center;
    }

    .trending-results__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .trending-results__title {
        font-size: 1.25rem;
    }

    .hashtag-category {
        padding: 1rem;
    }

    .hashtag-category__tags {
        gap: 0.375rem;
    }

    .hashtag-tag {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }

    .best-practice-item {
        padding: 1rem;
    }

    .best-practice-item__number {
        width: 28px;
        height: 28px;
        font-size: 0.8125rem;
    }

    .best-practice-item__title {
        font-size: 0.9375rem;
    }

    .best-practice-item__content p {
        font-size: 0.875rem;
    }

    .next-step-cta {
        padding: 2rem 0;
    }

    .next-step-cta__title {
        font-size: 1.25rem;
    }

    .next-step-cta__description {
        font-size: 0.9375rem;
    }
}

@media (max-width: 430px) {
    .trending-results__title {
        font-size: 1.125rem;
    }

    .hashtag-category__header {
        gap: 0.5rem;
    }

    .hashtag-category__icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .hashtag-category__title {
        font-size: 0.9375rem;
    }

    .hashtag-tag {
        font-size: 0.8125rem;
        padding: 0.3125rem 0.625rem;
    }

    .trending-results__actions {
        max-width: 100%;
    }

    .best-practice-item {
        padding: 0.875rem;
        gap: 0.75rem;
    }

    .best-practice-item__number {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
}
