/* Minimal blog styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.8;
    color: #333;
    background: #fff;
    max-width: 780px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

header {
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2.2rem;
    color: #1a1a1a;
    margin-bottom: 0.3rem;
}

header .meta {
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
}

article h2 {
    font-size: 1.5rem;
    color: #2c2c2c;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

article h3 {
    font-size: 1.2rem;
    color: #444;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

article p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

article img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
}

blockquote {
    border-left: 4px solid #ddd;
    padding: 0.5rem 1rem;
    margin: 1.2rem 0;
    color: #555;
    font-style: italic;
    background: #fafafa;
}

.sidebar {
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1rem 1.2rem;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.sidebar h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #555;
}

.cipher-block {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.8rem 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    word-break: break-all;
    margin: 0.5rem 0;
}

code {
    background: #f4f4f4;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9rem;
}

footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    color: #999;
    font-size: 0.85rem;
    text-align: center;
}

/* Results page */
.results-header {
    text-align: center;
    margin-bottom: 2rem;
}

.results-header h1 {
    font-size: 2rem;
    color: #1a1a1a;
}

.results-header p {
    color: #666;
    margin-top: 0.5rem;
}

.score-box {
    background: #f0f7ff;
    border: 2px solid #4a90d9;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.score-box .score {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2a6cb6;
}

.score-box .label {
    color: #666;
    font-size: 0.95rem;
}

.technique-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

.technique-card.detected {
    border-color: #e74c3c;
    background: #fdf2f2;
}

.technique-card.safe {
    border-color: #27ae60;
    background: #f2fdf5;
}

.technique-card h3 {
    margin-top: 0;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.technique-card .difficulty {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

.difficulty.easy { background: #d4edda; color: #155724; }
.difficulty.medium { background: #fff3cd; color: #856404; }
.difficulty.hard { background: #f8d7da; color: #721c24; }

.technique-card .canary {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #c0392b;
}

.technique-card .method {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.technique-card .status {
    font-weight: bold;
    margin-top: 0.5rem;
}

.status.triggered { color: #e74c3c; }
.status.not-triggered { color: #27ae60; }

.check-form {
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.check-form h2 {
    margin-top: 0;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.check-form textarea {
    width: 100%;
    height: 120px;
    padding: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    margin-bottom: 0.8rem;
}

.check-form button {
    background: #4a90d9;
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.check-form button:hover {
    background: #357abd;
}

.api-note {
    background: #fff8e1;
    border: 1px solid #f0d060;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.api-note code {
    background: #f4f4f4;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
}
