/*
Theme Name: Passkey Vault
Description: A password manager as a WordPress theme. Passwords, notes, TOTP secrets and password history are encrypted in the browser (AES-256-GCM, PBKDF2) before they are saved to the WordPress database; titles, URLs, usernames, emails, folders and tags are stored as plain text. Includes dashboard, TOTP 2FA codes with live countdown, password generator, breach check, import/export and light/dark themes.
Author: Passkey
Version: 1.3.4
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: passkey-vault
Tags: custom-colors, one-column, accessibility-ready, translation-ready
*/

/* ------------------------------------------------------------------
   The application UI lives in assets/css/*.css (enqueued per page by
   inc/enqueue.php). This file only holds the theme header and the small
   WordPress-side glue: fallback template styles + core helper classes.
   ------------------------------------------------------------------ */

/* Core accessibility helper required by WordPress themes */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: var(--bg-card, #fff);
	clip: auto !important;
	clip-path: none;
	color: var(--text-primary, #0f172a);
	display: block;
	height: auto;
	left: 6px;
	padding: 12px 20px;
	top: 6px;
	width: auto;
	z-index: 100000;
}

/* Alignment / caption classes WordPress core content may emit (fallback template only) */
.alignleft   { float: left;  margin: 0 1.5em 1em 0; }
.alignright  { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption  { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 0.875em; color: var(--text-muted, #8492a6); }
.sticky, .bypostauthor { display: block; }

/* Fallback template (index.php) — only used outside the three vault pages */
.passkey-site {
	max-width: 720px;
	margin: 0 auto;
	padding: 48px 20px;
	color: var(--text-primary, #0f172a);
	font-family: var(--font-main, system-ui, sans-serif);
	line-height: 1.6;
}
.passkey-site a { color: var(--accent-primary, #2563eb); }
.passkey-site__header { margin-bottom: 32px; }
.passkey-site__title { margin: 0 0 4px; font-size: 1.75rem; }
.passkey-site__desc { margin: 0; color: var(--text-secondary, #475569); }
.passkey-site__entry { margin-bottom: 32px; }
.passkey-button {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 8px;
	background: var(--accent-primary, #2563eb);
	color: var(--text-on-accent, #fff) !important;
	font-weight: 600;
	text-decoration: none;
}
.passkey-button:hover { background: var(--accent-hover, #1d4ed8); }
