/* ===== RESET-ish ===== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #fff;
    color: #1a1a1a;
    margin: 0;
    padding: 20px;
}

.home-container {
    max-width: 700px;
}

.subtitle {
    color: #666;
    margin-bottom: 20px;
}

.home-actions a {
    display: inline-block;
    margin-right: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

.primary-btn {
    background: #4CAF50;
    color: white;
}

.secondary-btn {
    background: #f0f4f8;
    color: #333;
}

/* ===== HEADER ===== */
h2 {
    display: flex;
    align-items: center;
    font-weight: 200;
    gap: 10px;
    margin-bottom: 15px;
}

/* ===== BUTTONS ===== */
button {
    background: #ffffff;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s ease;
}

button:hover {
    background: #f0f4f8;
}

.small {
    font-size: 11px;
    color: #aaa;
}

/* ===== TAGS ===== */
.tag {
    display: inline-block;
    padding: 2px 4px;
    margin: 2px;
    background: lightblue;
    color: black;
    border: 1px solid #c8e6c9;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 500;
}

.tag-suggestions {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    max-width: 200px;
    position: absolute;
    z-index: 10;
}

.tag-suggestions div.active {
    background: #e0e7ff;
}

.tag-suggestions div {
    padding: 5px 8px;
    cursor: pointer;
}

.tag-suggestions div:hover {
    background: #f0f4f8;
}

.tag .remove {
    margin-left: 6px;
    cursor: pointer;
    opacity: 0.6;
}

.tag .remove:hover {
    opacity: 1;
    color: #c62828;
}

.tag-list {
    max-width: 700px;
}

.tag-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.tag-row a {
    font-weight: 500;
    text-decoration: none;
    color: #333;
}

.tag-row a:hover {
    color: #4CAF50;
}

.tag-count {
    font-size: 12px;
    color: #888;
}

.tag-view-btn {
    font-size: 12px;
    text-decoration: none;
    padding: 3px 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    background: #f5f5f5;
}

.tag-view-btn:hover {
    background: #eaeaea;
}

/* default */
.tag {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
}

/* types */
.tag-archetype {
    background: #ede7f6;
    color: #5e35b1;
}


.tag-emotion {
    background: #fdecea;
    color: #c62828;
}

.tag-character {
    background: #e3f2fd;
    color: #1565c0;
}

.tag-theme {
    background: #e8f5e9;
    color: #2e7d32;
}

.tag-object {
    background: #fff8e1;
    color: #ef6c00;
}

.tag-none {
    background: #f1f1f1;
    color: #666;
}

/* ===== FORM BOX ===== */
.form-box {
    background: #f7f9fb;
    border: 1px solid #e1e4e8;
    border-radius: 10px;
    padding: 15px;
    max-width: 700px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* ===== TIMBER BOX ===== */
.timber-box {
    background: #f7f9fb;
    padding: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}
.timber[data-tagged="false"] {
    border-left: 3px red solid;
}
.timber[data-tagged="true"] {
    border-left: 3px #2596be solid;
}

.timber {
    transition: all 0.15s ease;
}

.timber:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* ===== TIMBER GRID ===== */
.timber-grid {
    column-count: 2;
    column-gap: 20px;
}

.timber {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
}

/* ===== TEXTAREA ===== */
textarea {
    width: 95%;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 10px;
    font-size: 14px;
    resize: vertical;
    outline: none;
}

textarea:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76,175,80,0.15);
}

/* ===== INPUT ===== */
input[type="text"],
input[type="number"] {
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 13px;
    outline: none;
}
input[placeholder="add tags..."] {
    background: #fafafa;
}

input:focus {
    border-color: #4CAF50;
}

/* ===== LABELS ===== */
label {
    font-size: 12px;
    color: #666;
    display: block;
    margin-bottom: 4px;
}

/* ===== SPACING ===== */
.field {
    margin-bottom: 12px;
}

/* ===== FOOTER ===== */
.site-footer {
    margin-top: 40px;
    padding-top: 15px;
    border-top: 1px solid #e1e4e8;
    font-size: 12px;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    margin-right: 10px;
    text-decoration: none;
    color: #4CAF50;
    font-weight: 500;
}

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

.footer-credit {
    opacity: 0.8;
}

.footer-credit strong {
    color: #4CAF50;
}

.tagline {
    display: block;
    font-size: 11px;
    opacity: 0.7;
}

/* ===== HEADER NAV ===== */
.site-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #e1e4e8;
    align-items: center;
    margin-bottom: 20px;
}

.logo {
    height: 90px;
}

.nav-right a {
    margin-left: 15px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.nav-right a:hover {
    color: #4CAF50;
}

.pagination {
    padding: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    background: #2596be;
    color: white;
}

.pagination a {
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
}

.pagination a:hover {
    background: #f0f4f8;
}