/**
 * Instagram Growth Tips Generator - Specific Styles
 * ==================================================
 * Extends tools-base.css with tool-specific styling
 * Brand Colors: #000000 (black), #d1fe17 (lime green)
 * NO box-shadows, NO gradients on dark backgrounds
 */

/* Form Select Styling */
.form-select {
    width: 100%;
    padding: 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: 1.25rem;
    padding-right: 3rem;
}

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

.form-select option {
    padding: 0.5rem;
}

/* Goal Selector */
.goal-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.goal-option {
    cursor: pointer;
}

.goal-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.goal-option__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    background: #ffffff;
}

.goal-option__content:hover {
    border-color: #d1fe17;
}

.goal-radio:checked + .goal-option__content {
    border-color: #d1fe17;
    background: #f9fafb;
}

.goal-radio:checked + .goal-option__content .goal-option__icon {
    background: #d1fe17;
    border-color: #d1fe17;
}

.goal-option__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.goal-option__icon svg {
    width: 28px;
    height: 28px;
    color: #000000;
}

.goal-option__label {
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
}

/* Tips Container */
.tips-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Tip Card */
.tip-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: all 0.3s ease;
    animation: tipSlideIn 0.4s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}

.tip-card:nth-child(1) { animation-delay: 0s; }
.tip-card:nth-child(2) { animation-delay: 0.1s; }
.tip-card:nth-child(3) { animation-delay: 0.2s; }
.tip-card:nth-child(4) { animation-delay: 0.3s; }
.tip-card:nth-child(5) { animation-delay: 0.4s; }

@keyframes tipSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tip-card:hover {
    border-color: #d1fe17;
}

.tip-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

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

.tip-card__category {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tip-card__text {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.tip-card__text strong {
    color: #000000;
    font-weight: 600;
}

/* Loading State */
.tips-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
}

.tips-loading__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #d1fe17;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.tips-loading__text {
    font-size: 1rem;
    color: #6b7280;
}

/* Niche Badge in Results */
.results-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

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

.results-meta__badge svg {
    width: 16px;
    height: 16px;
    color: #6b7280;
}

.results-meta__badge--highlight {
    background: #d1fe17;
    border-color: #d1fe17;
    color: #000000;
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .goal-selector {
        grid-template-columns: 1fr;
    }

    .goal-option__content {
        flex-direction: row;
        justify-content: flex-start;
        padding: 1rem;
    }

    .goal-option__icon {
        width: 48px;
        height: 48px;
    }

    .goal-option__icon svg {
        width: 24px;
        height: 24px;
    }

    .tip-card {
        padding: 1rem;
    }

    .tip-card__header {
        gap: 0.5rem;
    }

    .tip-card__number {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    .tip-card__category {
        font-size: 0.6875rem;
    }

    .tip-card__text {
        font-size: 0.9375rem;
    }

    .results-meta {
        gap: 0.375rem;
    }

    .results-meta__badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 430px) {
    .goal-option__content {
        padding: 0.875rem;
        gap: 0.5rem;
    }

    .goal-option__icon {
        width: 40px;
        height: 40px;
    }

    .goal-option__icon svg {
        width: 20px;
        height: 20px;
    }

    .goal-option__label {
        font-size: 0.9375rem;
    }

    .tip-card {
        padding: 0.875rem;
    }

    .tip-card__text {
        font-size: 0.875rem;
    }
}
