/**
 * Social Media Image Sizes Guide — tool styles
 * CreatorFlow free tool. Flat, high-contrast brand: borders for elevation,
 * NO box-shadows, lime (#d1fe17) used sparingly.
 */

/* ── Controls: chips + search ──────────────────────────────────── */
.sz-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 1080px;
    margin: 0 auto;
}
.sz-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.sz-chip {
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}
.sz-chip:hover {
    border-color: #9ca3af;
    color: #111827;
}
.sz-chip--active {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}
.sz-chip--active:hover {
    color: #ffffff;
}

.sz-search {
    position: relative;
    flex: 1 1 240px;
    max-width: 320px;
}
.sz-search__icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}
.sz-search__input {
    width: 100%;
    font-family: inherit;
    font-size: 0.9rem;
    color: #111827;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0.6rem 0.85rem 0.6rem 2.4rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sz-search__input::placeholder {
    color: #9ca3af;
}
.sz-search__input:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.sz-copyhint {
    max-width: 1080px;
    margin: 1rem auto 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* ── Tables ────────────────────────────────────────────────────── */
.sz-tables {
    max-width: 1080px;
    margin: 1.5rem auto 0;
}
.sz-platform {
    margin-bottom: 2.25rem;
}
.sz-platform__title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: #000000 !important;
    margin: 0 0 0.9rem;
}
.sz-platform__dot {
    width: 14px;
    height: 14px;
    border-radius: 5px;
    background: #d1fe17;
    flex: 0 0 auto;
}
/* per-platform accent dots */
.sz-dot--instagram { background: #e1306c; }
.sz-dot--facebook  { background: #1877f2; }
.sz-dot--x         { background: #000000; border: 1px solid #d1d5db; }
.sz-dot--linkedin  { background: #0a66c2; }
.sz-dot--tiktok    { background: #010101; border: 1px solid #d1d5db; }
.sz-dot--youtube   { background: #ff0000; }
.sz-dot--pinterest { background: #e60023; }
.sz-dot--threads   { background: #000000; border: 1px solid #d1d5db; }
.sz-dot--bluesky   { background: #1185fe; }
.sz-dot--mastodon  { background: #6364ff; }

.sz-tablewrap {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
}
.sz-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.925rem;
}
.sz-table thead th {
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #6b7280;
    background: #f9fafb;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}
.sz-table tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f0f1f3;
    color: #374151;
    vertical-align: top;
}
.sz-table tbody tr:last-child td {
    border-bottom: none;
}
.sz-table tbody tr:hover {
    background: #fcfcfd;
}
.sz-cell-format {
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
}
.sz-th-format { width: 22%; }
.sz-th-size { width: 20%; }
.sz-th-ratio { width: 12%; }

/* copy-able size pill */
.sz-size {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.35rem 0.6rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}
.sz-size:hover {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}
.sz-size__icon {
    color: #9ca3af;
    flex: 0 0 auto;
    transition: color 0.15s ease;
}
.sz-size:hover .sz-size__icon {
    color: #d1fe17;
}
.sz-size--copied {
    background: #d1fe17;
    border-color: #d1fe17;
    color: #000000;
}
.sz-size--copied .sz-size__icon {
    color: #000000;
}

.sz-ratio {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    background: #f3f4f6;
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
    white-space: nowrap;
}
.sz-cell-notes {
    color: #6b7280;
    line-height: 1.5;
}

.sz-noresults {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #6b7280;
    font-size: 1rem;
    border: 1px dashed #e5e7eb;
    border-radius: 14px;
}

/* ── CTA bridge ────────────────────────────────────────────────── */
.tool-section--bridge {
    padding-top: 0;
}
.tool-cta-bridge {
    margin: 0 auto;
    max-width: 720px;
    padding: 2rem;
    background: #000000;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.tool-cta-bridge__headline {
    color: #ffffff;
    font-size: 1.45rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    font-family: 'Clash Grotesk', sans-serif;
    font-weight: 600;
}
.tool-cta-bridge__lead {
    color: #d1d5db;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}
.tool-cta-bridge__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.tool-cta-bridge__btn {
    display: inline-block;
    background: #d1fe17;
    color: #000000;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}
.tool-cta-bridge__btn:hover {
    opacity: 0.9;
}
.tool-cta-bridge__btn--secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.tool-cta-bridge__note {
    display: block;
    margin-top: 0.75rem;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* ── Info: points / ratios / use cases / tips ──────────────────── */
.sz-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}
.sz-point {
    border-left: 3px solid #d1fe17;
    padding: 0.25rem 0 0.25rem 1rem;
}
.sz-point__title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.3rem;
}
.sz-point__text {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

.sz-ratios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.sz-ratiocard {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.sz-ratiocard__ratio {
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
}
.sz-ratiocard__label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
}
.sz-ratiocard__use {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.45;
}

.sz-usecases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.sz-usecase {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    background: #ffffff;
}
.sz-usecase__badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    margin-bottom: 0.6rem;
}
.sz-usecase__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.4rem;
}
.sz-usecase__text {
    font-size: 0.92rem;
    color: #374151;
    line-height: 1.55;
    margin: 0;
}

.sz-tips {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.6rem;
}
.sz-tips li {
    position: relative;
    padding-left: 1.8rem;
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.55;
}
.sz-tips li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1fe17;
}

/* ── Responsive: tables become cards on mobile ─────────────────── */
@media (max-width: 720px) {
    .sz-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .sz-search {
        max-width: none;
    }
    .sz-tablewrap {
        border: none;
        border-radius: 0;
        overflow: visible;
    }
    .sz-table,
    .sz-table tbody,
    .sz-table tr,
    .sz-table td {
        display: block;
        width: 100%;
    }
    .sz-table thead {
        display: none;
    }
    .sz-table tbody tr {
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 0.5rem 0.9rem;
        margin-bottom: 0.75rem;
        background: #ffffff;
    }
    .sz-table tbody tr:hover {
        background: #ffffff;
    }
    .sz-table tbody td {
        border-bottom: 1px solid #f3f4f6;
        padding: 0.55rem 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }
    .sz-table tbody td:last-child {
        border-bottom: none;
    }
    .sz-table tbody td::before {
        content: attr(data-label);
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        color: #9ca3af;
        flex: 0 0 auto;
    }
    .sz-cell-format {
        white-space: normal;
    }
    .sz-cell-notes {
        text-align: right;
    }
}
