/* Custom CSS - Comment Theme */
/* WordPress Default Classes -> Bootstrap */

/* Letter Spacing Reset */
* {
    letter-spacing: normal !important;
}

/* ========== Pagination ========== */
.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin: 2rem 0;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    color: #212529;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
}

.page-numbers:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #212529;
}

.page-numbers.current,
.page-numbers:active {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.page-numbers.dots {
    border: none;
    background: transparent;
}

/* ========== Widgets ========== */
.widget {
    margin-bottom: 1.5rem;
}

.widget-title,
.widgettitle {
    font-size: 1.1rem;
    font-weight: 600;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #ffc107;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #212529;
    text-decoration: none;
    transition: color 0.15s;
}

.widget ul li a:hover {
    color: #ffc107;
}

/* Widget Categories Count */
.widget_categories li,
.widget_archive li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ========== Search Form ========== */
.search-form,
.wp-block-search {
    display: flex;
    gap: 0.5rem;
}

.search-form .search-field,
.wp-block-search__input {
    flex: 1;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.search-form .search-field:focus,
.wp-block-search__input:focus {
    border-color: #ffc107;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

.search-form .search-submit,
.wp-block-search__button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    color: #212529;
    background-color: #ffc107;
    border: 1px solid #ffc107;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.search-form .search-submit:hover,
.wp-block-search__button:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

/* ========== Comments ========== */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
}

.comment .children {
    list-style: none;
    padding-left: 2rem;
    margin-top: 1rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.comment-author img {
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
    color: #212529;
}

.comment-meta {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.comment-content p {
    margin-bottom: 0.5rem;
}

.comment-reply-link {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    color: #ffc107;
    background-color: transparent;
    border: 1px solid #ffc107;
    border-radius: 0.25rem;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
}

.comment-reply-link:hover {
    color: #212529;
    background-color: #ffc107;
}

/* Comment Form */
.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #ffc107;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

.comment-form .submit {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #212529;
    background-color: #ffc107;
    border: 1px solid #ffc107;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.comment-form .submit:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

/* ========== Forms General ========== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="number"],
textarea,
select {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #ffc107;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

/* ========== Buttons ========== */
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #212529;
    background-color: #ffc107;
    border: 1px solid #ffc107;
    border-radius: 0.375rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button__link:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    color: #212529;
}

/* ========== Alignments ========== */
.alignleft {
    float: left;
    margin: 0.5rem 1.5rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0.5rem 0 1rem 1.5rem;
}

.aligncenter {
    display: block;
    margin: 1rem auto;
}

.alignwide {
    margin-left: -5%;
    margin-right: -5%;
    width: 110%;
    max-width: 110%;
}

.alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    max-width: 100vw;
}

/* ========== Images & Captions ========== */
.wp-caption {
    max-width: 100%;
    margin-bottom: 1rem;
}

.wp-caption img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: #6c757d;
    text-align: center;
    padding: 0.5rem;
}

figure {
    margin: 1rem 0;
}

figcaption {
    font-size: 0.875rem;
    color: #6c757d;
    text-align: center;
    padding: 0.5rem 0;
}

/* ========== Gallery ========== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.gallery-item {
    margin: 0;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 0.375rem;
    transition: transform 0.2s;
}

.gallery-item img:hover {
    transform: scale(1.02);
}

.gallery-caption {
    font-size: 0.875rem;
    color: #6c757d;
    text-align: center;
    padding: 0.5rem;
}

/* ========== Tables ========== */
table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

table th,
table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    text-align: left;
}

table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

table tbody tr:hover {
    background-color: #f8f9fa;
}

/* ========== Blockquote ========== */
blockquote,
.wp-block-quote {
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid #ffc107;
    background-color: #f8f9fa;
    border-radius: 0 0.375rem 0.375rem 0;
}

blockquote p:last-child {
    margin-bottom: 0;
}

blockquote cite,
.wp-block-quote cite {
    display: block;
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* ========== Code ========== */
code,
pre {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875rem;
}

code {
    padding: 0.125rem 0.375rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    color: #ffc107;
}

pre {
    padding: 1rem;
    background-color: #212529;
    color: #f8f9fa;
    border-radius: 0.375rem;
    overflow-x: auto;
}

pre code {
    padding: 0;
    background: none;
    color: inherit;
}

/* ========== Post Navigation ========== */
.post-navigation,
.posts-navigation {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 0;
    border-top: 1px solid #dee2e6;
    margin-top: 2rem;
}

.nav-previous a,
.nav-next a {
    color: #212529;
    text-decoration: none;
    transition: color 0.15s;
}

.nav-previous a:hover,
.nav-next a:hover {
    color: #ffc107;
}

/* ========== Screen Reader Text ========== */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========== Sticky Post ========== */
.sticky .card {
    border: 2px solid #ffc107;
}

/* ========== Entry Content ========== */
.entry-content a {
    color: #ffc107;
    text-decoration: underline;
}

.entry-content a:hover {
    color: #e0a800;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

/* ========== Password Protected ========== */
.post-password-form label {
    display: block;
    margin-bottom: 0.5rem;
}

.post-password-form input[type="password"] {
    margin-right: 0.5rem;
}

/* ========== Error 404 ========== */
.error-404 {
    text-align: center;
    padding: 3rem 0;
}

.error-404 .page-title {
    font-size: 5rem;
    color: #ffc107;
}

/* ========== Calendar Widget ========== */
.widget_calendar table {
    width: 100%;
}

.widget_calendar caption {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.widget_calendar th,
.widget_calendar td {
    text-align: center;
    padding: 0.5rem;
}

.widget_calendar #today {
    background-color: #ffc107;
    color: #212529;
    border-radius: 50%;
}

/* ========== Tag Cloud ========== */
.tagcloud a,
.wp-block-tag-cloud a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem;
    font-size: 0.875rem !important;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 2rem;
    color: #212529;
    text-decoration: none;
    transition: all 0.15s;
}

.tagcloud a:hover,
.wp-block-tag-cloud a:hover {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

/* ========== Recent Comments Widget ========== */
.widget_recent_comments li {
    padding: 0.75rem 0;
}

.widget_recent_comments .comment-author-link {
    font-weight: 600;
}

/* ========== RSS Widget ========== */
.widget_rss li {
    padding: 0.75rem 0;
}

.widget_rss .rss-date {
    display: block;
    font-size: 0.875rem;
    color: #6c757d;
}

.widget_rss .rssSummary {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* ========== Post Reactions ========== */
.post-reactions {
    border: 1px solid #dee2e6;
    margin-top: 2rem;
}

.reaction-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1rem;
    min-width: 70px;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.reaction-btn .emoji {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.reaction-btn .count {
    font-size: 0.875rem;
    font-weight: 600;
}

.reaction-btn:hover {
    transform: scale(1.15);
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.reaction-btn.active {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
    transform: scale(1.1);
}

/* ========== Emoji Avatar Picker ========== */
.emoji-avatar-picker {
    margin-bottom: 1rem;
}

.emoji-avatar-option {
    cursor: pointer;
}

.emoji-avatar-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    min-width: 70px;
    min-height: 70px;
    font-size: 2.5rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background-color: #fff;
    transition: all 0.2s ease;
}

.emoji-avatar-btn img.emoji {
    width: 40px !important;
    height: 40px !important;
}

.emoji-avatar-btn:hover {
    transform: scale(1.15);
    border-color: #ffc107;
    background-color: #ffc107;
}

.emoji-avatar-option input:checked + .emoji-avatar-btn {
    border-color: #212529;
    background-color: #212529;
    transform: scale(1.1);
}

/* Comment emoji avatar display */
.comment-emoji-avatar {
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 50%;
}
