/* style.css - Higher contrast / heavier borders for clarity
   Preserves existing selectors and layout rules but increases contrast,
   makes borders and shadows stronger, and improves readability.
*/

/* Body & base text */
body {
    background: #eef6ef; /* subtle, almost neutral green background */
    margin: 0;
    color: #0e2a1f; /* deep dark green for maximum legibility */
    /* font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, Arial, sans-serif; */
    font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

header, footer {
    padding: 12px 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* Main container */
.container {
    max-width: 900px;
    margin: 32px auto;
    padding: 22px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid rgba(17, 55, 36, 0.12); /* stronger edge */
    /* stronger shadow for clear elevation */
    box-shadow: 0 10px 30px rgba(12, 34, 22, 0.09);
}

/* Headings */
h1 {
    color: #1f5a3d; /* deeper natural green */
    margin: 0 0 12px 0;
    font-weight: 700;
    font-size: 1.7rem;
    letter-spacing: -0.2px;
}

/* Forms and inputs */
label,
input[type="text"],
input[type="email"],
textarea {
    display: block;
    width: 100%;
    padding: 11px;
    margin: 8px 0;
    border-radius: 8px;
    border: 1px solid #b8d9c0; /* more visible input border */
    background: #fbfff9;
    color: #0e2a1f;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

/* Focused inputs — stronger outline */
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: #3f8b55;
    box-shadow: 0 0 0 5px rgba(63, 139, 85, 0.14);
}

/* Buttons — bolder and clearer */
button {
    background: linear-gradient(180deg, #215f3a 0%, #18482b 100%); /* deep green gradient */
    border: 1px solid rgba(10, 36, 25, 0.25);
    padding: 10px 16px;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.98rem;
    box-shadow: 0 6px 14px rgba(17, 44, 30, 0.16);
    transition: transform 0.06s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

/* Button hover/focus — pronounced */
button:hover,
button:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 45, 30, 0.22);
    opacity: 0.98;
}

/* Thread area */
.thread {
    margin: 16px 0;
}

/* Comments — heavier borders & more contrast
   Each comment is now a clearly separated card with solid border and pronounced shadow.
*/
.comment {
    background: #ffffff; /* white for highest contrast on text */
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 14px;
    border: 2px solid #b9d8bf; /* thicker soft green border */
    box-shadow: 0 8px 22px rgba(12, 34, 22, 0.07); /* stronger shadow for separation */
    transition: transform 0.08s ease, box-shadow 0.12s ease;
}

/* Slight lift on hover (desktop) for clarity */
.comment:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(12, 34, 22, 0.10);
}

/* Owner comment variant — stronger background and border */
.comment.owner {
    background: #f3f9f0; /* gentle green tint */
    border: 2px solid #8fc07a; /* prominent green border for owner posts */
    box-shadow: 0 10px 26px rgba(22, 64, 36, 0.08);
}

/* Meta information above each comment */
.meta {
    font-size: 0.95em;
    color: #113726; /* darker green for strong contrast in meta */
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Timestamp style — more visible but muted */
.time {
    margin-left: 8px;
    color: #556c5f;
    /* font-size: 0.86em; */
}

/* Admin badge — stronger background */
.badge {
    background: #18482b;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.80em;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.06);
}

/* Message body text in comments */
.body {
    color: #0e2a1f; /* primary text color for best legibility */
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 1rem;
    line-height: 1.7;
}

/* Error box — keep visible and clear */
.errors {
    background: #fff3f3;
    border: 1px solid #f0bebe;
    padding: 12px;
    border-radius: 8px;
    color: #7a2b2b;
    margin: 12px 0;
    font-weight: 600;
}

/* Thread list (admin) — clearer table borders */
.thread-list {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e2efe0;
}

.thread-list thead th {
    text-align: left;
    padding: 12px 10px;
    color: #163f2e;
    font-size: 0.95rem;
    border-bottom: 2px solid #e8f3e9;
    background: linear-gradient(180deg, #f7fbf7 0%, #f1f7f1 100%);
}

.thread-list tbody td {
    padding: 12px 10px;
    border-bottom: 1px solid #f1f6f1;
    vertical-align: middle;
    color: #123824;
}

/* Muted helper text */
.muted {
    color: #3d5b4a;
    font-size: smaller;
}

/* small meta used in admin view for ip/host/ua — slightly heavier contrast */
.smallmeta {
    font-size: 0.84em;
    color: #416053;
    margin-top: 10px;
}

/* Owner info box at top of thread — more prominent */
.owner-info {
    background: #eaf7ea;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid #cfe9d1;
    color: #153e2b;
    font-weight: 600;
}

/* Links use solid green and stand out */
a {
    color: #18482b;
    text-decoration: underline;
    /* font-weight: 600; */
}

a:hover {
    color: #0f3a27;
}

/* Accessibility: reduce motion if preferred */
@media (prefers-reduced-motion: reduce) {
    button, input, textarea, .comment {
        transition: none !important;
    }
}

/* Responsiveness */
@media (max-width: 600px) {
    .container {
        margin: 12px;
        padding: 14px;
    }
    h1 { font-size: 1.35rem; }
    .meta { font-size: 0.92em; }
    .body { font-size: 0.98rem; }
    .thread-list thead th, .thread-list tbody td {
        padding: 10px 8px;
    }
}

/* End of file */
