/**
 * Instagram Trending Posts Discovery - CreatorFlow Free Tool
 * Brand Colors: #000000 (black), #d1fe17 (lime green)
 * NO box-shadows, NO gradients on dark backgrounds
 */

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

body {
    font-family: 'neusanstrial', -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 Poppins per brand guidelines */
h1, h2, h3, h4, h5, h6,
.tool-hero__title,
.tool-features__title,
.feature-card__title,
.tool-info__title,
.tool-info__subtitle,
.tool-faq__title,
.faq-question,
.coming-soon-title {
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

/* ============================================
   HERO SECTION
   ============================================ */
.tool-hero {
    /* NOTE: NO border-bottom - removed per user request */
    background: #ffffff;
    padding: 10rem 0 1.5rem;
    text-align: center;
}

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

.tool-hero__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.tool-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
}

.tool-hero__badge--primary {
    background: #f9fafb;
    color: #6b7280;
}

.tool-hero__badge--coming-soon {
    background: #d1fe17;
    color: #000000;
}

.trending-icon {
    color: #E1306C;
}

.tool-hero__title {
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #000000 !important;
    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;
}

/* ============================================
   PREVIEW SECTION
   ============================================ */
.tool-section {
    padding: 2rem 0;
    background: #f9fafb;
}

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

.tool-card--preview {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Trending Filters */
.trending-filters {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.filter-select {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #000000;
    min-width: 160px;
}

.filter-select--disabled {
    opacity: 0.6;
    color: #6b7280;
}

.filter-icon {
    color: #E1306C;
}

.chevron {
    margin-left: auto;
    color: #9ca3af;
}

/* Trending Grid */
.trending-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    opacity: 0.5;
    pointer-events: none;
}

.trending-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.2s ease;
}

.trending-card--placeholder {
    background: #fafafa;
}

.trending-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
}

.trending-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.trending-user-info {
    flex: 1;
}

.trending-username {
    font-size: 0.875rem;
    font-weight: 600;
    color: #000000;
}

.trending-handle {
    font-size: 0.75rem;
    color: #6b7280;
}

.trending-card__content {
    padding: 0 1rem;
}

.trending-text {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-card__media {
    padding: 1rem;
}

.media-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f3f4f6;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.media-placeholder--quote {
    background: #fef3c7;
    color: #d97706;
}

.trending-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-top: 1px solid #f3f4f6;
}

.trending-date {
    font-size: 0.75rem;
    color: #6b7280;
}

.trending-stats {
    display: flex;
    gap: 1rem;
}

.stat {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.stat svg {
    color: #9ca3af;
}

/* Coming Soon Overlay */
.coming-soon-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.coming-soon-content {
    text-align: center;
    max-width: 400px;
}

.coming-soon-icon {
    width: 80px;
    height: 80px;
    background: #d1fe17;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #000000;
}

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

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

.coming-soon-note {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-top: 1rem;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.tool-features {
    background: #ffffff;
    padding: 4rem 0;
}

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

.tool-features__title {
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #000000 !important;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

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

.feature-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.2s ease;
}

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

.feature-card__icon {
    width: 56px;
    height: 56px;
    background: #ffffff;
    border: 2px solid #d1fe17;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: #000000;
}

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

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

/* ============================================
   INFO SECTION
   ============================================ */
.tool-info {
    background: #f9fafb;
    padding: 4rem 0;
}

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

.tool-info__title {
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #000000 !important;
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

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

.tool-info__subtitle {
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    color: #000000 !important;
    margin: 2.5rem 0 1.5rem;
    text-align: center;
}

.info-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.info-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    color: #374151;
    line-height: 1.5;
    background: #ffffff;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

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

.info-benefits li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #d1fe17;
    color: #000000;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.tool-faq {
    background: #ffffff;
    padding: 4rem 0;
}

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

.tool-faq__title {
    font-family: 'neusanstrial', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #000000 !important;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.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: #374151;
}

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

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

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

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

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablet: 640px and up */
@media (min-width: 640px) {
    .tool-hero__container,
    .tool-section__container,
    .tool-features__container,
    .tool-info__container,
    .tool-faq__container {
        padding: 0 2.5rem;
    }
}

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

@media (max-width: 768px) {
    .tool-hero {
    /* NOTE: NO border-bottom - removed per user request */
        padding: 9rem 0 1.5rem;
    }

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

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

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

    .trending-filters {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-select {
        width: 100%;
    }

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

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

    .coming-soon-icon {
        width: 64px;
        height: 64px;
    }

    .coming-soon-icon svg {
        width: 32px;
        height: 32px;
    }

    .coming-soon-title {
        font-size: 1.25rem;
    }

    .tool-features {
        padding: 3rem 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

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

    .tool-info__content p {
        text-align: left;
    }

    .info-benefits {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 430px) {
    .tool-hero {
    /* NOTE: NO border-bottom - removed per user request */
        padding: 8rem 0 1.25rem;
    }

    .tool-hero__badges {
        flex-direction: column;
        align-items: center;
    }

    .tool-section {
        padding: 1.25rem 0;
    }

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

    .coming-soon-icon {
        width: 56px;
        height: 56px;
    }

    .coming-soon-icon svg {
        width: 28px;
        height: 28px;
    }

    .coming-soon-title {
        font-size: 1.125rem;
    }

    .coming-soon-text {
        font-size: 0.9375rem;
    }

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

    .feature-card {
        padding: 1.25rem;
    }

    .feature-card__icon {
        width: 48px;
        height: 48px;
    }

    .feature-card__icon svg {
        width: 24px;
        height: 24px;
    }

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

    .info-benefits li {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }

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

    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 1.25rem 1rem 1.25rem;
        font-size: 0.9375rem;
    }
}
