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

/* Form Adjustments for Audit Tool */
.form-group--full {
    grid-column: 1 / -1;
}

.form-row--single {
    grid-template-columns: 1fr;
    max-width: 50%;
}

@media (max-width: 768px) {
    .form-row--single {
        max-width: 100%;
    }
}

/* Results Card */
.tool-card--results {
    max-width: 100%;
    background: #fafafa;
    padding: 2rem;
}

/* Username Display */
.result-username {
    text-align: center;
    margin-bottom: 1rem;
}

.result-username__at {
    color: #6b7280;
    font-size: 1.25rem;
    font-weight: 600;
}

.result-username__handle {
    color: #000000;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Main Result Hero - AQS Score */
.result-hero {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
}

.result-hero__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.result-hero__value {
    font-size: clamp(3.5rem, 10vw, 6rem);
    font-weight: 800;
    color: #000000;
    line-height: 1;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.result-hero__max {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    color: #9ca3af;
}

.result-hero__benchmark {
    font-size: 1.125rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    display: inline-block;
}

.result-hero__benchmark--excellent {
    background: #d1fee7;
    color: #065f46;
}

.result-hero__benchmark--good {
    background: #dbeafe;
    color: #1e40af;
}

.result-hero__benchmark--average {
    background: #fef3c7;
    color: #92400e;
}

.result-hero__benchmark--low {
    background: #fee2e2;
    color: #991b1b;
}

/* Score Breakdown Section */
.score-breakdown {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

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

.score-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.score-bar-item {
    width: 100%;
}

.score-bar-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.375rem;
}

.score-bar-item__label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
}

.score-bar-item__value {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #000000;
}

.score-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.score-bar__fill {
    height: 100%;
    background: #d1fe17;
    border-radius: 4px;
    transition: width 0.8s ease-out;
}

.score-bar__fill--excellent {
    background: #10b981;
}

.score-bar__fill--good {
    background: #3b82f6;
}

.score-bar__fill--average {
    background: #f59e0b;
}

.score-bar__fill--low {
    background: #ef4444;
}

/* Metric Cards - 4 columns */
.result-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .result-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.metric-card {
    background: #ffffff;
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

.metric-card__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: #f9fafb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #d1fe17;
}

.metric-card__icon svg {
    width: 22px;
    height: 22px;
    color: #000000;
}

.metric-card__content {
    flex: 1;
}

.metric-card__value {
    font-size: 1.375rem;
    font-weight: 700;
    color: #000000;
    line-height: 1.2;
}

.metric-card__label {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Result Guide */
.result-guide {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

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

.benchmark-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.benchmark-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

.benchmark-item__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.benchmark-item--excellent .benchmark-item__dot {
    background: #10b981;
}

.benchmark-item--good .benchmark-item__dot {
    background: #3b82f6;
}

.benchmark-item--average .benchmark-item__dot {
    background: #f59e0b;
}

.benchmark-item--low .benchmark-item__dot {
    background: #ef4444;
}

.benchmark-item__content {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #374151;
}

.benchmark-item__content strong {
    color: #000000;
    font-weight: 600;
}

/* Result Actions */
.result-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.result-actions .btn {
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
}

/* Comparison Section */
.tool-comparison {
    background: #f9fafb;
    padding: 3.5rem 0;
}

.tool-comparison__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.tool-comparison__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: #000000 !important;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.tool-comparison__description {
    font-size: 1rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.comparison-table {
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.comparison-table__header {
    display: grid;
    grid-template-columns: 1fr 120px 160px;
    background: #f3f4f6;
    padding: 1rem 1.5rem;
    font-weight: 700;
    font-size: 0.8125rem;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.comparison-table__row {
    display: grid;
    grid-template-columns: 1fr 120px 160px;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    align-items: center;
}

.comparison-table__cell {
    font-size: 0.9375rem;
    color: #374151;
}

.comparison-table__cell--feature {
    font-weight: 500;
}

.comparison-table__cell--audit,
.comparison-table__cell--calculator {
    text-align: center;
}

.check-icon {
    color: #10b981;
}

.x-icon {
    color: #d1d5db;
}

.comparison-cta {
    display: inline-block;
    width: 100%;
    text-align: center;
    color: #000000;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.comparison-cta:hover {
    color: #d1fe17;
}

@media (max-width: 600px) {
    .comparison-table__header,
    .comparison-table__row {
        grid-template-columns: 1fr 80px 100px;
        padding: 0.875rem 1rem;
    }

    .comparison-table__header {
        font-size: 0.6875rem;
    }

    .comparison-table__cell {
        font-size: 0.8125rem;
    }
}

/* Tool Info Section (SEO Content) */
.tool-info {
    background: #ffffff;
    padding: 3.5rem 0;
}

.tool-info__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.tool-info__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #000000 !important;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-align: center;
    line-height: 1.2;
}

.tool-info__subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    font-weight: 700;
    color: #000000 !important;
    margin: 3rem 0 1.5rem;
    text-align: left;
    line-height: 1.3;
}

.tool-info__content p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 1.25rem;
}

.tool-info__content code {
    background: #f9fafb;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9375rem;
    color: #6b46c1;
}

.tool-info__steps {
    margin: 2rem 0 3rem;
}

.info-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
    position: relative;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.info-step:hover {
    border-color: #d1fe17;
}

.info-step:last-child {
    margin-bottom: 0;
}

.info-step__icon {
    position: relative;
    flex-shrink: 0;
}

.info-step__icon svg {
    position: absolute;
    top: 11px;
    left: 10px;
    color: #000000;
    z-index: 2;
}

.info-step__number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #d1fe17;
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
}

.info-step__content {
    flex: 1;
}

.info-step__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.info-step__content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

/* Formula Box */
.formula-box {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 2px solid #d1fe17;
    margin: 1rem 0;
}

.formula-box code {
    font-family: 'Courier New', monospace;
    font-size: 0.9375rem;
    color: #000000;
    font-weight: 600;
    word-break: break-word;
}

/* Benefits Grid */
.tool-info__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 3rem;
}

.benefit-card {
    background: #f9fafb;
    padding: 1.75rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit-card:hover {
    border-color: #d1fe17;
    background: #ffffff;
}

.benefit-card__icon {
    width: 56px;
    height: 56px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #d1fe17;
    flex-shrink: 0;
}

.benefit-card__icon svg {
    color: #000000;
    stroke-width: 2;
}

.benefit-card__content {
    flex: 1;
}

.benefit-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.benefit-card__text {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.tool-info__closing {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #374151;
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    border-left: 4px solid #d1fe17;
}

/* Next Step Section */
.tool-next-step {
    background: #ffffff;
    padding: 3.5rem 0;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.tool-next-step__container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.tool-next-step__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #d1fe17;
    color: #000000;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.tool-next-step__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #000000 !important;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.tool-next-step__description {
    font-size: 1.125rem;
    color: #374151;
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.tool-next-step__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.next-step-feature {
    display: flex;
    gap: 1rem;
    text-align: left;
}

.next-step-feature__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #d1fe17;
}

.next-step-feature__icon svg {
    width: 24px;
    height: 24px;
    color: #000000;
}

.next-step-feature__content {
    flex: 1;
}

.next-step-feature__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.next-step-feature__text {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.tool-next-step__microcopy {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 1rem;
}

/* FAQ Section */
.tool-faq {
    background: #ffffff;
    padding: 3.5rem 0;
}

.tool-faq__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.tool-faq__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #000000 !important;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

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

.faq-item[open] {
    border-color: #d1fe17;
}

.faq-question {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #000000;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.faq-question:hover {
    color: #000000;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem 1.25rem 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
}

.faq-answer p {
    margin: 0 0 1rem 0;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer code {
    background: #f9fafb;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9375rem;
    color: #6b46c1;
}

.faq-answer a {
    color: #000000;
    text-decoration: underline;
    font-weight: 600;
}

.faq-answer a:hover {
    color: #d1fe17;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    font-family: inherit;
}

.btn--primary {
    background: #000000;
    color: #ffffff;
    width: 100%;
    justify-content: center;
    font-size: 0.9375rem;
    padding: 0.875rem 1.25rem;
    font-weight: 600;
}

.btn--primary:hover {
    background: #d1fe17;
    color: #000000;
}

.btn--outline {
    background: #ffffff;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.btn--outline:hover {
    border-color: #000000;
    color: #000000;
}

.btn--cta-large {
    background: #000000;
    color: #ffffff;
    padding: 1rem 2rem;
    font-size: 1.0625rem;
    font-weight: 700;
}

.btn--cta-large:hover {
    background: #d1fe17;
    color: #000000;
}

.btn-icon {
    width: 16px;
    height: 16px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .tool-card--results {
        padding: 1.5rem;
    }

    .result-hero {
        padding: 1.5rem 0;
        margin-bottom: 1.5rem;
    }

    .score-breakdown {
        padding: 1.25rem;
    }

    .result-metrics {
        gap: 0.75rem;
    }

    .metric-card {
        padding: 1rem;
    }

    .metric-card__icon {
        width: 40px;
        height: 40px;
    }

    .metric-card__value {
        font-size: 1.25rem;
    }

    .result-guide {
        padding: 1.25rem;
    }

    .tool-info {
        padding: 2rem 0;
    }

    .tool-comparison {
        padding: 2rem 0;
    }

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

    .tool-faq {
        padding: 2rem 0;
    }

    .tool-next-step__features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tool-info__benefits-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .info-step {
        gap: 0.875rem;
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .info-step__number {
        width: 36px;
        height: 36px;
        font-size: 1.125rem;
    }
}

@media (max-width: 430px) {
    .tool-card--results {
        padding: 1rem;
    }

    .result-hero {
        padding: 1rem 0;
    }

    .score-breakdown {
        padding: 1rem;
    }

    .score-breakdown__title {
        font-size: 0.875rem;
    }

    .score-bar-item__label,
    .score-bar-item__value {
        font-size: 0.75rem;
    }

    .metric-card {
        padding: 0.875rem;
    }

    .metric-card__icon {
        width: 36px;
        height: 36px;
    }

    .metric-card__icon svg {
        width: 18px;
        height: 18px;
    }

    .metric-card__value {
        font-size: 1.125rem;
    }

    .metric-card__label {
        font-size: 0.75rem;
    }

    .result-guide {
        padding: 1rem;
    }

    .result-guide__title {
        font-size: 1rem;
    }

    .benchmark-item__content {
        font-size: 0.8125rem;
    }

    .info-step {
        padding: 0.875rem;
        margin-bottom: 0.75rem;
    }

    .info-step__number {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .benefit-card {
        padding: 1rem;
    }

    .benefit-card__icon {
        width: 40px;
        height: 40px;
    }
}
