/* Teknogold Blog - Custom Overrides */

/* Logo fallback */
.logo-banner .left span {
    line-height: 60px;
}

/* Post item fixes */
.post-item-mid {
    margin-bottom: 20px;
}

.post-item-mid .post-item-image {
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 10px;
}

.post-item-mid .post-item-image {
    height: auto !important;
}

.post-item-mid .post-item-image img.img-post-thumb {
    width: 100% !important;
    aspect-ratio: 380 / 226 !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.3s ease;
}

.post-item-mid:hover .post-item-image img {
    transform: scale(1.05);
}

.post-item-mid .title {
    font-size: 16px;
    line-height: 1.4;
    margin: 8px 0;
}

.post-item-mid .title a {
    color: #333;
}

.post-item-mid .title a:hover {
    color: #D4A843;
}

.post-comment-count {
    margin-left: 8px;
    font-size: 12px;
    color: #999;
}

.post-comment-count i {
    margin-right: 2px;
}

/* Sidebar widgets */
.widget-body {
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.widget-title {
    border-bottom: 2px solid #D4A843;
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.widget-title .title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

/* Popular posts numbered list */
.popular-posts-list .post-item-small {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.popular-posts-list .post-item-small:last-child {
    border-bottom: none;
}

.popular-posts-list .number {
    min-width: 28px;
    height: 28px;
    background: #D4A843;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.popular-posts-list .post-item-text .title {
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 4px;
}

.popular-posts-list .post-item-text .title a {
    color: #333;
}

.popular-posts-list .post-item-text .title a:hover {
    color: #D4A843;
}

.popular-posts-list .post-item-text .post-meta {
    font-size: 12px;
    color: #999;
}

/* Category list */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    border-bottom: 1px solid #f0f0f0;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: #555;
    font-size: 14px;
}

.category-list li a:hover,
.category-list li a.active {
    color: #D4A843;
}

.category-list li a .badge {
    background: #eee;
    color: #888;
    font-size: 11px;
    border-radius: 10px;
    min-width: 22px;
}

/* Post detail */
.post-content .title {
    font-size: 28px;
    line-height: 1.3;
    margin: 10px 0 5px;
    font-weight: 700;
}

.post-content .post-summary h2 {
    font-size: 16px;
    font-weight: 400;
    color: #666;
    line-height: 1.6;
    margin: 10px 0 15px;
}

.post-content .post-meta {
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    color: #999;
    font-size: 13px;
}

.post-content .post-meta .sp-left {
    margin-right: 15px;
}

.post-content .post-meta .sp-right {
    margin-left: 15px;
}

.post-content .post-meta i {
    margin-right: 4px;
}

/* Share buttons */
.post-share {
    padding: 15px 0;
}

.post-share ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.post-share ul li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    transition: opacity 0.2s;
}

.post-share ul li a:hover {
    opacity: 0.85;
    color: #fff;
    text-decoration: none;
}

.share-facebook { background: #3b5998; }
.share-twitter { background: #1da1f2; }
.share-whatsapp { background: #25d366; }
.share-telegram { background: #0088cc; }

/* Post image */
.post-image {
    margin: 15px 0 20px;
}

.post-image img {
    width: 100%;
    border-radius: 4px;
}

/* Post text */
.post-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin: 20px 0;
}

.post-text img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 10px 0;
}

.post-text h2, .post-text h3 {
    margin-top: 25px;
    margin-bottom: 10px;
}

.post-text p {
    margin-bottom: 15px;
}

.post-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.post-text table td,
.post-text table th {
    padding: 8px 12px;
    border: 1px solid #ddd;
}

/* Tags */
.post-tags {
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.post-tags .tags-title {
    font-size: 16px;
    margin-bottom: 10px;
}

.post-tags .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
}

.post-tags .tag-list li a {
    display: inline-block;
    padding: 4px 12px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    color: #555;
    font-size: 13px;
}

.post-tags .tag-list li a:hover {
    background: #D4A843;
    border-color: #D4A843;
    color: #fff;
    text-decoration: none;
}

/* Section related */
.section-related-posts {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Category label */
.category-label {
    display: inline-block;
    padding: 3px 10px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    cursor: pointer;
}

/* Footer random posts */
.f-random-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.f-random-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.f-random-list li:last-child {
    border-bottom: none;
}

.f-random-list li .title {
    font-size: 14px;
    margin: 0 0 3px;
}

.f-random-list li .title a {
    color: #ccc;
}

.f-random-list li .title a:hover {
    color: #D4A843;
}

.f-random-list .small-post-meta {
    font-size: 12px;
    color: #888;
}

/* Page title */
.page-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.page-title span {
    font-weight: 400;
    color: #888;
}

/* Sidebar tag list */
.widget-body .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
}

.widget-body .tag-list li a {
    display: inline-block;
    padding: 4px 10px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    color: #555;
    font-size: 12px;
}

.widget-body .tag-list li a:hover {
    background: #D4A843;
    border-color: #D4A843;
    color: #fff;
    text-decoration: none;
}

/* Comments */
.comments-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.comment-list {
    margin-bottom: 30px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-item.comment-reply {
    margin-left: 40px;
    padding-left: 15px;
    border-left: 2px solid #D4A843;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    background: #D4A843;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.comment-author {
    color: #333;
    font-size: 14px;
}

.comment-date {
    font-size: 12px;
    color: #999;
}

.comment-text {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    word-wrap: break-word;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 8px;
}

.comment-reply-btn {
    font-size: 12px;
    color: #999;
    cursor: pointer;
}

.comment-reply-btn:hover {
    color: #D4A843;
    text-decoration: none;
}

.comment-reactions {
    display: flex;
    gap: 8px;
}

.reaction-btn {
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 2px 10px;
    font-size: 12px;
    color: #888;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.reaction-btn:hover {
    border-color: #D4A843;
    color: #D4A843;
}

.icon-dislike {
    display: inline-block;
    transform: scaleY(-1);
}

.reaction-count {
    font-weight: 600;
}

/* Comment Form */
.comment-form-wrapper {
    background: #f9f9f9;
    border-radius: 4px;
    padding: 20px;
}

.comment-form-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 15px;
}

.comment-form-wrapper .form-control {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 14px;
}

.comment-form-wrapper .form-control:focus {
    border-color: #D4A843;
    box-shadow: 0 0 0 2px rgba(212,168,67,0.15);
}

.btn-comment-submit {
    background: #D4A843;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-comment-submit:hover {
    background: #c49a3a;
}

.reply-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #fff3cd;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #856404;
}

.cancel-reply {
    color: #856404;
    font-weight: 700;
    font-size: 16px;
}

.cancel-reply:hover {
    text-decoration: none;
    color: #d9534f;
}

.recaptcha-notice {
    font-size: 11px;
    color: #999;
    margin-top: 10px;
}

.recaptcha-notice a {
    color: #999;
    text-decoration: underline;
}

.grecaptcha-badge {
    visibility: hidden;
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    background: #2c2c2c;
    overflow-x: hidden;
    transition: 0.3s;
    z-index: 9999;
}

.mobile-menu-content {
    padding: 20px;
}

.btn-close-mobile-nav {
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    text-align: right;
    padding: 10px;
}

.mobile-menu-links {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.mobile-menu-links li a {
    display: block;
    padding: 12px 10px;
    color: #ccc;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-links li a:hover {
    color: #D4A843;
    text-decoration: none;
}
