/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Theme System */
:root {
    /* Light theme (default) */
    --primary-text: #1C2B4E;
    --secondary-text: #6C757D;
    --background: #F8F9FA;
    --surface: #FFFFFF;
    --border-color: #DEE2E6;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-strong: rgba(0, 0, 0, 0.15);
    
    /* Brand colors (same in both themes) */
    --accent-action: #0891B2;
    --hover-accent: #0E7490;
    --strength-weak: #DC3545;
    --strength-okay: #FFC107;
    --strength-strong: #198754;
    
    /* Theme-specific adjustments */
    --input-background: #F8F9FA;
    --hover-background: rgba(13, 110, 253, 0.1);
    --card-background: #FFFFFF;
}

/* Light theme (explicit) */
[data-theme="light"] {
    --primary-text: #1C2B4E;
    --secondary-text: #6C757D;
    --background: #F8F9FA;
    --surface: #FFFFFF;
    --border-color: #DEE2E6;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-strong: rgba(0, 0, 0, 0.15);
    
    --input-background: #F8F9FA;
    --hover-background: rgba(13, 110, 253, 0.1);
    --card-background: #FFFFFF;
    
    --accent-action: #0891B2;
    --hover-accent: #0E7490;
    --strength-weak: #DC3545;
    --strength-okay: #FFC107;
    --strength-strong: #198754;
}

/* Dark theme */
[data-theme="dark"] {
    --primary-text: #E9ECEF;
    --secondary-text: #ADB5BD;
    --background: #121826;
    --surface: #1F2937;
    --border-color: #343A40;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-strong: rgba(0, 0, 0, 0.4);
    
    /* Adjusted colors for dark theme */
    --input-background: #2D3748;
    --hover-background: rgba(13, 110, 253, 0.2);
    --card-background: #1F2937;
    
    /* Slightly adjusted brand colors for better contrast */
    --accent-action: #06B6D4;
    --hover-accent: #0891B2;
    --strength-weak: #F56565;
    --strength-okay: #FFD93D;
    --strength-strong: #68D391;
}

/* System theme preference detection */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --primary-text: #E9ECEF;
        --secondary-text: #ADB5BD;
        --background: #121826;
        --surface: #1F2937;
        --border-color: #343A40;
        --shadow: rgba(0, 0, 0, 0.3);
        --shadow-strong: rgba(0, 0, 0, 0.4);
        
        --input-background: #2D3748;
        --hover-background: rgba(13, 110, 253, 0.2);
        --card-background: #1F2937;
        
        --accent-action: #06B6D4;
        --hover-accent: #0891B2;
        --strength-weak: #F56565;
        --strength-okay: #FFD93D;
        --strength-strong: #68D391;
    }
}

/* Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--primary-text);
    background-color: var(--background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--primary-text);
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.main-heading {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-text);
    letter-spacing: -0.05em;
    line-height: 1.1;
}

h2 {
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

/* Header */
.site-header {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px var(--shadow);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 0.8;
}

.logo-image {
    height: 40px;
    width: auto;
    display: block;
}

.site-title {
    font-size: 1.75rem;
    margin: 0;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.education-link {
    color: var(--primary-text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.education-link:hover {
    background: var(--hover-background);
    color: var(--accent-action);
}

/* Theme Toggle */
.theme-toggle {
    position: relative;
    margin-left: 0.5rem;
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: var(--primary-text);
    transition: all 0.2s ease;
    min-width: 120px;
    justify-content: center;
}

.theme-toggle:hover {
    border-color: var(--accent-action);
    background-color: var(--hover-background);
}

.theme-toggle:focus-visible {
    outline: 3px solid var(--accent-action);
    outline-offset: 2px;
}

.theme-toggle-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-toggle-icon {
    transform: scale(1.1);
}

/* Theme icon states */
.sun-icon,
.moon-icon,
.system-icon {
    display: none;
}

.sun-icon.active,
.moon-icon.active,
.system-icon.active {
    display: block;
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 800px;
    width: 100%;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.generator-container {
    background-color: var(--card-background);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px var(--shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Generator Switch */
.generator-switch {
    display: flex;
    background-color: var(--background);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 2rem;
}

.switch-button {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--secondary-text);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.switch-button.active {
    background-color: var(--accent-action);
    color: white;
}

.switch-button:hover:not(.active) {
    background-color: var(--hover-background);
}

/* Password Display Area */
.password-display-area {
    margin-bottom: 1.5rem;
}

.password-field-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-display {
    flex: 1;
    padding: 1rem 3.5rem 1rem 1.25rem;
    font-size: 1.125rem;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    background-color: var(--input-background);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--primary-text);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.password-display:focus {
    outline: none;
    border-color: var(--accent-action);
}

.action-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-button {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--hover-background);
    color: var(--secondary-text);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    z-index: 10;
}

.copy-button svg {
    width: 16px;
    height: 16px;
}

.copy-button:hover {
    background-color: var(--hover-background);
    color: var(--accent-action);
}

.copy-button:active {
    transform: translateY(-50%) scale(0.95);
}

.copy-button .button-text {
    display: none;
}

.regenerate-button {
    background-color: var(--input-background);
    color: var(--primary-text);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    height: auto;
    min-height: 3.125rem;
    margin-top: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.regenerate-button:hover {
    background-color: var(--surface);
    border-color: var(--primary-text);
}

.button-text {
    display: inline-block;
}

/* Strength Indicator */
.strength-indicator {
    margin-bottom: 2rem;
}

.strength-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.strength-text {
    font-weight: 600;
}

.strength-bar-container {
    width: 100%;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 4px;
}

/* Generator Controls */
.control-panel {
    display: none;
}

.control-panel.active {
    display: block;
}

.control-group {
    margin-bottom: 1.5rem;
}

.control-group:last-child {
    margin-bottom: 0;
}

.control-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-text);
}

/* Range Slider */
.range-slider {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-action);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    background: var(--hover-accent);
}

.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent-action);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease;
}

.range-slider::-moz-range-thumb:hover {
    background: var(--hover-accent);
}

/* Radio and Checkbox Groups */
.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 400;
}

input[type="radio"],
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-action);
}

/* Footer */
.site-footer {
    background-color: var(--surface);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Affiliate Module */
.affiliate-module {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    text-align: center;
}

.section-heading {
    margin-bottom: 2rem;
}

.affiliate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 1rem;
}

.affiliate-item {
    background-color: var(--input-background);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.affiliate-item:hover {
    transform: translateY(-2px);
}

.affiliate-logo {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-text);
}

.affiliate-description {
    margin-bottom: 1rem;
    color: var(--secondary-text);
}

.affiliate-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--accent-action);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.affiliate-button:hover {
    background-color: var(--hover-accent);
}

.affiliate-disclaimer {
    font-size: 0.875rem;
    color: var(--secondary-text);
    font-style: italic;
}

/* Education Section */
.education-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    scroll-margin-top: 100px;
}

.education-content {
    line-height: 1.8;
}

.education-content p {
    margin-bottom: 1rem;
}

.education-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.education-content li {
    margin-bottom: 0.5rem;
}

/* Ad Banner */
.ad-banner-container {
    background-color: var(--background);
    padding: 2rem 0;
    text-align: center;
}

.ad-banner {
    display: inline-block;
    width: 728px;
    max-width: 100%;
    height: 90px;
    background-color: var(--border-color);
    border-radius: 4px;
}

/* Footer Bottom */
.footer-bottom {
    background-color: var(--primary-text);
    color: var(--background);
    text-align: center;
    padding: 1.5rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.privacy-notice {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Mobile Navigation */
.mobile-nav-container {
    display: none;
    align-items: center;
    gap: 1rem;
}

.mobile-theme-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--primary-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-theme-toggle:hover {
    background-color: var(--hover-background);
}

.mobile-theme-toggle .theme-toggle-icon {
    width: 18px;
    height: 18px;
}

.mobile-theme-toggle span {
    font-size: 0.75rem;
    font-weight: 500;
}

.mobile-menu-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background-color: var(--primary-text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.hamburger-line:nth-child(1) {
    top: 8px;
}

.hamburger-line:nth-child(2) {
    top: 50%;
    transform: translate(-50%, -50%);
}

.hamburger-line:nth-child(3) {
    bottom: 8px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    bottom: 50%;
    transform: translate(-50%, 50%) rotate(-45deg);
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--surface);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 4px 12px var(--shadow);
    z-index: 1000;
    padding: 1rem 0;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--primary-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    background-color: var(--hover-background);
    color: var(--accent-action);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-nav-container {
        display: flex;
    }

    .site-header {
        position: relative;
    }

    .main-content {
        margin: 2rem auto;
        padding: 0 1rem;
    }

    .generator-container {
        padding: 2rem;
        border-radius: 12px;
    }

    .main-heading {
        font-size: 2.25rem;
        margin-bottom: 2rem;
        line-height: 1.2;
    }

    .password-display {
        font-size: 1rem;
        padding: 0.875rem 3rem 0.875rem 1rem;
    }

    .copy-button {
        width: 2rem;
        height: 2rem;
        right: 0.5rem;
    }

    .copy-button svg {
        width: 14px;
        height: 14px;
    }

    .action-button {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .switch-button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .control-group {
        margin-bottom: 1.5rem;
    }

    .checkbox-group,
    .radio-group {
        gap: 0.5rem;
    }

    /* Improve touch targets */
    .checkbox-label,
    .radio-label {
        padding: 0.75rem 0.5rem;
        min-height: 44px;
    }

    input[type="checkbox"],
    input[type="radio"] {
        min-width: 20px;
        min-height: 20px;
    }

    .range-slider {
        height: 8px;
    }

    .range-slider::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }

    .range-slider::-moz-range-thumb {
        width: 24px;
        height: 24px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .main-content {
        margin: 1.5rem auto;
        padding: 0 0.75rem;
    }

    .generator-container {
        padding: 1.5rem;
    }

    .main-heading {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .password-display {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

    .switch-button {
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
    }

    .action-button {
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }
}

    .affiliate-grid {
        grid-template-columns: 1fr;
    }

    .ad-banner {
        width: 320px;
        height: 50px;
    }
}

/* Focus Styles for Accessibility */
*:focus-visible {
    outline: 3px solid var(--accent-action);
    outline-offset: 2px;
}

/* Utility Classes */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.generator-container {
    animation: fadeIn 0.3s ease-out;
    will-change: transform, opacity;
}

/* Performance optimizations */
.action-button,
.switch-button,
.range-slider {
    will-change: transform;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Additional Page Styles */
.page-content {
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
}

.content-container {
    background: var(--surface);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 24px var(--shadow);
    border: 1px solid var(--border-color);
}

.content-section {
    margin-bottom: 2rem;
}

.content-section h2 {
    color: var(--primary-text);
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.content-section h3 {
    color: var(--primary-text);
    margin: 1.5rem 0 0.75rem;
    font-family: 'Poppins', sans-serif;
}

.content-section ul {
    margin-left: 2rem;
    margin-top: 0.5rem;
}

.content-section li {
    margin-bottom: 0.5rem;
    color: var(--primary-text);
}

.last-updated {
    color: var(--secondary-text);
    font-style: italic;
    margin-bottom: 1rem;
}

/* Navigation Links */
.nav-link,
.education-link {
    color: var(--primary-text);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.nav-link:hover,
.education-link:hover {
    background: var(--hover-background);
    color: var(--accent-action);
    transform: translateY(-1px);
}

.nav-link.active {
    background: var(--hover-background);
    color: var(--accent-action);
    font-weight: 600;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    background: var(--input-background);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-text);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--input-background);
    color: var(--primary-text);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-action);
}

.submit-button {
    background: linear-gradient(135deg, var(--accent-action), #0056d3);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.submit-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

.submit-button:disabled:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

#form-feedback {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background-color: #e6ffe6;
    border: 1px solid #b2d8b2;
    color: #2d662d;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-note {
    color: var(--secondary-text);
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* Generator Feedback */
#generator-feedback {
    display: none;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.4;
    animation: slideIn 0.3s ease-out;
}

/* Trust Section Styles */
.trust-section {
    margin: 3rem 0;
    padding: 2.5rem 0;
    background: linear-gradient(135deg, var(--trust-bg-start, #f8fffe), var(--trust-bg-end, #e6fff9));
    border-radius: 20px;
    border: 1px solid var(--trust-border, rgba(34, 197, 94, 0.1));
}

.trust-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.trust-heading {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 2rem;
    position: relative;
}

.trust-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-action);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.trust-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 0;
}

.trust-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--trust-feature-bg, rgba(255, 255, 255, 0.8));
    border-radius: 16px;
    border: 1px solid var(--trust-feature-border, rgba(34, 197, 94, 0.15));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trust-feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.15);
}

.trust-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--trust-icon-bg, rgba(34, 197, 94, 0.1));
    border-radius: 12px;
    color: var(--trust-icon-color, #059669);
}

.trust-content {
    flex: 1;
}

.trust-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-text);
    margin: 0 0 0.5rem 0;
}

.trust-description {
    font-size: 0.95rem;
    color: var(--secondary-text);
    margin: 0;
    line-height: 1.5;
}


/* Dark mode trust section - explicit dark theme */
[data-theme="dark"] .trust-section {
    --trust-bg-start: rgba(6, 78, 59, 0.3);
    --trust-bg-end: rgba(6, 95, 70, 0.2);
    --trust-border: rgba(34, 197, 94, 0.2);
    --trust-feature-bg: rgba(16, 185, 129, 0.05);
    --trust-feature-border: rgba(34, 197, 94, 0.2);
    --trust-icon-bg: rgba(34, 197, 94, 0.15);
    --trust-icon-color: #10b981;
}

/* Dark mode trust section - system preference (auto theme) */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .trust-section {
        --trust-bg-start: rgba(6, 78, 59, 0.3);
        --trust-bg-end: rgba(6, 95, 70, 0.2);
        --trust-border: rgba(34, 197, 94, 0.2);
        --trust-feature-bg: rgba(16, 185, 129, 0.05);
        --trust-feature-border: rgba(34, 197, 94, 0.2);
        --trust-icon-bg: rgba(34, 197, 94, 0.15);
        --trust-icon-color: #10b981;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .trust-container {
        padding: 0 1rem;
    }
    
    .trust-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .trust-feature {
        padding: 1.25rem;
    }
    
    .trust-heading {
        font-size: 1.5rem;
    }
}

/* FAQ Styles */
.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    color: var(--primary-text);
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: var(--primary-text);
    line-height: 1.6;
}

/* Blog Styles */
.page-intro {
    color: var(--secondary-text);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.blog-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px var(--shadow-strong);
    border-color: var(--accent-action);
}

.blog-card.featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--accent-action), #0056d3);
    color: white;
    position: relative;
    overflow: hidden;
}

.blog-card.featured::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.blog-card.featured h2 a,
.blog-card.featured p,
.blog-card.featured .blog-meta {
    color: white;
}

.blog-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--hover-background);
    color: var(--accent-action);
    border-radius: 20px;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.blog-card.featured .blog-category {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.blog-card h2,
.blog-card h3 {
    margin-bottom: 0.75rem;
}

.blog-card a {
    color: var(--primary-text);
    text-decoration: none;
}

.blog-card a:hover {
    color: var(--accent-action);
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--secondary-text);
}

.read-time {
    color: var(--secondary-text);
}

.blog-categories {
    margin: 3rem 0;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.category-link {
    padding: 0.5rem 1rem;
    background: var(--input-background);
    color: var(--primary-text);
    text-decoration: none;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.category-link:hover {
    background: var(--accent-action);
    color: white;
    border-color: var(--accent-action);
}

/* Newsletter */
.newsletter-signup {
    background: var(--input-background);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 1rem auto 0;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-form button {
    background: var(--accent-action);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--hover-accent);
}

/* Password Strength Checker */
.strength-checker-container {
    margin: 3rem auto;
    padding: 3rem;
    background: var(--surface);
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow);
    border: 1px solid var(--border-color);
    max-width: 1200px;
}

.section-description {
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
}

.strength-checker {
    max-width: 600px;
    margin: 0 auto;
}

.checker-input-wrapper {
    position: relative;
    display: flex;
    gap: 0.5rem;
}

.strength-check-input {
    flex: 1;
    padding: 1rem;
    font-size: 1.1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-background);
    color: var(--primary-text);
}

.visibility-toggle {
    padding: 0.75rem;
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.visibility-toggle:hover {
    border-color: var(--accent-action);
}

.eye-icon,
.eye-off-icon {
    display: block;
}

.hidden {
    display: none !important;
}

.strength-analysis {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--input-background);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.analysis-score {
    font-size: 1.25rem;
    font-weight: 600;
}

.strength-meter {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.analysis-details {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
}

.detail-label {
    color: var(--secondary-text);
}

.detail-value {
    font-weight: 600;
    color: var(--primary-text);
}

.suggestions {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.suggestions h4 {
    margin-bottom: 0.75rem;
    color: var(--primary-text);
}

.suggestions ul {
    margin-left: 1.5rem;
}

.suggestions li {
    margin-bottom: 0.5rem;
    color: var(--primary-text);
}

/* Quiz Styles */
.quiz-container {
    margin: 3rem auto;
    padding: 3rem;
    background: var(--surface);
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow);
    border: 1px solid var(--border-color);
    max-width: 1200px;
}

.quiz {
    max-width: 600px;
    margin: 0 auto;
}

.quiz-button {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--accent-action), #0056d3);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.quiz-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.quiz-content {
    padding: 1.5rem 0;
}

.quiz-progress {
    margin-bottom: 1.5rem;
}

.progress-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--accent-action);
    transition: width 0.3s ease;
}

.quiz-question {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-text);
}

.quiz-options {
    display: grid;
    gap: 1rem;
}

.quiz-option {
    padding: 1rem;
    background: var(--input-background);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.quiz-option:hover {
    border-color: var(--accent-action);
    background: var(--hover-background);
}

.quiz-option.selected {
    border-color: var(--accent-action);
    background: var(--hover-background);
}

.quiz-option.correct {
    border-color: var(--strength-strong);
    background: rgba(25, 135, 84, 0.1);
}

.quiz-option.incorrect {
    border-color: var(--strength-weak);
    background: rgba(220, 53, 69, 0.1);
}

.quiz-feedback {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
}

.quiz-feedback.correct {
    background: rgba(25, 135, 84, 0.1);
    color: var(--strength-strong);
}

.quiz-feedback.incorrect {
    background: rgba(220, 53, 69, 0.1);
    color: var(--strength-weak);
}

.quiz-results {
    text-align: center;
    padding: 2rem;
}

.quiz-score {
    font-size: 3rem;
    font-weight: 600;
    color: var(--accent-action);
    margin: 1rem 0;
}

.quiz-rating {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.quiz-recommendations {
    text-align: left;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--input-background);
    border-radius: 8px;
}

/* Footer Navigation */
.footer-content {
    text-align: center;
    padding: 2rem 1rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.footer-nav a {
    color: var(--secondary-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--accent-action);
}

/* Blog Article Styles */
.blog-article {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--secondary-text);
}

.article-category {
    color: var(--accent-action);
    font-weight: 500;
}

.article-intro {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--secondary-text);
    margin-top: 1rem;
}

.blog-article h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.blog-article h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 1.875rem;
}

.blog-article h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.375rem;
}

.blog-article p {
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.blog-article ul,
.blog-article ol {
    margin-bottom: 1.5rem;
    margin-left: 2rem;
}

.blog-article li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

/* Info and Warning Boxes */
.info-box,
.warning-box {
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.info-box {
    background: var(--hover-background);
    border-left: 4px solid var(--accent-action);
}

.warning-box {
    background: rgba(220, 53, 69, 0.1);
    border-left: 4px solid var(--strength-weak);
}

.info-box h3,
.warning-box h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--input-background);
    font-weight: 600;
}

.comparison-table tr:hover {
    background: var(--hover-background);
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.option-card {
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.option-card h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--accent-action);
}

.option-card ul {
    margin-left: 1.25rem;
}

/* Article Footer */
.article-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.article-nav {
    margin-bottom: 2rem;
}

.back-to-blog {
    color: var(--accent-action);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-to-blog:hover {
    transform: translateX(-4px);
}

.article-cta {
    background: linear-gradient(135deg, var(--hover-background), var(--input-background));
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.article-cta h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-action), #0056d3);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

/* Additional responsive improvements */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .page-content {
        padding: 2rem 1rem;
    }
    
    .content-container {
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }
    
    .strength-checker-container,
    .quiz-container {
        padding: 2rem 1.5rem;
        margin: 2rem auto;
        border-radius: 12px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .category-list {
        justify-content: center;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .blog-card {
        padding: 1.5rem;
    }
    
    .section-heading {
        font-size: 1.5rem;
    }
    
    #theme-text {
        display: none;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        gap: 1rem;
    }
}