/**
 * Instagram Reel & Post Analyzer - Specific Styles
 * =================================================
 * Extends tools-base.css
 * Brand Colors: #000000 (black), #d1fe17 (lime green)
 * NO box-shadows, NO gradients
 */

/* =====================================
   FORM STYLES
   ===================================== */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group--half {
    width: 100%;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-label .required {
    color: #ef4444;
    margin-left: 0.25rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: #374151;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #000000;
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-hint {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-hint::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: #d1fe17;
    border-radius: 50%;
}

/* Hide views field when not Reel */
.form-group--hidden {
    display: none !important;
}

/* =====================================
   RESULT HERO (Main Score Display)
   ===================================== */

.result-hero {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.result-hero--virality {
    background: #000000;
    border-color: #000000;
}

.result-hero--virality .result-hero__label,
.result-hero--virality .result-hero__sublabel {
    color: #9ca3af;
}

.result-hero--virality .result-hero__value {
    color: #ffffff;
}

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

.result-hero__badge {
    margin-bottom: 1rem;
}

.result-hero__value {
    font-size: 3.5rem;
    font-weight: 800;
    color: #000000;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'neusanstrial', sans-serif;
}

.result-hero__sublabel {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

/* =====================================
   VIRALITY BADGE
   ===================================== */

.virality-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.virality-badge--viral {
    background: #d1fe17;
    color: #000000;
}

.virality-badge--high {
    background: #22c55e;
    color: #ffffff;
}

.virality-badge--average {
    background: #f59e0b;
    color: #ffffff;
}

.virality-badge--low {
    background: #ef4444;
    color: #ffffff;
}

/* =====================================
   METRIC CARDS
   ===================================== */

.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 {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
}

.metric-card__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.metric-card__icon svg {
    color: #374151;
}

.metric-card__content {
    min-width: 0;
}

.metric-card__value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
    font-family: 'neusanstrial', sans-serif;
}

.metric-card__label {
    font-size: 0.75rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =====================================
   BENCHMARK GUIDE
   ===================================== */

.result-guide {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.result-guide__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1rem;
    font-family: 'neusanstrial', sans-serif;
}

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

.benchmark-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.benchmark-item__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.benchmark-item--viral .benchmark-item__dot {
    background: #d1fe17;
}

.benchmark-item--excellent .benchmark-item__dot {
    background: #22c55e;
}

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

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

.benchmark-item__content {
    color: #374151;
}

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

.benchmark-threshold {
    color: #6b7280;
}

/* Highlight current benchmark */
.benchmark-item--current {
    background: #ffffff;
    border: 2px solid #d1fe17;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    margin: -0.5rem -0.75rem;
}

/* =====================================
   RECOMMENDATIONS
   ===================================== */

.result-recommendations {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.result-recommendations__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1rem;
    font-family: 'neusanstrial', sans-serif;
}

.recommendations-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recommendations-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.5;
}

.recommendations-list li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #d1fe17;
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

/* =====================================
   RESULT ACTIONS
   ===================================== */

.result-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-actions .btn--outline {
    flex: 1;
}

/* =====================================
   NEXT STEP CTA SECTION
   ===================================== */

.tool-next-step {
    background: #f9fafb;
    padding: 4rem 0;
}

.tool-next-step__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.tool-next-step__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #d1fe17;
    color: #000000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tool-next-step__badge svg {
    color: #000000;
}

.tool-next-step__title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    color: #000000;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.tool-next-step__description {
    font-size: 1.0625rem;
    color: #374151;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.tool-next-step__features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

@media (max-width: 768px) {
    .tool-next-step__features {
        grid-template-columns: 1fr;
    }
}

.next-step-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
}

.next-step-feature__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d1fe17;
    border-radius: 10px;
}

.next-step-feature__icon svg {
    color: #000000;
}

.next-step-feature__content {
    min-width: 0;
}

.next-step-feature__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.25rem;
}

.next-step-feature__text {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.4;
}

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

/* CTA Large Button */
.btn--cta-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #000000;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

/* =====================================
   INFO SECTION STEPS
   ===================================== */

.tool-info__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .tool-info__steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.info-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.info-step__icon {
    position: relative;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    margin-bottom: 1rem;
}

.info-step__icon svg {
    color: #374151;
}

.info-step__number {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d1fe17;
    color: #000000;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
}

.info-step__content {
    max-width: 280px;
}

.info-step__title {
    font-size: 1rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
}

.info-step__content p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

/* =====================================
   BENEFITS GRID (Metrics Explained)
   ===================================== */

.tool-info__benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 640px) {
    .tool-info__benefits-grid {
        grid-template-columns: 1fr;
    }
}

.benefit-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
}

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

.benefit-card__icon svg {
    color: #374151;
}

.benefit-card__content {
    min-width: 0;
}

.benefit-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.375rem;
}

.benefit-card__text {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

/* =====================================
   CLOSING TEXT
   ===================================== */

.tool-info__closing {
    font-size: 1rem;
    color: #374151;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 1.5rem 0;
    border-top: 1px solid #e5e7eb;
}

/* =====================================
   MOBILE OPTIMIZATIONS
   ===================================== */

@media (max-width: 480px) {
    .result-hero {
        padding: 1.5rem;
    }

    .result-hero__value {
        font-size: 2.5rem;
    }

    .metric-card {
        padding: 1rem;
    }

    .result-guide {
        padding: 1rem;
    }

    .result-recommendations {
        padding: 1rem;
    }

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