/* === Word History Section Styles === */

/* Header */
.wh-header {
    margin-bottom: 30px;
}

.wh-author-block {
    display: flex;
    align-items: center;
    gap: 25px;
    justify-content: center;
}

.wh-author-photo {
    width: 120px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

.wh-author-info h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 5px;
}

.wh-subtitle {
    color: #888;
    font-size: 16px;
    margin-bottom: 3px;
}

.wh-author-name {
    color: #555;
    font-size: 15px;
    margin: 0;
}

/* Index table links */
#wordhistory_table a {
    color: #0066cc;
    text-decoration: none;
}

#wordhistory_table a:hover {
    text-decoration: underline;
}

/* === Article page === */

.wh-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px 20px;
}

.wh-article-header h1 {
    font-size: 26px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.wh-meta {
    color: #999;
    font-size: 13px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.wh-updated {
    color: #bbb;
    font-style: italic;
}

.wh-content {
    font-size: 16px;
    line-height: 1.75;
    color: #333;
}

.wh-content p {
    margin-bottom: 1.1em;
}

.wh-content img {
    max-width: 100%;
    height: auto;
}

/* === Navigation between posts === */

.wh-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 18px;
    border-top: 1px solid #eee;
}

.wh-nav a {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
}

.wh-nav a:hover {
    text-decoration: underline;
}

.wh-nav-prev {
    text-align: left;
    flex: 1;
}

.wh-nav-index {
    text-align: center;
    flex: 0;
    white-space: nowrap;
    margin: 0 20px;
}

.wh-nav-next {
    text-align: right;
    flex: 1;
}

/* === Copyright === */

.wh-copyright {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 14px;
}

/* === Admin tools === */

.wh-admin-tools {
    margin-top: 30px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

.wh-admin-tools a {
    margin-right: 8px;
}

/* === Edit/Create form === */

.wh-form-container {
    max-width: 900px;
    margin: 0 auto;
}

.wh-form-container h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

.wh-form-container .form-group {
    margin-bottom: 18px;
}

.wh-form-container label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

/* === Delete confirmation === */

.wh-delete-container {
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
}

.wh-delete-container h2 {
    margin-bottom: 20px;
}

.wh-delete-container p {
    margin-bottom: 25px;
    font-size: 16px;
}

.wh-delete-container .btn {
    margin: 0 5px;
}
