/* Custom Styles for Free Online Password Generator - AhteVerse */

.tool-page {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
}

.tool-content {
    padding: var(--space-xl) 0;
    margin-top: 20px;
}

/* Tool Header */
.tool-header {
    margin-bottom: var(--space-xl);
}

.tool-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.tool-title span {
    color: var(--magenta);
    text-shadow: var(--glow-magenta);
}

.tool-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Workspace Grid Layout */
.workspace-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}

/* Config & Preview Panels */
.config-panel {
    padding: var(--space-lg);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    box-shadow: var(--shadow-md);
}

.preview-panel-column {
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.preview-card-sticky {
    padding: var(--space-lg);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.panel-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    padding-bottom: 15px;
    margin-bottom: 5px;
}

/* Config Panel Sections */
.panel-section {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--space-lg);
}

.panel-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

/* Inputs & Slider Row */
.input-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.slider-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slider-badge {
    background: rgba(255, 0, 255, 0.15);
    color: var(--magenta);
    border: 1px solid var(--magenta);
    padding: 2px 10px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
}

.length-slider {
    width: 100%;
    accent-color: var(--magenta);
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    cursor: pointer;
    margin-top: 5px;
}

/* Checkbox Lists */
.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--magenta);
    cursor: pointer;
}

.checkbox-group label {
    text-transform: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    color: var(--text-secondary);
}

select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px var(--space-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    width: 100%;
    outline: none;
    transition: all 0.3s ease;
}

select:focus {
    border-color: var(--magenta);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.15);
}

/* Primary Password Display Card */
.output-display-container {
    width: 100%;
    margin-top: var(--space-md);
}

.password-box-wrapper {
    display: flex;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    height: 52px;
    width: 100%;
    align-items: center;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.3);
}

#generated-password {
    border: none !important;
    background: none !important;
    padding: 0 16px !important;
    height: 100%;
    font-family: monospace;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    text-align: center;
    text-overflow: ellipsis;
    width: calc(100% - 50px);
}

.copy-btn {
    border: none;
    background: rgba(255, 255, 255, 0.03);
    border-left: 1px solid var(--border-color);
    width: 50px;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: var(--text-primary);
}

.copy-btn:hover .icon {
    filter: invert(1);
}

.copy-btn .icon {
    font-size: 1.25rem;
}

/* Strength Meter */
.strength-meter-container {
    margin-top: var(--space-md);
}

.meter-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

#strength-text {
    text-transform: uppercase;
    font-weight: 700;
}

.strength-bar-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.strength-bar-fill {
    height: 100%;
    width: 0%;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 3px;
}

/* Strength Colors */
.strength-bar-fill.weak { background: var(--orange); width: 25%; }
.strength-bar-fill.medium { background: var(--yellow); width: 50%; }
.strength-bar-fill.strong { background: #38ef7d; width: 75%; }
.strength-bar-fill.unbreakable { background: var(--electric-blue); width: 100%; box-shadow: 0 0 8px var(--electric-blue); }

/* Bulk Mode List */
.bulk-passwords-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 10px;
    margin-top: var(--space-xs);
}

.bulk-password-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 6px;
}

.bulk-password-item span {
    font-family: monospace;
    font-weight: bold;
    font-size: 0.95rem;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 80%;
}

.bulk-copy-btn {
    background: none;
    border: none;
    color: var(--electric-blue);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 6px;
    text-transform: uppercase;
}

.bulk-copy-btn:hover {
    color: var(--magenta);
    text-decoration: underline;
}

/* Action Buttons */
.action-btn {
    width: 100%;
    padding: 14px var(--space-lg);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.primary-glow {
    background: linear-gradient(135deg, var(--magenta), var(--electric-blue));
    color: #FFFFFF;
    border: none;
    box-shadow: var(--shadow-sm);
}

.primary-glow:hover {
    box-shadow: var(--glow-blue);
    transform: translateY(-2px);
}

/* SEO Content Section */
.qr-seo-section {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.seo-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.seo-intro-card {
    padding: var(--space-lg);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.seo-icon-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.seo-card-icon {
    font-size: 1.5rem;
}

.seo-icon-title h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    margin: 0;
}

.seo-intro-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* Step by Step Guide */
.seo-guide-container {
    padding: var(--space-xl);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

.seo-section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: var(--space-xl);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--space-md);
}

.guide-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.guide-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.step-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--magenta), var(--electric-blue));
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
    box-shadow: var(--glow-blue);
}

.guide-step h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guide-step p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

/* QR Use Cases SEO styling */
.seo-usecases-container {
    padding: var(--space-xl);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

.usecases-intro-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    text-align: center;
}

.usecases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.usecase-card {
    padding: var(--space-lg);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.usecase-card:hover {
    border-color: rgba(255, 0, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-2px);
}

.usecase-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.usecase-icon {
    font-size: 1.4rem;
}

.usecase-header h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--electric-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.usecase-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.usecase-bullets {
    margin: 0;
    padding-left: 20px;
    list-style-type: square;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
}

.usecase-bullets li {
    line-height: 1.5;
}

.usecase-bullets li strong {
    color: var(--text-primary);
}

.usecase-bullets code {
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    color: var(--magenta);
}

/* Comparison Section */
.seo-tech-comparison {
    padding: var(--space-xl);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

.comparison-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.tech-icon {
    font-size: 1.5rem;
}

.comparison-header h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.seo-tech-comparison > p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.tech-card {
    padding: var(--space-md);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
}

.tech-card h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--electric-blue);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
}

.tech-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* FAQ Accordion Section */
.seo-faq-container {
    padding: var(--space-xl);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

.faq-accordion-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.faq-details {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.01);
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-details:hover,
.faq-details[open] {
    border-color: rgba(255, 0, 255, 0.2);
    background: rgba(255, 255, 255, 0.02);
}

.faq-summary {
    padding: 16px var(--space-md);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 40px;
    user-select: none;
}

.faq-summary::after {
    content: "▼";
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.7;
}

.faq-details[open] .faq-summary::after {
    transform: translateY(-50%) rotate(180deg);
    color: var(--magenta);
}

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-answer {
    padding: var(--space-md);
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
}

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

.faq-answer p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* RESPONSIVE LAYOUT MEDIA QUERIES */
@media (max-width: 1024px) {
    .workspace-grid {
        grid-template-columns: 1fr;
    }

    .preview-panel-column {
        position: static;
    }

    .preview-card-sticky {
        max-width: 450px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 900px) {
    .seo-intro-grid,
    .tech-grid,
    .usecases-grid {
        grid-template-columns: 1fr;
    }

    .guide-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .guide-steps-grid {
        grid-template-columns: 1fr;
    }
}
