/* TofuPass - Clean Professional Design with Artsy Touches */
:root {
    /* Friendly Professional Palette */
    --tofu-white: #fefefe;
    --cream: #faf8f5;
    --warm-gray: #f5f3f0;
    --soft-gray: #e8e5e1;
    --medium-gray: #9ca3af;
    --text-gray: #4b5563;
    --dark-gray: #1f2937;
    
    /* Friendly Accent Colors */
    --primary-blue: #3b82f6;
    --primary-blue-light: #dbeafe;
    --secondary-teal: #14b8a6;
    --secondary-teal-light: #ccfbf1;
    --accent-purple: #8b5cf6;
    --accent-purple-light: #ede9fe;
    --success-green: #10b981;
    --warning-amber: #f59e0b;
    --error-red: #ef4444;
    
    /* Subtle Artsy Accents */
    --gradient-soft: linear-gradient(135deg, var(--primary-blue-light) 0%, var(--secondary-teal-light) 50%, var(--accent-purple-light) 100%);
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-teal) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-purple) 0%, var(--primary-blue) 100%);
    
    /* Typography Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    
    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 50%;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Theme Variables */
[data-theme="light"] {
    --bg-primary: var(--tofu-white);
    --bg-secondary: var(--cream);
    --bg-tertiary: var(--warm-gray);
    --bg-card: var(--tofu-white);
    --bg-input: var(--warm-gray);
    --bg-accent: var(--primary-blue-light);
    
    --text-primary: var(--dark-gray);
    --text-secondary: var(--text-gray);
    --text-tertiary: var(--medium-gray);
    --text-accent: var(--primary-blue);
    
    --border-primary: var(--soft-gray);
    --border-secondary: var(--medium-gray);
    --border-accent: var(--primary-blue);
    
    /* Character Colors */
    --char-upper: var(--primary-blue);
    --char-lower: var(--text-gray);
    --char-number: var(--warning-amber);
    --char-special: var(--accent-purple);
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #1e293b;
    --bg-input: #334155;
    --bg-accent: rgba(59, 130, 246, 0.1);
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --text-accent: #60a5fa;
    
    --border-primary: #334155;
    --border-secondary: #475569;
    --border-accent: #3b82f6;
    
    /* Character Colors */
    --char-upper: #60a5fa;
    --char-lower: #cbd5e1;
    --char-number: #fbbf24;
    --char-special: #a78bfa;
    
    /* Adjust gradients for dark mode */
    --gradient-soft: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(20, 184, 166, 0.1) 50%, rgba(139, 92, 246, 0.1) 100%);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::selection {
    background: var(--primary-blue-light);
    color: var(--primary-blue);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-feature-settings: 'cv11', 'ss01';
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

/* Subtle Artistic Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(139, 92, 246, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: gentle-float 30s ease-in-out infinite;
}

/* Navigation */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(254, 254, 254, 0.8);
    backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid var(--border-primary);
    transition: all 0.3s ease;
}

[data-theme="dark"] nav {
    background: rgba(15, 23, 42, 0.8);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-4) var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.logo {
    font-size: var(--text-2xl);
    font-weight: 700;
    letter-spacing: -0.025em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

/* Playful Pride Flag Logo for Homepage */
.logo span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo span:nth-child(1) { color: #ff6b6b; } /* Soft Red */
.logo span:nth-child(2) { color: #ffa726; } /* Soft Orange */
.logo span:nth-child(3) { color: #ffcc02; } /* Soft Yellow */
.logo span:nth-child(4) { color: #66bb6a; } /* Soft Green */
.logo span:nth-child(5) { color: #42a5f5; } /* Soft Blue */
.logo span:nth-child(6) { color: #ab47bc; } /* Soft Purple */
.logo span:nth-child(7) { color: #ff6b6b; } /* Soft Red */
.logo span:nth-child(8) { color: #ffa726; } /* Soft Orange */

.logo:hover span {
    animation: gentle-bounce 0.6s ease;
}

.logo:hover span:nth-child(2) { animation-delay: 0.1s; }
.logo:hover span:nth-child(3) { animation-delay: 0.2s; }
.logo:hover span:nth-child(4) { animation-delay: 0.3s; }
.logo:hover span:nth-child(5) { animation-delay: 0.4s; }
.logo:hover span:nth-child(6) { animation-delay: 0.5s; }
.logo:hover span:nth-child(7) { animation-delay: 0.6s; }
.logo:hover span:nth-child(8) { animation-delay: 0.7s; }

.slogan {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 500;
    padding-left: var(--space-4);
    border-left: 2px solid var(--border-accent);
    font-style: italic;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: var(--text-sm);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-accent);
    background: var(--bg-accent);
    transform: translateY(-1px);
}

.theme-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    font-size: var(--text-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
}

.theme-toggle:hover {
    background: var(--bg-accent);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    font-family: inherit;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    color: var(--text-accent);
    background: var(--bg-accent);
    transform: translateY(-1px);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + var(--space-2));
    right: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-2);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(12px);
    z-index: 1000;
    animation: dropdown-appear 0.2s ease;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: var(--space-3) var(--space-4);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    font-size: var(--text-sm);
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--bg-accent);
    color: var(--text-accent);
    transform: translateX(4px);
}

.dropdown:hover .dropdown-menu {
    display: block;
    animation: dropdown-appear 0.2s ease;
}

/* Mobile Menu */
.mobile-menu-button {
    display: none;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    padding: var(--space-3);
    transition: all 0.3s ease;
}

.mobile-menu-button span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--text-secondary);
    margin: 4px 0;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.mobile-menu-button:hover {
    background: var(--bg-accent);
}

.mobile-menu-button.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Main Content */
main {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-6);
    width: 100%;
}

html.page-faq main {
    max-width: 900px;
}

/* Card Styles */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: card-appear 0.6s ease;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.card-header {
    padding: var(--space-10) var(--space-8) var(--space-8);
    text-align: center;
    background: var(--gradient-soft);
    border-bottom: 1px solid var(--border-primary);
}

.wand-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-6);
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    box-shadow: var(--shadow-lg);
    animation: icon-float 3s ease-in-out infinite;
    position: relative;
}

.wand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* your circle’s size */
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
}

.wand-icon::before {
  content: "";
  /* size it to the PNG’s “real” pixels */
  width: 32px;
  height: 32px;
  background: url("tofu.png") no-repeat center;
  background-size: contain;
  pointer-events: none;
}
.wand-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    z-index: -1;
    opacity: 0.3;
    animation: icon-glow 2s ease-in-out infinite alternate;
}

.api-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-6);
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    box-shadow: var(--shadow-lg);
    animation: icon-spin 8s linear infinite;
}

.api-icon::before {
    content: "⚙️";
    color: white;
}

.card-header h2 {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    letter-spacing: -0.025em;
}

.card-header p {
    color: var(--text-secondary);
    font-size: var(--text-lg);
    font-weight: 500;
}

.card-content {
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

/* Password Display */
.password-container {
    position: relative;
}

.password-display {
    background: var(--gradient-soft);
    border: 2px solid var(--border-accent);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.password-display:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

html.page-passphrase .password-display {
    min-height: 120px;
    max-height: 200px;
    align-items: flex-start;
}

html.page-complex .password-display,
html.page-breach .password-display {
    padding: var(--space-5);
}

/* Password Input Styles */
.password-input[type="text"] {
    width: 100%;
    background: transparent;
    border: none;
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-size: var(--text-xl);
    font-weight: 600;
    text-align: center;
    color: var(--text-primary);
    outline: none;
    transition: color 0.3s ease;
}

textarea.password-input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    outline: none;
    padding: 0 4rem 0 var(--space-4);
    resize: none;
    overflow-y: auto;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.password-output {
    width: 100%;
    background: transparent;
    border: none;
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-size: var(--text-xl);
    font-weight: 600;
    text-align: center;
    color: var(--text-primary);
    outline: none;
    padding-right: 4rem;
    word-break: break-all;
    transition: color 0.3s ease;
}

.password-input[type="password"] {
    flex-grow: 1;
    padding: var(--space-4);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-lg);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: var(--text-lg);
    outline: none;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
}

.password-input[type="password"]:focus {
    border-color: var(--border-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Character Highlighting */
.highlight-active .char-upper { 
    color: var(--char-upper) !important; 
    font-weight: 700; 
}
.highlight-active .char-lower { 
    color: var(--char-lower) !important; 
}
.highlight-active .char-number { 
    color: var(--char-number) !important; 
    font-weight: 700;
}
.highlight-active .char-special { 
    color: var(--char-special) !important; 
    font-weight: 700;
}

/* Copy Button */
#copy-button {
    position: absolute;
    right: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    border: 2px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: var(--text-lg);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

#copy-button:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-50%) scale(1.05);
    box-shadow: var(--shadow-lg);
}

html.page-passphrase #copy-button {
    top: var(--space-4);
    transform: none;
}

html.page-passphrase #copy-button:hover {
    transform: scale(1.05);
}

.copy-alert {
    display: none;
    padding: var(--space-4);
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--success-green);
    border-radius: var(--radius-lg);
    color: var(--success-green);
    text-align: center;
    margin-top: var(--space-4);
    font-weight: 600;
    animation: alert-appear 0.3s ease;
}

/* Generate Button */
.generate-button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-xl);
    padding: var(--space-5) var(--space-6);
    font-size: var(--text-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.generate-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.generate-button:hover::before {
    left: 100%;
}

.generate-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.generate-button:active {
    transform: translateY(0);
}

/* Word Count Input */
.word-count-container {
    margin-bottom: var(--space-6);
}

.word-count-label {
    display: block;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    font-weight: 600;
    font-size: var(--text-lg);
}

.word-count-input {
    width: 100%;
    padding: var(--space-4);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-lg);
    font-size: var(--text-lg);
    color: var(--text-primary);
    background: var(--bg-input);
    transition: all 0.3s ease;
    font-weight: 600;
}

.word-count-input:focus {
    outline: none;
    border-color: var(--border-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Generator Controls */
.generator-controls {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    background: var(--gradient-soft);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-primary);
}

.control-group .control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
    font-weight: 600;
}

#length-value {
    font-weight: 700;
    color: white;
    font-size: var(--text-xl);
    background: var(--gradient-primary);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
}

/* Slider Styles */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: var(--border-primary);
    border-radius: var(--radius-full);
    outline: none;
    transition: background 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--gradient-primary);
    cursor: pointer;
    border-radius: var(--radius-full);
    border: 3px solid white;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--gradient-primary);
    cursor: pointer;
    border-radius: var(--radius-full);
    border: 3px solid white;
    box-shadow: var(--shadow-lg);
}

/* Checkbox Styles */
.checkbox-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.checkbox-group:hover {
    background: var(--bg-accent);
    border-color: var(--border-accent);
}

.checkbox-group label {
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
    transition: color 0.3s ease;
}

.checkbox-group:hover label {
    color: var(--text-primary);
}

input[type="checkbox"] {
    cursor: pointer;
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--primary-blue);
    border-radius: var(--radius-sm);
}

/* Toggle Switch */
.readability-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-primary);
}

.readability-group label {
    color: var(--text-primary);
    font-weight: 600;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border-primary);
    transition: 0.4s ease;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background: white;
    transition: 0.4s ease;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

input:checked + .slider {
    background: var(--gradient-primary);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Fun Fact Styles */
.fun-fact {
    background: var(--gradient-soft);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    position: relative;
}

.fun-fact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.fun-fact-title {
    color: var(--text-accent);
    font-weight: 700;
    margin-bottom: var(--space-3);
    font-size: var(--text-lg);
}

.fun-fact-text {
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: 1.7;
}

/* Breach Check Styles */
.pwned-result {
    margin-top: var(--space-4);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-weight: 600;
    text-align: center;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-primary);
    background: var(--bg-tertiary);
    transition: all 0.3s ease;
    animation: alert-appear 0.3s ease;
}

.hidden {
    display: none;
}

.pwned-result.checking {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-amber);
    border-color: var(--warning-amber);
}

.pwned-result.pwned {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-red);
    border-color: var(--error-red);
}

.pwned-result.not-pwned {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-green);
    border-color: var(--success-green);
}

.pwned-result.error {
    background: rgba(156, 163, 175, 0.1);
    color: var(--text-tertiary);
    border-color: var(--border-secondary);
}

.privacy-notice {
    margin-top: var(--space-8);
    background: var(--gradient-soft);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
}

.privacy-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.privacy-notice p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.privacy-notice strong {
    color: var(--text-accent);
    font-weight: 700;
}

.privacy-notice a {
    color: var(--text-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.privacy-notice a:hover {
    color: var(--primary-blue);
}

/* FAQ Styles */
.faq-section {
    margin-bottom: var(--space-10);
}

.faq-section h3 {
    color: var(--text-primary);
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--border-accent);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.faq-question {
    color: var(--text-primary);
    font-weight: 700;
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
    margin-top: var(--space-6);
}

.faq-answer {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    padding-left: var(--space-4);
    border-left: 3px solid var(--border-accent);
    line-height: 1.7;
}

.faq-answer ul {
    list-style: none;
    padding-left: var(--space-4);
    margin: var(--space-4) 0;
}

.faq-answer ul li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: var(--space-2);
}

.faq-answer ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 6px;
    height: 6px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.math-formula {
    background: var(--gradient-soft);
    border: 1px solid var(--border-primary);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    margin: var(--space-4) 0;
    font-family: 'JetBrains Mono', monospace;
    overflow-x: auto;
    font-size: var(--text-sm);
}

/* API Styles */
.api-section {
    margin-bottom: var(--space-10);
}

.api-section h3 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--border-accent);
}

.endpoint {
    background: var(--gradient-soft);
    border: 1px solid var(--border-primary);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
    margin: var(--space-4) 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--text-base);
    overflow-x: auto;
}

.endpoint a {
    color: var(--text-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.endpoint a:hover {
    color: var(--primary-blue);
}

/* Privacy Policy Styles */
.privacy-section {
    margin-bottom: var(--space-8);
}

.privacy-section h3 {
    color: var(--text-primary);
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.privacy-section p {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    line-height: 1.7;
}

.privacy-section ul {
    list-style: none;
    padding-left: var(--space-4);
    margin: var(--space-4) 0;
}

.privacy-section ul li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: var(--space-2);
    color: var(--text-secondary);
}

.privacy-section ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 6px;
    height: 6px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.update-banner {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--primary-blue);
    color: var(--text-primary);
    padding: var(--space-4);
    margin: var(--space-6) auto;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 800px;
    font-weight: 500;
}

code {
    background: var(--bg-tertiary);
    color: var(--text-accent);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    font-weight: 600;
}

/* Footer */
.site-footer {
    margin-top: auto;
    padding: var(--space-8) var(--space-6);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: var(--space-8);
}

.footer-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--text-accent);
    background: var(--bg-accent);
    transform: translateY(-1px);
}

.copyright {
    color: var(--text-tertiary);
    font-size: var(--text-sm);
    font-weight: 500;
}

/* Animations */
@keyframes gentle-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes gentle-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes card-appear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dropdown-appear {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes alert-appear {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes icon-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes icon-glow {
    from { opacity: 0.2; }
    to { opacity: 0.6; }
}

@keyframes icon-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-button {
        display: block;
    }

    .slogan {
        display: none;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + var(--space-4));
        left: var(--space-4);
        right: var(--space-4);
        background: var(--bg-card);
        padding: var(--space-4);
        border-radius: var(--radius-xl);
        flex-direction: column;
        gap: var(--space-2);
        box-shadow: var(--shadow-xl);
        border: 1px solid var(--border-primary);
        display: none;
        z-index: 1000;
        backdrop-filter: blur(12px);
    }

    .nav-links.show {
        display: flex;
        animation: dropdown-appear 0.3s ease;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: var(--space-3);
        border-radius: var(--radius-lg);
    }

    .theme-toggle {
        width: 100%;
        justify-content: center;
        margin-top: var(--space-4);
        padding: var(--space-3);
        border-top: 1px solid var(--border-primary);
    }

    .dropdown {
        display: contents;
    }

    .dropdown-toggle {
        display: none;
    }

    .dropdown-menu {
        display: contents;
        position: static;
        box-shadow: none;
        border: none;
        background: none;
        padding: 0;
        animation: none;
    }

    .dropdown-item {
        width: 100%;
        text-align: center;
        padding: var(--space-3);
        margin-bottom: 0;
        border-radius: var(--radius-lg);
    }

    main {
        padding: var(--space-6) var(--space-4);
    }

    .card-content {
        padding: var(--space-6);
    }

    .card-header {
        padding: var(--space-8) var(--space-6) var(--space-6);
    }

    .checkbox-options {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }

    .footer-links {
        gap: var(--space-4);
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: var(--space-3) var(--space-4);
    }

    .logo {
        font-size: var(--text-xl);
    }

    .card-header h2 {
        font-size: var(--text-2xl);
    }

    .wand-icon, .api-icon {
        width: 60px;
        height: 60px;
        font-size: var(--text-xl);
    }

    .password-input[type="text"],
    .password-output {
        font-size: var(--text-lg);
    }

    textarea.password-input {
        font-size: var(--text-base);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    :root {
        --border-primary: #000000;
        --border-secondary: #000000;
        --text-secondary: #000000;
    }
    
    .card {
        border: 2px solid #000000;
    }
}

/* Print Styles */
@media print {
    body::before {
        display: none;
    }
    
    nav, .site-footer, .theme-toggle, .mobile-menu-button {
        display: none;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .generate-button {
        display: none;
    }
}