/* TikTok CPM Calculator — Plugin Styles v1.0.0 */

.tcc-wrap *,
.tcc-wrap *::before,
.tcc-wrap *::after { box-sizing: border-box; margin: 0; padding: 0; }

.tcc-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 2rem 0 3rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    color: #1a1a1a;
    line-height: 1.7;
    font-size: 16px;
}

/* ---- HERO ---- */
.tcc-hero { margin-bottom: 2rem; }
.tcc-hero h1 {
    font-size: 30px;
    font-weight: 700;
    color: #0f0f0f;
    margin-bottom: 0.6rem;
    line-height: 1.25;
}
.tcc-hero-sub {
    font-size: 17px;
    color: #555;
    max-width: 620px;
    margin-bottom: 1rem;
}
.tcc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 0.75rem; }
.tcc-tag {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    background: #f3f3f3;
    border: 1px solid #e0e0e0;
    color: #555;
}

/* ---- CALCULATOR CARD ---- */
.tcc-card {
    border: 1px solid #e4e4e4;
    border-radius: 14px;
    padding: 1.75rem;
    background: #fff;
    margin-bottom: 2.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.tcc-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #0f0f0f;
    margin-bottom: 1.25rem;
}

/* ---- TABS ---- */
.tcc-tabs { display: flex; gap: 6px; margin-bottom: 1.5rem; flex-wrap: wrap; }
.tcc-tab {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.15s;
}
.tcc-tab:hover { background: #f7f7f7; }
.tcc-tab.active {
    background: #f0edff;
    color: #5038c0;
    border-color: #c4b8f5;
    font-weight: 600;
}

/* ---- PANELS ---- */
.tcc-panel { display: none; }
.tcc-panel.active { display: block; }

/* ---- FORM ---- */
.tcc-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tcc-field { margin-bottom: 1.1rem; }
.tcc-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    margin-bottom: 6px;
}
.tcc-field input[type="number"],
.tcc-field select {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #1a1a1a;
    transition: border-color 0.15s;
    appearance: none;
    -webkit-appearance: none;
}
.tcc-field input[type="number"]:focus,
.tcc-field select:focus {
    outline: none;
    border-color: #7f77dd;
    box-shadow: 0 0 0 3px rgba(127,119,221,0.12);
}
.tcc-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ---- RESULTS ---- */
.tcc-result {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid #ebebeb;
    background: #fafafa;
    display: none;
}
.tcc-result.show { display: block; }
.tcc-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 1.25rem;
}
.tcc-metric {
    background: #fff;
    border-radius: 10px;
    padding: 14px 16px;
    border: 1px solid #ebebeb;
}
.tcc-mlabel { font-size: 12px; color: #777; margin-bottom: 4px; }
.tcc-mval { font-size: 22px; font-weight: 700; color: #0f0f0f; }
.tcc-munit { font-size: 11px; color: #aaa; margin-top: 2px; }
.tcc-divider { border: none; border-top: 1px solid #ebebeb; margin: 1rem 0; }

/* ---- BENCHMARKS ---- */
.tcc-bench-title { font-size: 13px; font-weight: 600; color: #555; margin-bottom: 10px; }
.tcc-brow { margin-bottom: 9px; }
.tcc-blabel { display: flex; justify-content: space-between; font-size: 12px; color: #666; margin-bottom: 4px; }
.tcc-btrack { height: 8px; background: #eee; border-radius: 4px; overflow: hidden; }
.tcc-bfill { height: 100%; border-radius: 4px; background: #1D9E75; transition: width 0.4s ease; }
.tcc-bfill.user { background: #7f77dd; }

/* ---- VERDICT ---- */
.tcc-verdict {
    margin-top: 1rem;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}
.tcc-verdict.good { background: #e6f9f1; color: #0a6640; border: 1px solid #6fcf97; }
.tcc-verdict.avg  { background: #fff8e6; color: #7a5200; border: 1px solid #f6c945; }
.tcc-verdict.high { background: #fff0f0; color: #b91c1c; border: 1px solid #fca5a5; }
.tcc-formula-note { font-size: 12px; color: #aaa; margin-top: 1rem; font-style: italic; }

/* ---- CONTENT SECTIONS ---- */
.tcc-section { margin-bottom: 2.5rem; }
.tcc-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: #0f0f0f;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0edff;
}
.tcc-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 1.1rem 0 0.4rem;
}
.tcc-section p {
    font-size: 15px;
    color: #444;
    margin-bottom: 0.85rem;
}

/* ---- FORMULA BOX ---- */
.tcc-formula-box {
    background: #f7f5ff;
    border: 1px solid #d6cffa;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    font-size: 15px;
    color: #3d2fa0;
    font-weight: 600;
    text-align: center;
}

/* ---- STEPS ---- */
.tcc-steps { margin: 1rem 0; }
.tcc-step { display: flex; gap: 14px; margin-bottom: 1rem; align-items: flex-start; }
.tcc-step-num {
    width: 30px; height: 30px; border-radius: 50%;
    background: #f0edff; border: 1px solid #c4b8f5;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; flex-shrink: 0; color: #5038c0;
}
.tcc-step-text { font-size: 15px; color: #444; padding-top: 4px; }
.tcc-step-text strong { font-weight: 600; color: #0f0f0f; }

/* ---- INFO GRID ---- */
.tcc-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 1rem 0; }
.tcc-info-card {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    padding: 1rem 1.25rem;
}
.tcc-info-card h3 { margin-top: 0; font-size: 15px; }
.tcc-info-card p { font-size: 14px; color: #555; margin-bottom: 0; }

/* ---- BENCHMARK TABLE ---- */
.tcc-table-wrap { overflow-x: auto; margin: 1rem 0; }
.tcc-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 380px; }
.tcc-table th {
    text-align: left; padding: 10px 12px;
    font-weight: 600; font-size: 12px; color: #666;
    border-bottom: 1px solid #e4e4e4;
    background: #f7f7f7;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.tcc-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #444; font-size: 14px;
}
.tcc-table tr:last-child td { border-bottom: none; }
.tcc-table tr:hover td { background: #fafafa; }

/* ---- FAQ ---- */
.tcc-faq-item { border-bottom: 1px solid #ebebeb; padding: 1.1rem 0; cursor: pointer; }
.tcc-faq-item:last-child { border-bottom: none; }
.tcc-faq-q {
    font-size: 15px; font-weight: 600; color: #0f0f0f;
    display: flex; justify-content: space-between;
    align-items: center; gap: 12px;
}
.tcc-faq-arrow {
    font-size: 18px; color: #aaa; flex-shrink: 0;
    transition: transform 0.2s; line-height: 1;
    display: inline-block;
}
.tcc-faq-arrow.open { transform: rotate(180deg); }
.tcc-faq-a { font-size: 14px; color: #555; margin-top: 0.6rem; display: none; line-height: 1.75; }
.tcc-faq-a.open { display: block; }

/* ---- RESPONSIVE ---- */
@media (max-width: 560px) {
    .tcc-hero h1 { font-size: 24px; }
    .tcc-row2 { grid-template-columns: 1fr; }
    .tcc-metrics { grid-template-columns: 1fr; }
    .tcc-info-grid { grid-template-columns: 1fr; }
    .tcc-card { padding: 1.25rem; }
    .tcc-mval { font-size: 20px; }
}
