/* ===== AI Travel Vlog Scriptwriter — page styles ===== */

/* --- NEW badge (hero) --- */
.vlog-new-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 3px 10px 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #046BD2, #05a2e0);
    border-radius: 999px;
    vertical-align: middle;
    box-shadow: 0 0 12px rgba(4, 107, 210, 0.55);
}

/* --- Duration slider --- */
.vlog-duration-slider-wrap {
    padding: 6px 4px 0;
}
#vlog-duration {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    outline: none;
    cursor: pointer;
}
#vlog-duration::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #046BD2;
    border: 3px solid #fff;
    box-shadow: 0 0 10px rgba(4, 107, 210, 0.7);
    cursor: pointer;
}
#vlog-duration::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #046BD2;
    border: 3px solid #fff;
    box-shadow: 0 0 10px rgba(4, 107, 210, 0.7);
    cursor: pointer;
}
.vlog-duration-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}
.vlog-duration-label {
    flex: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1.3;
}
.vlog-duration-label small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
}
.vlog-duration-label:first-child { text-align: left; }
.vlog-duration-label:last-child { text-align: right; }
.vlog-duration-label.active {
    color: #4da3ff;
}
.vlog-duration-label.active small {
    color: rgba(77, 163, 255, 0.75);
}

/* --- Results card --- */
.vlog-script-output {
    margin-top: 28px;
}
.vlog-result-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    padding: 26px 26px 30px;
}
.vlog-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.vlog-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.vlog-meta-label {
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}
.vlog-meta-value {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}
.vlog-script-intro,
.vlog-script-outro {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    margin: 0 0 16px;
}
.vlog-script-outro { margin-top: 16px; }

/* --- Script table --- */
.vlog-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
table.vlog-script-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}
.vlog-script-table th {
    background: rgba(4, 107, 210, 0.25);
    color: #fff;
    text-align: left;
    font-size: 12px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    white-space: nowrap;
}
.vlog-script-table td {
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: top;
    min-width: 140px;
}
.vlog-script-table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.025);
}
.vlog-script-table td:first-child {
    white-space: nowrap;
    font-weight: 700;
    color: #4da3ff;
}
.vlog-script-table strong {
    color: #fff;
}
.vlog-script-raw {
    white-space: pre-wrap;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.6;
}

/* --- Action panel --- */
.vlog-action-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}
.vlog-action-panel .btn {
    cursor: pointer;
}

/* --- Affiliate banner --- */
.vlog-affiliate-banner {
    margin-top: 24px;
    padding: 18px 22px;
    border: 1px solid rgba(4, 107, 210, 0.45);
    background: linear-gradient(135deg, rgba(4, 107, 210, 0.16), rgba(5, 162, 224, 0.08));
    border-radius: 12px;
}
.vlog-affiliate-banner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
}
.vlog-affiliate-title {
    font-size: 15px !important;
    font-weight: 700;
    color: #fff !important;
    margin-bottom: 6px !important;
}
.vlog-affiliate-banner a {
    color: #4da3ff;
    text-decoration: underline;
}
.vlog-affiliate-banner a:hover {
    color: #7dbcff;
}

/* --- Error box --- */
.vlog-error-box {
    padding: 18px 22px;
    border: 1px solid rgba(255, 99, 99, 0.5);
    background: rgba(255, 99, 99, 0.08);
    border-radius: 12px;
    color: #ffb3b3;
    font-size: 15px;
}

/* --- Mobile: stack table rows into cards --- */
@media (max-width: 767px) {
    .vlog-result-card { padding: 18px 16px 22px; }
    .vlog-script-table thead { display: none; }
    .vlog-script-table,
    .vlog-script-table tbody,
    .vlog-script-table tr,
    .vlog-script-table td {
        display: block;
        width: 100%;
    }
    .vlog-script-table tr {
        margin-bottom: 16px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 10px;
        overflow: hidden;
    }
    .vlog-script-table td {
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        min-width: 0;
        white-space: normal;
    }
    .vlog-script-table td:last-child { border-bottom: none; }
    .vlog-script-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 10px;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.45);
        margin-bottom: 4px;
    }
    .vlog-action-panel .btn { width: 100%; text-align: center; }
}
