/* Additional Custom Styles for Graphbit Theme */

/* Layout Flexbox */
.site-content .container {
    /* display: flex; */
    gap: 2rem;
}

.content-area {
    flex: 1;
}

@media (max-width: 768px) {
    .site-content .container {
        flex-direction: column;
    }
}

/* Post Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Featured Image Hover Effect */
.post-thumbnail {
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.post-thumbnail img {
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
    display: block;
}

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

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

.comment-body {
    padding: 1.5rem;
    background: var(--background-alt);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.comment-meta {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Pagination */
.pagination {
    margin-top: 3rem;
}

.pagination ul {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination li a {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination li a:hover,
.pagination li.active a {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--primary-color);
}

/* Footer Widgets */
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget {
    color: rgba(255, 255, 255, 0.8);
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.9);
}

.footer-widget .widget-title {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

/* Search Form */
.search-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.search-form input[type="search"] {
    flex: 1;
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.post-navigation a {
    flex: 1;
    padding: 1rem;
    background: var(--background-alt);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.post-navigation a:hover {
    background: var(--border-color);
}

.nav-subtitle {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.nav-title {
    display: block;
    font-weight: 600;
}

/* Alignments */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--background-alt);
    font-weight: 600;
}

/* Blockquotes */
blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--primary-color);
    background: var(--background-alt);
    font-style: italic;
}

/* Code */
code {
    padding: 0.2rem 0.4rem;
    background: var(--background-alt);
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

pre {
    padding: 1rem;
    background: var(--background-alt);
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

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

/* Contact Form 7 Success Message */
.wpcf7-custom-success-message {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    animation: fadeInUp 0.6s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wpcf7-custom-success-message h3 {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.wpcf7-custom-success-message p {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    opacity: 0.95;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Top right menu styling - used by the 'Top Right Menu' location */
.top-nav-menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.top-nav-menu li {
    position: relative;
}
.top-nav-menu a {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.top-nav-menu .menu-item-has-children > a::after {
    content: "\25BE"; /* small down chevron */
    margin-left: 6px;
    font-size: 0.7em;
    opacity: 0.85;
}
.top-nav-menu .sub-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #0b0b10;
    border-radius: 8px;
    padding: 8px;
    display: none;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(2,6,23,0.6);
    z-index: 2500;
}
.top-nav-menu li:hover > .sub-menu {
    display: block;
}

/* Ensure header right aligns nicely */
.main-navigation .header-right {
    align-items: center;
}
