/**
 * Shadowban Detector Styles
 * Usa el design system de Echolikes
 */

/* Variables */
:root {
    --sbd-green: #22C55E;
    --sbd-yellow: #F59E0B;
    --sbd-orange: #FF6B00;
    --sbd-red: #EF4444;
    --sbd-gray-50: #F9FAFB;
    --sbd-gray-100: #F3F4F6;
    --sbd-gray-200: #E5E7EB;
    --sbd-gray-300: #D1D5DB;
    --sbd-gray-400: #9CA3AF;
    --sbd-gray-500: #6B7280;
    --sbd-gray-600: #4B5563;
    --sbd-gray-700: #374151;
    --sbd-gray-900: #111827;
}

/* Container */
.sbd-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Breadcrumbs */
.sbd-breadcrumbs {
    padding: 16px 0;
}

.sbd-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
}

.sbd-breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sbd-gray-500);
}

.sbd-breadcrumbs li:not(:last-child)::after {
    content: "›";
    color: var(--sbd-gray-400);
}

.sbd-breadcrumbs a {
    color: var(--sbd-gray-600);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sbd-breadcrumbs a:hover {
    color: var(--sbd-orange);
}

/* Hero Section */
.sbd-hero {
    text-align: center;
    padding: 60px 20px 40px;
    background: linear-gradient(180deg, #FFF7ED 0%, #FFFFFF 100%);
    border-radius: 24px;
    margin-bottom: 30px;
}

.sbd-hero--compact {
    padding: 40px 20px 24px;
    margin-bottom: 20px;
}

/* Social Proof Section */
.sbd-social-proof {
    text-align: center;
    padding: 30px 20px;
    margin-top: 30px;
}

.sbd-social-proof .sbd-hero__stats {
    margin-bottom: 20px;
}

.sbd-social-proof .sbd-hero__trust {
    margin-bottom: 20px;
}

.sbd-social-proof .sbd-activity {
    margin-bottom: 0;
}

.sbd-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sbd-green);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pulse animation */
.sbd-pulse {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Live Counter */
.sbd-live-counter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FEF3C7;
    color: #92400E;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
}

.sbd-live-dot {
    width: 8px;
    height: 8px;
    background: #F59E0B;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Stats */
.sbd-hero__stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 24px;
    padding: 20px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.sbd-stat {
    text-align: center;
}

.sbd-stat__number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sbd-gray-900);
}

.sbd-stat__label {
    font-size: 12px;
    color: var(--sbd-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Activity Feed */
.sbd-activity {
    max-width: 480px;
    margin: 0 auto 30px;
}

.sbd-activity__item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    font-size: 13px;
    animation: slideIn 0.5s ease;
}

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

.sbd-activity__dot {
    width: 8px;
    height: 8px;
    background: var(--sbd-green);
    border-radius: 50%;
    flex-shrink: 0;
}

.sbd-activity__text {
    flex: 1;
    color: var(--sbd-gray-600);
    transition: opacity 0.3s ease;
}

.sbd-activity__text strong {
    color: var(--sbd-gray-900);
}

.sbd-activity__time {
    color: var(--sbd-gray-400);
    font-size: 12px;
}

.sbd-hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--sbd-gray-900);
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.sbd-hero__subtitle {
    font-size: 1.125rem;
    color: var(--sbd-gray-500);
    margin: 0 0 24px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.sbd-hero__trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.sbd-hero__trust span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--sbd-gray-700);
}

/* Detector Card */
.sbd-detector__card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--sbd-gray-200);
    max-width: 480px;
    margin: 0 auto;
}

/* Progress Bar */
.sbd-progress {
    height: 6px;
    background: var(--sbd-gray-100);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.sbd-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, var(--sbd-orange), #FF8533);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.sbd-progress__text {
    font-size: 13px;
    color: var(--sbd-gray-500);
    text-align: center;
    margin-bottom: 24px;
}

/* Questions */
.sbd-question {
    display: none;
}

.sbd-question.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.sbd-question__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--sbd-gray-900);
    margin: 0 0 20px 0;
    text-align: center;
}

/* Options */
.sbd-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sbd-option {
    cursor: pointer;
}

.sbd-option input {
    display: none;
}

.sbd-option__box {
    display: block;
    padding: 16px 20px;
    background: var(--sbd-gray-50);
    border: 2px solid var(--sbd-gray-200);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.sbd-option:hover .sbd-option__box {
    border-color: var(--sbd-orange);
    background: #FFF7ED;
}

.sbd-option.selected .sbd-option__box,
.sbd-option input:checked + .sbd-option__box {
    border-color: var(--sbd-orange);
    background: #FFF7ED;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.sbd-option__text {
    font-size: 15px;
    color: var(--sbd-gray-700);
    font-weight: 500;
}

/* Navigation Buttons */
.sbd-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.sbd-nav__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sbd-nav__btn--prev {
    background: var(--sbd-gray-100);
    color: var(--sbd-gray-700);
}

.sbd-nav__btn--prev:hover {
    background: var(--sbd-gray-200);
}

.sbd-nav__btn--next,
.sbd-nav__btn--submit {
    background: linear-gradient(135deg, var(--sbd-orange) 0%, #FF8533 100%);
    color: white;
}

.sbd-nav__btn--next:hover,
.sbd-nav__btn--submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

/* Result Section */
.sbd-result {
    margin-top: 30px;
}

.sbd-result__card {
    background: white;
    border-radius: 20px;
    padding: 40px 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--sbd-gray-200);
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
}

.sbd-result__icon {
    margin-bottom: 20px;
}

.sbd-result__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.sbd-result__score {
    font-size: 16px;
    color: var(--sbd-gray-500);
    margin-bottom: 24px;
}

.sbd-result__text {
    text-align: left;
    color: var(--sbd-gray-700);
    line-height: 1.7;
    margin-bottom: 24px;
}

.sbd-result__text p {
    margin: 0 0 12px 0;
}

.sbd-result__recommendations {
    text-align: left;
    background: var(--sbd-gray-50);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.sbd-result__recommendations h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--sbd-gray-900);
    margin: 0 0 12px 0;
}

.sbd-result__recommendations ul,
.sbd-result__recommendations ol {
    margin: 0;
    padding-left: 20px;
}

.sbd-result__recommendations li {
    color: var(--sbd-gray-700);
    margin-bottom: 8px;
    line-height: 1.6;
}

/* CTA Buttons */
.sbd-result__cta {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--sbd-gray-200);
}

.sbd-result__cta p {
    color: var(--sbd-gray-600);
    margin-bottom: 16px;
}

.sbd-cta-btn {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--sbd-orange) 0%, #FF8533 100%);
    color: white !important;
    text-decoration: none !important;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    margin: 6px;
    transition: all 0.2s ease;
}

.sbd-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.sbd-cta-btn--secondary {
    background: white;
    color: var(--sbd-orange) !important;
    border: 2px solid var(--sbd-orange);
}

.sbd-cta-btn--secondary:hover {
    background: #FFF7ED;
}

/* CTA Box (for guide pages) */
.sbd-cta-box {
    background: linear-gradient(135deg, #FFF7ED 0%, #FEF3C7 100%);
    border: 2px solid var(--sbd-orange);
    border-radius: 16px;
    padding: 24px 32px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.sbd-cta-box p {
    margin: 0;
    color: var(--sbd-gray-700);
    font-size: 16px;
    line-height: 1.5;
}

.sbd-cta-box .sbd-cta-btn {
    flex-shrink: 0;
    margin: 0;
}

@media (max-width: 768px) {
    .sbd-cta-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
}

/* Retry Button */
.sbd-result__retry {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 12px 20px;
    background: transparent;
    border: 1px solid var(--sbd-gray-300);
    border-radius: 8px;
    color: var(--sbd-gray-600);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sbd-result__retry:hover {
    background: var(--sbd-gray-50);
    border-color: var(--sbd-gray-400);
}

/* SEO Content */
.sbd-content {
    margin-top: 60px;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.sbd-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--sbd-gray-900);
    margin: 0 0 20px 0;
}

.sbd-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--sbd-gray-900);
    margin: 32px 0 16px 0;
}

.sbd-content p {
    color: var(--sbd-gray-700);
    line-height: 1.8;
    margin-bottom: 16px;
}

.sbd-content ul,
.sbd-content ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.sbd-content li {
    color: var(--sbd-gray-700);
    line-height: 1.8;
    margin-bottom: 8px;
}

.sbd-content a {
    color: var(--sbd-orange);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.sbd-content a:hover {
    color: #CC5500;
    text-decoration: underline;
}

.sbd-content__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 24px 0;
}

.sbd-content__item {
    background: var(--sbd-gray-50);
    padding: 20px;
    border-radius: 12px;
}

.sbd-content__item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--sbd-gray-900);
    margin: 0 0 8px 0;
}

.sbd-content__item p {
    font-size: 14px;
    margin: 0;
}

/* FAQ Section */
.sbd-faq {
    margin-top: 40px;
    padding: 32px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.sbd-faq h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sbd-gray-900);
    margin: 0 0 20px 0;
    text-align: center;
}

.sbd-faq__item {
    border: 1px solid var(--sbd-gray-200);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
    background: white;
}

.sbd-faq__item:hover {
    border-color: var(--sbd-orange);
}

.sbd-faq__item.active {
    border-color: var(--sbd-orange);
}

.sbd-faq__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: white !important;
    border: none !important;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: var(--sbd-gray-900) !important;
    transition: all 0.2s ease;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 12px;
}

.sbd-faq__trigger:hover,
.sbd-faq__trigger:focus,
.sbd-faq__trigger:active {
    background: white !important;
    color: var(--sbd-gray-900) !important;
    outline: none !important;
    box-shadow: none !important;
}

.sbd-faq__icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--sbd-orange);
}

.sbd-faq__item.active .sbd-faq__icon {
    transform: rotate(180deg);
}

.sbd-faq__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
    background: #FFF7ED;
}

.sbd-faq__item.active .sbd-faq__content {
    padding: 16px 20px;
}

.sbd-faq__content p {
    color: var(--sbd-gray-600);
    line-height: 1.7;
    margin: 0;
    font-size: 14px;
}

/* Related Links Section */
.sbd-related {
    margin-top: 40px;
    padding: 32px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.sbd-related h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sbd-gray-900);
    margin: 0 0 24px 0;
    text-align: center;
}

.sbd-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.sbd-related__item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--sbd-gray-50);
    border-radius: 12px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.sbd-related__item:hover {
    background: white;
    border-color: var(--sbd-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.1);
}

.sbd-related__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    color: var(--sbd-orange);
}

.sbd-related__item:hover .sbd-related__icon {
    background: #FFF7ED;
}

.sbd-related__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sbd-related__text strong {
    font-size: 15px;
    font-weight: 600;
    color: var(--sbd-gray-900);
}

.sbd-related__text span {
    font-size: 13px;
    color: var(--sbd-gray-500);
}

/* Responsive */
@media (max-width: 768px) {
    .sbd-hero {
        padding: 40px 16px 30px;
    }

    .sbd-hero__title {
        font-size: 1.75rem;
    }

    .sbd-hero__subtitle {
        font-size: 1rem;
    }

    .sbd-hero__trust {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .sbd-detector__card {
        padding: 24px 16px;
    }

    .sbd-question__title {
        font-size: 1.1rem;
    }

    .sbd-nav {
        flex-direction: column;
    }

    .sbd-nav__btn {
        width: 100%;
        justify-content: center;
    }

    .sbd-content,
    .sbd-faq {
        padding: 24px 20px;
    }

    .sbd-content__grid {
        grid-template-columns: 1fr;
    }

    .sbd-result__card {
        padding: 24px 20px;
    }

    .sbd-cta-btn {
        display: block;
        width: 100%;
        text-align: center;
        margin: 8px 0;
    }

    .sbd-related {
        padding: 24px 20px;
    }

    .sbd-related__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sbd-related__item {
        padding: 16px;
    }

    .sbd-related__icon {
        width: 40px;
        height: 40px;
    }
}
