/* ============================================================
   password-strength / style.css
   Prefix: ps-
   ============================================================ */

.ps-container {
    max-width: 700px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --- Section Cards --- */
.ps-section {
    background: #fdfdfd;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    border: 1px solid #eee;
    margin-bottom: 16px;
}

.ps-section-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #6c47ff;
}

/* --- Safety banner --- */
.ps-safety-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 12px;
    color: #166534;
    margin-bottom: 14px;
}

/* --- Input --- */
.ps-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ps-password-input {
    width: 100%;
    padding: 13px 50px 13px 16px;
    font-size: 16px;
    font-family: "Courier New", Courier, monospace;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    background: #fff;
    color: #222;
    transition: border-color 0.2s;
    letter-spacing: 0.1em;
}

.ps-password-input:focus {
    border-color: #6c47ff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 71, 255, 0.12);
}

.ps-eye-btn {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #888;
    padding: 4px;
    line-height: 1;
    transition: color 0.15s;
}

.ps-eye-btn:hover {
    color: #333;
}

/* --- Strength Meter --- */
.ps-meter-wrap {
    margin-bottom: 16px;
}

.ps-meter-bar-bg {
    height: 10px;
    background: #e8eaed;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
}

.ps-meter-bar {
    height: 100%;
    width: 0%;
    border-radius: 5px;
    transition: width 0.4s cubic-bezier(.4, 0, .2, 1), background 0.4s;
    background: #ea4335;
}

.ps-meter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ps-meter-label {
    font-size: 15px;
    font-weight: 700;
}

.ps-meter-score {
    font-size: 13px;
    color: #777;
}

.ps-stars {
    font-size: 18px;
    letter-spacing: 2px;
}

/* --- Crack Time Hero --- */
.ps-cracktime-hero {
    background: linear-gradient(135deg, #1a0533 0%, #0d1f48 100%);
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
}

.ps-cracktime-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.ps-cracktime-icon {
    font-size: 28px;
    display: inline-block;
    animation: ps-clock-tick 1s steps(12, end) infinite;
}

@keyframes ps-clock-tick {
    0% {
        content: '🕐';
    }

    8% {
        content: '🕑';
    }

    17% {
        content: '🕒';
    }

    25% {
        content: '🕓';
    }

    33% {
        content: '🕔';
    }

    42% {
        content: '🕕';
    }

    50% {
        content: '🕖';
    }

    58% {
        content: '🕗';
    }

    67% {
        content: '🕘';
    }

    75% {
        content: '🕙';
    }

    83% {
        content: '🕚';
    }

    92% {
        content: '🕛';
    }
}

.ps-cracktime-value {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 8px 0 4px;
    transition: color 0.4s;
    min-height: 44px;
}

.ps-cracktime-scenario {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.ps-cracktime-animating .ps-cracktime-value {
    animation: ps-flip 0.06s linear infinite;
}

@keyframes ps-flip {
    0% {
        transform: translateY(-50%);
        opacity: 0;
    }

    50% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(50%);
        opacity: 0;
    }
}

/* --- Scenarios table --- */
.ps-scenarios-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 4px;
}

.ps-scenarios-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 10px;
    border-bottom: 1px solid #eee;
}

.ps-scenarios-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f5f5f5;
    vertical-align: middle;
}

.ps-scenarios-table tr:last-child td {
    border-bottom: none;
}

.ps-scenario-name {
    color: #555;
    font-weight: 600;
}

.ps-scenario-speed {
    color: #999;
    font-size: 11px;
}

.ps-scenario-time {
    font-weight: 700;
}

/* --- Details panel --- */
.ps-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.ps-detail-item {
    background: #f8f8f8;
    border-radius: 6px;
    padding: 10px 14px;
}

.ps-detail-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.ps-detail-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

/* --- Character types --- */
.ps-chartypes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.ps-chartype-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    border: 1.5px solid #ddd;
    color: #999;
    background: #f5f5f5;
    transition: all 0.2s;
}

.ps-chartype-badge.active {
    border-color: #6c47ff;
    color: #6c47ff;
    background: #f0ecff;
}

/* --- Warnings / Suggestions --- */
.ps-warnings {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ps-warning-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 13px;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    line-height: 1.5;
}

.ps-warning-item:last-child {
    border-bottom: none;
}

.ps-warning-item.warn {
    color: #c5221f;
}

.ps-warning-item.tip {
    color: #1a73e8;
}

/* --- Certificate section --- */
.ps-cert-section {
    background: linear-gradient(135deg, #0a0a2e 0%, #1a1a4e 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 14px;
}

.ps-cert-title {
    font-size: 13px;
    color: rgba(255, 215, 0, 0.8);
    letter-spacing: 0.15em;
    margin-bottom: 12px;
    font-weight: 700;
}

.ps-cert-preview {
    max-width: 100%;
    width: 380px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    display: block;
    margin: 0 auto 16px;
}

.ps-cert-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.ps-cert-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.ps-cert-btn.save {
    background: #fff;
    color: #222;
}

.ps-cert-btn.save:hover {
    background: #f0f0f0;
}

.ps-cert-btn.x-share {
    background: #000;
    color: #fff;
}

.ps-cert-btn.x-share:hover {
    background: #333;
}

.ps-cert-hint {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 10px;
    line-height: 1.5;
}

/* --- Empty state --- */
.ps-empty {
    text-align: center;
    padding: 30px 20px;
    color: #bbb;
    font-size: 14px;
}

/* --- Responsive --- */
@media (max-width: 480px) {
    .ps-details-grid {
        grid-template-columns: 1fr;
    }

    .ps-cracktime-value {
        font-size: 26px;
    }

    .ps-cert-preview {
        width: 100%;
    }
}