/* Task Locker — Frontend Styles */

.tl-gate-wrapper {
    max-width: 680px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Panels ─────────────────────────────────────── */
.tl-panel {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

/* ── Title ───────────────────────────────────────── */
.tl-main-title {
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    color: #1565c0;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin: 0 0 20px;
    line-height: 1.35;
}

/* ── Password Input Row ──────────────────────────── */
.tl-input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.tl-password-input {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
}
.tl-password-input:focus {
    border-color: #1565c0;
    box-shadow: 0 0 0 2px rgba(21,101,192,.15);
}

.tl-btn-verify {
    background: #1b7e3e;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
}
.tl-btn-verify:hover { background: #145f2f; }

/* ── Error Message ───────────────────────────────── */
.tl-error-msg {
    color: #c62828;
    font-size: 13px;
    margin: 6px 0 0;
    padding: 8px 12px;
    background: #ffebee;
    border-radius: 6px;
    border-left: 3px solid #ef5350;
}

/* ── Divider ─────────────────────────────────────── */
.tl-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 22px 0;
}

/* ── Guide Title ─────────────────────────────────── */
.tl-guide-title {
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    color: #1565c0;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 0 0 20px;
}

/* ── Task Loading ────────────────────────────────── */
.tl-task-loading {
    text-align: center;
    padding: 30px;
    color: #757575;
    font-size: 14px;
}

/* ── Spinner ─────────────────────────────────────── */
.tl-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top-color: #1565c0;
    border-radius: 50%;
    animation: tl-spin .7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}
@keyframes tl-spin { to { transform: rotate(360deg); } }

/* ── Step List ───────────────────────────────────── */
.tl-steps-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tl-step {
    font-size: 14px;
    color: #212121;
    line-height: 1.6;
}

.tl-step strong {
    color: #212121;
}

/* Step link */
.tl-step a {
    color: #1565c0;
    font-weight: 700;
    text-decoration: none;
}
.tl-step a:hover { text-decoration: underline; }

/* ── Search Box Mockup ───────────────────────────── */
.tl-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid #dfe1e5;
    border-radius: 24px;
    padding: 10px 16px;
    background: #fff;
    box-shadow: 0 1px 6px rgba(32,33,36,.18);
    margin: 10px 0;
}

.tl-search-icon {
    color: #9aa0a6;
    font-size: 18px;
}

.tl-search-text {
    flex: 1;
    font-size: 15px;
    color: #e53935;
    font-weight: 600;
}

.tl-copy-btn {
    background: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 12px;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background .15s;
}
.tl-copy-btn:hover { background: #f5f5f5; }
.tl-copy-btn.copied { color: #2e7d32; border-color: #2e7d32; }

/* ── Google Result Mockup ────────────────────────── */
.tl-result-box {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 14px;
    background: #fafafa;
    margin: 10px 0;
    font-size: 13px;
    line-height: 1.5;
}

.tl-result-domain {
    color: #5f6368;
    font-size: 12px;
    margin-bottom: 2px;
}

.tl-result-title {
    color: #1a0dab;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.tl-result-desc {
    color: #4d5156;
    font-size: 12px;
}

/* ── Google Pagination Mockup ────────────────────── */
.tl-google-nav {
    text-align: center;
    margin: 10px 0;
}

.tl-google-logo {
    font-size: 24px;
    letter-spacing: -2px;
    margin-bottom: 4px;
}
.tl-google-logo span { font-weight: 700; }
.tl-google-logo .g1 { color: #4285F4; }
.tl-google-logo .g2 { color: #EA4335; }
.tl-google-logo .g3 { color: #FBBC05; }
.tl-google-logo .g4 { color: #4285F4; }
.tl-google-logo .g5 { color: #34A853; }
.tl-google-logo .g6 { color: #EA4335; }

.tl-google-pages {
    font-size: 13px;
    color: #4d5156;
}
.tl-google-pages a { color: #1a0dab; text-decoration: none; margin: 0 4px; }

.tl-page-note {
    text-align: center;
    font-style: italic;
    font-size: 12px;
    color: #757575;
    margin: 6px 0;
}

/* ── Action Button (Get Code) ────────────────────── */
.tl-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: opacity .2s, transform .1s;
    margin: 16px auto 0;
    display: flex;
}
.tl-action-btn:hover { opacity: .88; }
.tl-action-btn:active { transform: scale(.98); }

.tl-action-btn .tl-btn-icon {
    width: 22px;
    height: 22px;
    background: rgba(0,0,0,.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
}

/* ── Success Panel ───────────────────────────────── */
.tl-panel-success {
    text-align: center;
    padding: 50px 30px;
}

.tl-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #2e7d32;
    color: #fff;
    font-size: 32px;
    line-height: 64px;
    margin: 0 auto 16px;
    animation: tl-pop .4s cubic-bezier(.175,.885,.32,1.275);
}

@keyframes tl-pop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.tl-panel-success h3 {
    font-size: 20px;
    color: #2e7d32;
    margin-bottom: 8px;
}

/* ── No Tasks Message ────────────────────────────── */
.tl-no-tasks {
    text-align: center;
    padding: 24px;
    color: #757575;
    font-size: 14px;
    background: #f5f5f5;
    border-radius: 8px;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 480px) {
    .tl-panel { padding: 20px 16px; }
    .tl-input-row { flex-direction: column; }
    .tl-btn-verify { width: 100%; }
    .tl-main-title { font-size: 15px; }
}

/* ── Manual download fallback link ──────────────── */
.tl-manual-link {
    font-size: 13px;
    color: #555;
}
.tl-direct-link {
    color: #1565c0;
    font-weight: 700;
    text-decoration: underline;
}

/* ── Auto-download pulse animation ──────────────── */
.tl-panel-success .tl-download-pulse {
    display: inline-block;
    width: 48px;
    height: 48px;
    border: 3px solid #2e7d32;
    border-top-color: transparent;
    border-radius: 50%;
    animation: tl-spin .8s linear infinite;
    margin-bottom: 12px;
}
