/**
 * INNOVE Theme - Custom Styles
 * Additional styles that complement the main stylesheet
 */

/* ========================================
   POST CARDS
   ======================================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.post-card__image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-card__image img {
    transform: scale(1.05);
}

.post-card__content {
    padding: 1.5rem;
}

.post-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.post-card__title a {
    color: #0a1628;
    text-decoration: none;
}

.post-card__title a:hover {
    color: #d4af37;
}

.post-card__meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.post-card__excerpt {
    color: #4a5568;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-card__read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #d4af37;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
}

.post-card__read-more:hover {
    color: #b8941f;
}

/* ========================================
   CONTENT AREA WITH SIDEBAR
   ======================================== */
.content-area {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    padding: 3rem 0;
}

@media (max-width: 1023px) {
    .content-area {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.pagination ul {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 1rem;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #0a1628;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: #d4af37;
    border-color: #d4af37;
    color: #0a1628;
}

.pagination .current {
    background: #0a1628;
    border-color: #0a1628;
    color: #ffffff;
}

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

.error-404 h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-404 p {
    color: #6c757d;
    margin-bottom: 2rem;
}

.error-404__widgets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 600px;
    margin: 3rem auto 0;
    text-align: left;
}

@media (max-width: 767px) {
    .error-404__widgets {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   SEARCH FORM
   ======================================== */
.search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 2px solid #e9ecef;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: #d4af37;
}

.search-form button {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    border: none;
    border-radius: 0 8px 8px 0;
    color: #0a1628;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.search-form button:hover {
    opacity: 0.9;
}

/* ========================================
   NO RESULTS
   ======================================== */
.no-results {
    text-align: center;
    padding: 4rem 0;
}

.no-results h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.no-results p {
    color: #6c757d;
    margin-bottom: 2rem;
}

/* ========================================
   COMMENTS
   ======================================== */
.comments-area {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e9ecef;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

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

.comment-list ol {
    list-style: none;
    padding-left: 2rem;
}

.comment {
    margin-bottom: 2rem;
}

.comment-body {
    display: flex;
    gap: 1.5rem;
}

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

.comment-meta {
    margin-bottom: 0.5rem;
}

.comment-author-name {
    font-weight: 600;
    color: #0a1628;
}

.comment-date {
    font-size: 0.875rem;
    color: #6c757d;
}

.comment-content {
    color: #4a5568;
    line-height: 1.6;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: #d4af37;
    font-weight: 500;
    font-size: 0.875rem;
}

/* Comment Form */
.comment-form {
    margin-top: 3rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #0a1628;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #d4af37;
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form .submit {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #0a1628;
    font-weight: 700;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comment-form .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

/* ========================================
   POST NAVIGATION
   ======================================== */
.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.post-navigation .nav-title {
    font-weight: 600;
    color: #0a1628;
}

.post-navigation a:hover .nav-title {
    color: #d4af37;
}

/* ========================================
   ENTRY META
   ======================================== */
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.entry-meta a {
    color: #6c757d;
}

.entry-meta a:hover {
    color: #d4af37;
}

/* ========================================
   POST THUMBNAIL
   ======================================== */
.post-thumbnail {
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
}

/* ========================================
   BREADCRUMBS
   ======================================== */
.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.875rem;
    color: #6c757d;
}

.breadcrumbs a {
    color: #6c757d;
}

.breadcrumbs a:hover {
    color: #d4af37;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: #ced4da;
}

/* ========================================
   ENTRY FOOTER
   ======================================== */
.entry-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.cat-links,
.tags-links {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.cat-links a,
.tags-links a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f8f9fa;
    border-radius: 4px;
    color: #0a1628;
    font-size: 0.8125rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.cat-links a:hover,
.tags-links a:hover {
    background: #d4af37;
    color: #0a1628;
}

.edit-link {
    display: block;
    margin-top: 1rem;
    font-size: 0.875rem;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 767px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-navigation .nav-links {
        flex-direction: column;
    }
    
    .post-navigation .nav-next {
        text-align: left;
    }
}
