/* ===== Material Symbols ===== */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ===== Template Design Utilities ===== */
.gradient-bg {
    background: linear-gradient(135deg, #000000, #0f172a, #581c87);
}

.gradient-text {
    background: linear-gradient(to right, #ff00ff, #8a2be2, #00bfff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.headline-bg {
    background-color: rgba(0, 0, 0, 0.7);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1.gradient-text.headline-bg {
    text-shadow: none;
}

/* ===== Section Cards ===== */
.tool-card,
.bg-surface-container-low {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.tool-card:hover,
.bg-surface-container-low.glow-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: rgba(138, 43, 226, 0.3);
}

.glow-box {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

/* ===== FAQ Accordion ===== */
.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    background: #f9fafb;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(138, 43, 226, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-icon {
    transform: rotate(0deg);
}

.faq-answer {
    transition: max-height 0.3s ease;
}

/* ===== Share & Toast ===== */
.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
    font-size: 18px;
    font-weight: 600;
}

.share-btn:hover {
    background: #8b5cf6;
    color: #ffffff;
    border-color: #8b5cf6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.share-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
}

.share-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1f2937;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 100;
}

.share-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== Collapse Navigation ===== */
.collapse-trigger {
    cursor: pointer;
    user-select: none;
}

.collapse-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.collapse-nav.open {
    max-height: 600px;
}

.collapse-arrow {
    transition: transform 0.3s ease;
}

.collapse-arrow.open {
    transform: rotate(180deg);
}

/* ===== Body Background ===== */
body {
    background-color: #f5f5f7;
}

/* ===== Mobile Nav ===== */
@media (max-width: 767px) {
    .hamburger-btn {
        position: absolute;
        left: 16px;
    }
    .hamburger-spacer {
        display: inline-block;
        width: 40px;
    }
}

/* ===== Spacing Utilities ===== */
.px-margin-mobile { padding-left: 16px; padding-right: 16px; }
.px-margin-desktop { padding-left: 32px; padding-right: 32px; }
.p-sm { padding: 8px; }
.p-md { padding: 20px; }
.p-lg { padding: 28px; }
.p-xl { padding: 32px; }
.py-sm { padding-top: 12px; padding-bottom: 12px; }
.py-md { padding-top: 16px; padding-bottom: 16px; }
.py-lg { padding-top: 24px; padding-bottom: 24px; }
.py-xl { padding-top: 32px; padding-bottom: 32px; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.gap-xl { gap: 32px; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }
.mt-xl { margin-top: 32px; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 24px; }
.mb-xl { margin-bottom: 32px; }
.pl-lg { padding-left: 24px; }
.font-mono { font-family: 'JetBrains Mono', monospace; }
.text-foreground { color: #111827; }
.border-border { border-color: #e5e7eb; }
.space-y-4 > * + * { margin-top: 16px; }
.space-y-8 > * + * { margin-top: 32px; }

/* ==============================
   PASSWORD STRENGTH CHECKER
   ============================== */

/* Password Input Wrapper */
.pwd-input-wrap {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
}

.pwd-input {
    width: 100%;
    padding: 18px 56px 18px 24px;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    background: #ffffff;
    font-size: 18px;
    font-family: 'JetBrains Mono', monospace;
    color: #111827;
    outline: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pwd-input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
}

.pwd-input::placeholder {
    color: #9ca3af;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
}

.pwd-toggle-btn {
    position: absolute;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pwd-toggle-btn:hover {
    color: #6b7280;
    background: #f3f4f6;
}

/* Strength Bar Container */
.pwd-bar-wrap {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

.pwd-bar-track {
    width: 100%;
    height: 10px;
    background: #f3f4f6;
    border-radius: 5px;
    overflow: hidden;
}

.pwd-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.35s ease, background 0.35s ease;
    width: 0%;
}

.pwd-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.pwd-grade {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 8px;
    display: inline-block;
}

.pwd-entropy {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    font-family: 'JetBrains Mono', monospace;
}

/* Grade colors — reused from old design */
.grade-excellent { background: #dcfce7; color: #166534; }
.grade-good { background: #dbeafe; color: #1e40af; }
.grade-moderate { background: #fef3c7; color: #92400e; }
.grade-significant { background: #fed7aa; color: #9a3412; }
.grade-severe { background: #fecaca; color: #991b1b; }

/* Bar fill gradient variants */
.pwd-bar-fill.grade-excellent { background: linear-gradient(90deg, #22c55e, #16a34a); }
.pwd-bar-fill.grade-good { background: linear-gradient(90deg, #3b82f6, #2563eb); }
.pwd-bar-fill.grade-moderate { background: linear-gradient(90deg, #f59e0b, #d97706); }
.pwd-bar-fill.grade-significant { background: linear-gradient(90deg, #f97316, #ea580c); }
.pwd-bar-fill.grade-severe { background: linear-gradient(90deg, #ef4444, #dc2626); }

/* ==============================
   CRACK TIME CARDS
   ============================== */
.crack-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .crack-cards-grid {
        grid-template-columns: 1fr;
    }
}

.crack-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.crack-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: rgba(138, 43, 226, 0.3);
}

.crack-card-icon {
    font-size: 28px !important;
    color: #8b5cf6;
    margin-bottom: 8px;
}

.crack-card-label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.crack-card-time {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    font-family: 'JetBrains Mono', monospace;
}

.crack-card-sub {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

/* ==============================
   SUGGESTIONS LIST
   ============================== */
.suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

.suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    font-size: 14px;
    color: #991b1b;
    line-height: 1.5;
}

.suggestion-item.suggestion-good {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.suggestion-icon {
    font-size: 20px !important;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ==============================
   PASSWORD GENERATOR
   ============================== */
.gen-section {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

.gen-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.gen-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gen-slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gen-slider-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.gen-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    outline: none;
    cursor: pointer;
}

.gen-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #8b5cf6;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.gen-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #8b5cf6;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.gen-length-val {
    font-size: 21px;
    font-weight: 700;
    color: #7c3aed;
    font-family: 'JetBrains Mono', monospace;
    min-width: 32px;
    text-align: right;
}

.gen-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gen-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    background: #f9fafb;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.gen-checkbox-label:hover {
    border-color: #8b5cf6;
    background: #f5f3ff;
}

.gen-checkbox-label:has(input:checked) {
    border-color: #7c3aed;
    background: #ede9fe;
    color: #5b21b6;
}

.gen-checkbox-label input[type="checkbox"] {
    accent-color: #7c3aed;
    width: 16px;
    height: 16px;
}

.gen-output-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gen-output {
    flex: 1;
    padding: 14px 18px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    background: #f9fafb;
    font-size: 16px;
    font-family: 'JetBrains Mono', monospace;
    color: #111827;
    outline: none;
    cursor: text;
    transition: all 0.2s ease;
}

.gen-output:focus {
    border-color: #8b5cf6;
    background: #ffffff;
}

.gen-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    border-radius: 12px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.gen-refresh-btn {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #ffffff;
}

.gen-refresh-btn:hover {
    background: linear-gradient(135deg, #6d28d9, #9333ea);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.gen-copy-btn {
    background: #f3f4f6;
    color: #6b7280;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
}

.gen-copy-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

@media (max-width: 719px) {
    .gen-output-row {
        flex-wrap: wrap;
        justify-content: center;
    }
    .gen-output {
        flex: 1 1 100%;
        min-width: 0;
    }
    .gen-refresh-btn {
        flex: 1 1 auto;
        min-width: 120px;
        justify-content: center;
    }
    .gen-copy-btn {
        flex: 0 0 48px;
    }
}

/* ==============================
   SECTION HEADERS
   ============================== */
.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #4c1d95;
    text-align: center;
    margin-bottom: 4px;
}

.section-subtitle {
    font-size: 13px;
    color: #9ca3af;
    text-align: center;
    margin-bottom: 16px;
}

/* ==============================
   TOOLS GRID (team.php ecosystem)
   ============================== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

@media (max-width: 767px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tool-item {
    display: flex;
    flex-direction: column;
}

.tool-item > a.tool-card {
    flex: 1;
    transition: all 0.3s ease;
}

.tool-item > a.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: rgba(138, 43, 226, 0.3);
}

.tool-desc {
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.full-width {
    width: 100%;
    position: relative;
}
