/*
 * SECUREPASS GENERATOR - PROFESSIONAL REDESIGN
 * v11 - Fixed broken strong tag style
 */

/* --- 1. Root Variables & Global Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Professional Color Palette */
    --primary: #0A2540;       /* Deep, trustworthy navy */
    --primary-light: #2c4a6b;
    --success: #059669;       /* Secure green (darker) */
    --success-light: #10B981; /* Secure green (lighter) */
    --secondary: #1E90FF;     /* A clean, "tech" blue for accents */
    
    --bg-body: #F6F9FC;       /* Very light gray background */
    --bg-card: #FFFFFF;       /* Pure white for cards */
    
    --text: #333333;          /* Main text color */
    --text-muted: #6B7280;    /* Lighter text for descriptions */
    --border: #E0E6EB;        /* Subtle border color */

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    zoom: 0.85;
}

/* --- 2. Header & Footer (STYLED HEADER) --- */
header {
    background-color: var(--primary); /* Navy blue background */
    color: white;
    padding: 3rem 2rem; /* More padding */
    text-align: center; /* Center all content */
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
}

.header-container h1 {
    font-size: 2.5rem; /* Large main title */
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.header-container .subtitle {
    font-size: 1.2rem; /* Subtitle text */
    font-weight: 400;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.header-container code {
    background: var(--primary-light);
    color: #fff;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 2.5rem 1rem; /* Added padding */
    margin-top: 3rem;
    opacity: 0.9;
}

.footer-content p {
    margin: 0.25rem 0;
}

/* === FOOTER LINK STYLES === */
.footer-links {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    font-size: 0.95rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-links span {
    opacity: 0.5;
}
/* ============================= */

.footer-tagline {
    opacity: 0.7;
    font-size: 0.9rem;
    margin-top: 1rem; /* Added space */
}

/* --- 3. Main Content & Layout --- */
main {
    flex: 1;
    padding: 2.5rem 1rem; /* More top padding */
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    animation: fadeIn 0.5s ease;
}

/* Main generator section is first, give it more padding */
.generator-section {
    padding: 2.5rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    text-align: center;
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

/* --- 4. Generator Section --- */

.section-intro {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem; /* Spacing before title */
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.category-selector {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2.5rem; /* More space after buttons */
}

.category-btn {
    align-items: center;
    padding: 0.75rem 1.5rem; /* Adjusted padding for text only */
    border: 2px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 110px;
    text-align: center;
}

.category-btn:hover {
    border-color: var(--secondary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.category-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

/* Password Card */
.password-card {
    background-color: var(--bg-body);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.password-label {
    display: block;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.password-display {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

#passwordOutput {
    flex: 1;
    padding: 1rem 1.25rem;
    font-size: 1.4rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--text);
    transition: all 0.3s ease;
}

#passwordOutput:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.2);
}

.copy-btn {
    padding: 1rem 1.5rem; /* More padding for text */
    background-color: var(--success);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem; /* Text button, not icon */
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 80px;
    text-align: center;
}

.copy-btn:hover {
    background-color: var(--success-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.generate-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.generate-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 37, 64, 0.2);
}

/* --- 5. Column Layout (Daily & Pack) --- */
.column-layout {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.daily-section, .pack-section {
    padding: 1.5rem;
    width: 100%;
}

.daily-header {
    margin-bottom: 0.5rem;
    color: var(--primary);
}
.daily-header h3 { font-size: 1.25rem; }

.daily-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.daily-value {
    font-size: 1.3rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--text);
    word-break: break-all;
    background: var(--bg-body);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid var(--border);
    text-align: center;
}

/* Password Pack Section */
.pack-header {
    text-align: center;
    margin-bottom: 1.5rem;
}
.pack-title-wrapper {
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}
.pack-title-wrapper h3 { font-size: 1.25rem; }

.pack-count {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pack-description {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pack-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pack-btn, .copy-all-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.pack-btn {
    background-color: var(--secondary);
    color: white;
}
.pack-btn:hover { background-color: #4aa9ff; }

.copy-all-btn {
    background-color: var(--success);
    color: white;
}
.copy-all-btn:hover { background-color: var(--success-light); }

.pack-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pack-list.active {
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--bg-body);
    border: 1px solid var(--border);
}


.pack-item {
    background: var(--bg-card);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.pack-item:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-sm);
}

.pack-item-password {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    word-break: break-all;
}

.pack-item-copy {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.pack-item-copy:hover { background: var(--primary-light); }


/* --- 6. How It Works Section --- */
.how-it-works-section {
    background: var(--bg-body);
}
.steps-container {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap;
    text-align: center;
}
.step {
    flex-basis: 280px;
}
.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    box-shadow: var(--shadow-md);
}
.step h4 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}


/* --- 7. NEW Content & Feature Sections --- */

/* Basic text content section styling */
.content-section {
    padding: 2rem;
}

/* Style for <ul> lists in new content */
.content-section ul, .content-section ol {
    margin-left: 2rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}
.content-section li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}
.content-section li strong {
    color: var(--text);
}

.content-section li code {
    background: var(--bg-body);
    color: var(--primary);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* General paragraph styling for new sections */
.content-body {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 1.5rem auto; /* Center text and add spacing */
    text-align: left;
}
.content-section h2 + .content-body {
    text-align: center; /* Center the first paragraph */
}

/* === FIX: Replaced broken rule with this new one === */
.content-body.list-heading {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 1rem;
}
/* =================================================== */

.content-section ul + .content-body {
    margin-top: 1.5rem;
    text-align: center;
}

/* Special light blue background for WiFi section */
.wifi-section {
    background-color: var(--bg-body);
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title-wrapper .section-title { margin-bottom: 0.75rem; }
.section-title-wrapper .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 1.5rem;
}

.feature-text {
    flex: 1;
    min-width: 300px;
    text-align: center;
}
.feature-text h3 {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}
.feature-text p {
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

/* === FAQ STYLES === */
.faq-section {
    background: var(--bg-body);
    border-color: var(--border);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background: var(--bg-card);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.faq-item h4 {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

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

.faq-item p strong {
    color: var(--text);
    font-weight: 600;
}

.faq-item p code {
    background: var(--bg-body);
    color: var(--primary);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}


/* --- 8. Notification & Scrollbar --- */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
    z-index: 1000;
    font-weight: 600;
}
@keyframes slideIn {
    from { transform: translateX(400px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.pack-list::-webkit-scrollbar { width: 8px; }
.pack-list::-webkit-scrollbar-track { background: #e9ecef; border-radius: 10px; }
.pack-list::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 10px; }
.pack-list::-webkit-scrollbar-thumb:hover { background: #007BFF; }

/* --- 9. STYLES FOR LEGAL PAGES === */

.legal-content {
    background-color: var(--bg-card);
    padding: 2rem 3rem; /* More padding for text pages */
    max-width: 900px; /* Constrain width for readability */
    margin: 0 auto; /* Center the legal content */
}

.legal-content h3 {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.legal-content p, .legal-content li {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.legal-content ul {
    list-style-type: disc;
    margin-left: 2rem;
}

.legal-content p strong {
    color: var(--text);
}

.legal-updated {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 2rem;
}


/* --- 10. Responsive Design --- */
@media (max-width: 900px) {
    .pack-list {
        max-height: 400px;
    }
    .feature-row {
        gap: 1.5rem;
    }
    
    .header-container h1 { font-size: 2rem; }
    .header-container .subtitle { font-size: 1.1rem; }
}

@media (max-width: 768px) {
    header { padding: 2rem 1.5rem; }

    section { padding: 1.5rem; }
    
    .legal-content { padding: 1.5rem; } /* Less padding on mobile */

    .category-selector { gap: 0.75rem; }
    .category-btn { min-width: 90px; padding: 0.75rem 1rem; }
    
    .password-display { flex-direction: column; }
    #passwordOutput { font-size: 1.2rem; }
    
    .pack-controls { flex-direction: column; }
    
    .steps-container { flex-direction: column; }
}