/* Password Guessing Game Styles */
.tool-container {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.tool-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tool-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

.game-content {
    max-width: 900px;
    margin: 0 auto 4rem;
}

.input-section {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

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

.input-group {
    display: flex;
    margin-bottom: 1rem;
}

.input-group input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px 0 0 8px;
    font-family: 'JetBrains Mono', monospace;
    background: var(--input-bg);
    color: var(--text-primary);
}

.visibility-toggle {
    padding: 0.75rem 1rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background 0.2s;
}

.visibility-toggle:hover {
    background: var(--accent-hover);
}

.start-button {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.start-button:hover {
    background: var(--primary-hover);
}

.simulation-section {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.terminal {
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
}

.terminal-header {
    background: #3c3c3c;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-btn.close {
    background: #ff5f56;
}

.terminal-btn.minimize {
    background: #ffbd2e;
}

.terminal-btn.maximize {
    background: #27ca3f;
}

.terminal-title {
    color: #ccc;
    font-size: 0.9rem;
}

.terminal-content {
    padding: 1rem;
    height: 200px;
    overflow-y: auto;
    color: #00ff00;
    font-size: 0.9rem;
    line-height: 1.5;
}

.terminal-line {
    margin-bottom: 0.25rem;
}

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

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

.progress-bar {
    height: 10px;
    background: var(--bg-secondary);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-card {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.stat-card h3 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.stat-card p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}

.results-section {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    text-align: center;
    display: none;
}

.results-section h2 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.result-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.result-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.result-card p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.try-again-button {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.try-again-button:hover {
    background: var(--primary-hover);
}

.warning-box {
    display: flex;
    align-items: center;
    background: var(--warning-bg);
    padding: 1rem;
    border-radius: 8px;
    color: var(--warning-text);
}

.warning-icon {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.educational-content {
    max-width: 1000px;
    margin: 0 auto;
}

.educational-content h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.educational-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.edu-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.edu-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.edu-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Animation for terminal text */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 1em;
    background: #00ff00;
    vertical-align: middle;
    margin-left: 2px;
    animation: blink 1s infinite;
}