/**
 * Instagram Follower Ratio Calculator - CreatorFlow Free Tool
 * Brand Colors: #000000 (black), #d1fe17 (lime green)
 * NO box-shadows, NO gradients
 * Mobile-first responsive design
 */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Stack Sans Headline', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings use Stack Sans Headline per brand guidelines */
h1, h2, h3, h4, h5, h6,
.tool-hero__title,
.tool-card__title,
.tool-info__title,
.tool-info__subtitle,
.tool-faq__title,
.faq-question,
.tool-tab,
.tool-tab__text,
.tool-tab__number,
.ratio-label,
.insights__title,
.coming-soon-title,
.benchmark-item__ratio,
.benefit-card__title,
.best-practice-item__title {
    font-family: 'Stack Sans Headline', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Tool Container */
.tool-container {
    min-height: 100vh;
}

/* ============================================
   HERO SECTION
   ============================================ */

.tool-hero {
    background: #ffffff;
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.tool-hero__container {
    max-width: 800px;
    margin: 0 auto;
}

.tool-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f9fafb;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.instagram-icon {
    color: #E1306C; /* Instagram brand color */
}

.tool-hero__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #000000;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.tool-hero__description {
    font-size: 1.125rem;
    color: #374151;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* ============================================
   TOOL SECTION - TABS
   ============================================ */

.tool-section {
    padding: 4rem 2rem;
    background: #ffffff;
}

.tool-section__container {
    max-width: 900px;
    margin: 0 auto;
}

.tool-tabs {
    display: flex;
    gap: 1rem;
    margin: 0 auto 2rem;
    border-bottom: 2px solid #e5e7eb;
    max-width: 700px;
}

.tool-tab {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tool-tab:hover:not(:disabled) {
    color: #000000;
}

.tool-tab--active {
    color: #000000;
    border-bottom-color: #d1fe17;
}

.tool-tab:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tool-tab__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #f9fafb;
    color: #6b7280;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
}

.tool-tab--active .tool-tab__number {
    background: #d1fe17;
    color: #000000;
}

/* Tab Content */
.tool-content {
    display: none;
}

.tool-content--active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   TOOL CARD & FORM
   ============================================ */

.tool-card {
    background: #ffffff;
    padding: 3rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    max-width: 700px;
    margin: 0 auto;
}

.tool-card__title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    color: #000000;
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.3;
}

.tool-form {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.form-group {
    margin-bottom: 2rem;
}

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

.required {
    color: #ef4444;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    font-size: 1rem;
    color: #000000;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #d1fe17;
    /* NO box-shadow per brand guidelines */
}

.form-input.input-error {
    border-color: #ef4444;
}

.form-hint {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.form-error {
    font-size: 0.875rem;
    color: #ef4444;
    margin-top: 0.5rem;
    font-weight: 500;
}

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

.btn--primary {
    background: #000000;
    color: #ffffff;
    width: 100%;
    justify-content: center;
    font-size: 1.0625rem;
    padding: 1rem 1.5rem;
    font-weight: 700;
}

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

.btn--outline {
    background: transparent;
    color: #374151;
    border: 2px solid #e5e7eb;
    width: 100%;
    justify-content: center;
}

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

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

/* ============================================
   RATIO DISPLAY (RESULTS)
   ============================================ */

.ratio-display {
    margin-bottom: 2rem;
    text-align: center;
}

.ratio-display__main {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 1rem;
    border: 2px solid #d1fe17;
    margin-bottom: 1.5rem;
}

.ratio-number {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: #000000;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.ratio-label {
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ratio-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.ratio-stat {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.ratio-stat__value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.25rem;
}

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

/* Ratio Rating */
.ratio-rating {
    margin-bottom: 2rem;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 700;
}

.rating-badge--excellent {
    background: #d1fe17;
    color: #000000;
}

.rating-badge--great {
    background: #10b981;
    color: #ffffff;
}

.rating-badge--good {
    background: #3b82f6;
    color: #ffffff;
}

.rating-badge--fair {
    background: #f59e0b;
    color: #ffffff;
}

.rating-badge--needs-work {
    background: #ef4444;
    color: #ffffff;
}

.rating-emoji {
    font-size: 1.25rem;
}

/* Insights */
.ratio-insights {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
}

.insights__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1rem;
}

.insights__description {
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
}

/* Coming Soon Banner */
.coming-soon-banner {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 1rem;
    border: 2px dashed #e5e7eb;
    text-align: center;
    margin-bottom: 2rem;
}

.coming-soon-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: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.coming-soon-badge svg {
    width: 16px;
    height: 16px;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.coming-soon-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
}

.coming-soon-text {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
}

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

/* ============================================
   BENCHMARKS
   ============================================ */

.ratio-benchmarks {
    margin: 2rem 0 3rem;
}

.benchmark-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

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

.benchmark-item__ratio {
    font-size: 1.5rem;
    font-weight: 800;
    color: #000000;
    min-width: 80px;
    text-align: center;
}

.benchmark-item__badge {
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.benchmark-item__badge--excellent {
    background: #d1fe17;
    color: #000000;
}

.benchmark-item__badge--great {
    background: #10b981;
    color: #ffffff;
}

.benchmark-item__badge--good {
    background: #3b82f6;
    color: #ffffff;
}

.benchmark-item__badge--fair {
    background: #f59e0b;
    color: #ffffff;
}

.benchmark-item__badge--needs-work {
    background: #ef4444;
    color: #ffffff;
}

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

/* ============================================
   SEO INFO SECTION
   ============================================ */

.tool-info {
    background: #ffffff;
    padding: 3.5rem 2rem;
}

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

.tool-info__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #000000;
    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;
    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__content strong {
    color: #000000;
    font-weight: 700;
}

/* 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;
    /* NO transform per brand guidelines */
}

.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;
}

/* Best Practices List */
.best-practices-list {
    margin: 3rem 0;
}

.best-practice-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-start;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.best-practice-item:hover {
    border-color: #d1fe17;
    /* NO transform per brand guidelines */
}

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

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

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

.best-practice-item__content p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #374151;
    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;
}

.tool-info__closing strong {
    color: #000000;
}

/* ============================================
   FAQ SECTION
   ============================================ */

.tool-faq {
    background: #ffffff;
    padding: 3.5rem 2rem;
}

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

.tool-faq__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #000000;
    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::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 700;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
    content: '−';
    color: #000000;
}

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

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

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

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

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .tool-hero {
        padding: 1.75rem 1.5rem;
    }

    .tool-hero__description {
        font-size: 1rem;
    }

    .tool-section {
        padding: 3rem 1.5rem;
    }

    .tool-card {
        padding: 2rem 1.5rem;
    }

    .tool-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tool-tabs::-webkit-scrollbar {
        display: none;
    }

    .tool-tab {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
        flex-shrink: 0;
    }

    .tool-tab__text {
        display: none;
    }

    .tool-tab--active .tool-tab__text {
        display: inline;
    }

    .ratio-display__main {
        padding: 1.5rem;
    }

    .ratio-number {
        font-size: 2.5rem;
    }

    .ratio-stats {
        grid-template-columns: 1fr;
    }

    .ratio-stat {
        padding: 1.25rem;
    }

    .coming-soon-banner {
        padding: 1.5rem;
    }

    .benchmark-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1.25rem;
    }

    .benchmark-item__ratio {
        min-width: auto;
        text-align: left;
    }

    .tool-info {
        padding: 2.5rem 1.5rem;
    }

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

    .benefit-card {
        padding: 1.5rem;
    }

    .best-practices-list {
        margin: 2rem 0;
    }

    .best-practice-item {
        gap: 0.875rem;
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .best-practice-item__number {
        width: 36px;
        height: 36px;
        font-size: 1.125rem;
    }

    .tool-faq {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 430px) {
    .tool-hero {
        padding: 1.5rem 1.25rem;
    }

    .tool-card {
        padding: 1.5rem 1.25rem;
    }

    .ratio-display__main {
        padding: 1.25rem;
    }

    .ratio-number {
        font-size: 2rem;
    }

    .coming-soon-banner {
        padding: 1.25rem;
    }

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

    .tool-info__closing {
        padding: 1rem;
        font-size: 1rem;
    }

    .benefit-card {
        padding: 1.25rem;
    }

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

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

/* Tablet: 640px and up */
@media (min-width: 640px) {
    .best-practice-item {
        gap: 1.25rem;
        padding: 1.75rem;
    }

    .best-practice-item__number {
        width: 48px;
        height: 48px;
        font-size: 1.375rem;
    }
}

/* Desktop: 1024px and up */
@media (min-width: 1024px) {
    .best-practices-list {
        margin: 4rem 0;
    }

    .best-practice-item {
        gap: 1.5rem;
        padding: 2rem;
        margin-bottom: 2.5rem;
    }

    .best-practice-item__number {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }
}
