/**
 * Nexus Business Pro - Additional Theme Styles
 *
 * @package Nexus_Business_Pro
 * @since 1.0.0
 */

/* ============================================
   MOBILE MENU STYLES
   ============================================ */
.nexus-mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 1.5rem 0;
    box-shadow: var(--shadow-soft-lg);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.nexus-mobile-menu.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.nexus-mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nexus-mobile-nav li {
    margin: 0;
    padding: 0;
}

.nexus-mobile-nav a {
    display: block;
    padding: 0.875rem 1rem;
    color: var(--navy-700);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.nexus-mobile-nav a:hover {
    background: var(--navy-50);
    color: var(--navy-900);
}

.nexus-mobile-buttons {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--navy-100);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nexus-mobile-buttons .nexus-btn {
    width: 100%;
    justify-content: center;
}

body.menu-open {
    overflow: hidden;
}

/* ============================================
   BLOG STYLES
   ============================================ */
.nexus-content {
    padding: 4rem 0;
}

.nexus-content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
}

@media (max-width: 1024px) {
    .nexus-content-grid {
        grid-template-columns: 1fr;
    }
    
    .nexus-sidebar {
        order: -1;
    }
}

.nexus-post {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
}

.nexus-post-thumbnail {
    position: relative;
    overflow: hidden;
}

.nexus-post-thumbnail img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.nexus-post .entry-header {
    padding: 1.5rem 1.5rem 0;
}

.nexus-post .entry-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.nexus-post .entry-title a {
    color: var(--navy-900);
    transition: color var(--transition-normal);
}

.nexus-post .entry-title a:hover {
    color: var(--gold-600);
}

.nexus-post .entry-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--navy-500);
    margin-bottom: 1rem;
}

.nexus-post .entry-content {
    padding: 0 1.5rem 1.5rem;
}

.nexus-post .entry-footer {
    padding: 0 1.5rem 1.5rem;
}

.nexus-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--navy-700);
    font-weight: 500;
    transition: color var(--transition-normal);
}

.nexus-read-more:hover {
    color: var(--gold-600);
}

.nexus-read-more svg {
    transition: transform var(--transition-normal);
}

.nexus-read-more:hover svg {
    transform: translateX(4px);
}

/* ============================================
   SIDEBAR STYLES
   ============================================ */
.nexus-sidebar .widget {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.nexus-sidebar .widget-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--navy-900);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--navy-100);
}

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

.nexus-sidebar .widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--navy-50);
}

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

.nexus-sidebar .widget a {
    color: var(--navy-600);
    transition: color var(--transition-normal);
}

.nexus-sidebar .widget a:hover {
    color: var(--gold-600);
}

/* Search Widget */
.nexus-sidebar .widget_search .search-form {
    display: flex;
    gap: 0.5rem;
}

.nexus-sidebar .widget_search .search-field {
    flex: 1;
    padding: 0.625rem 1rem;
    border: 1px solid var(--navy-200);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    transition: border-color var(--transition-normal);
}

.nexus-sidebar .widget_search .search-field:focus {
    outline: none;
    border-color: var(--gold-500);
}

.nexus-sidebar .widget_search .search-submit {
    padding: 0.625rem 1rem;
    background: var(--navy-900);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: background var(--transition-normal);
}

.nexus-sidebar .widget_search .search-submit:hover {
    background: var(--navy-800);
}

/* ============================================
   PAGE STYLES
   ============================================ */
.nexus-page {
    padding: 4rem 0;
}

.nexus-page .entry-header {
    margin-bottom: 2rem;
}

.nexus-page .entry-title {
    font-size: 2.5rem;
    color: var(--navy-900);
}

.nexus-page .entry-content {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.nexus-page .entry-content h2,
.nexus-page .entry-content h3,
.nexus-page .entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.nexus-page .entry-content p {
    margin-bottom: 1.5rem;
}

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

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

.nexus-page .entry-content blockquote {
    border-left: 4px solid var(--gold-500);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--navy-700);
}

.nexus-page .entry-content img {
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
}

/* ============================================
   NAVIGATION STYLES
   ============================================ */
.navigation.post-navigation,
.navigation.pagination {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--navy-100);
}

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

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

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

.nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--navy-200);
    border-radius: var(--radius-md);
    color: var(--navy-700);
    font-weight: 500;
    transition: all var(--transition-normal);
}

.nav-links a:hover {
    background: var(--navy-50);
    border-color: var(--navy-300);
    color: var(--navy-900);
}

/* Pagination */
.pagination .nav-links {
    justify-content: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-normal);
}

.pagination .page-numbers.current {
    background: var(--navy-900);
    color: var(--white);
}

.pagination .page-numbers:not(.current):hover {
    background: var(--navy-50);
}

/* ============================================
   COMMENTS STYLES
   ============================================ */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--navy-100);
}

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

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

.comment {
    margin-bottom: 2rem;
}

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

.comment-author .avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
}

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

.comment-author .fn {
    font-weight: 600;
    color: var(--navy-900);
}

.comment-metadata {
    font-size: 0.875rem;
    color: var(--navy-500);
}

.comment-content {
    color: var(--navy-700);
    line-height: 1.7;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--gold-600);
    font-weight: 500;
    margin-top: 0.5rem;
}

.comment-reply-link:hover {
    color: var(--gold-700);
}

/* Comment Form */
.comment-respond {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.comment-reply-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--navy-700);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--navy-200);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    transition: border-color var(--transition-normal);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--gold-500);
}

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

.comment-form .form-submit {
    margin-top: 1.5rem;
}

.comment-form .submit {
    padding: 0.875rem 2rem;
    background: var(--navy-900);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-normal);
}

.comment-form .submit:hover {
    background: var(--navy-800);
}

/* ============================================
   SEARCH RESULTS
   ============================================ */
.search-results .page-header {
    margin-bottom: 2rem;
}

.search-results .page-title {
    font-size: 1.75rem;
}

.search-no-results .page-content {
    text-align: center;
    padding: 3rem 0;
}

.search-no-results .search-form {
    max-width: 500px;
    margin: 2rem auto 0;
}

/* ============================================
   404 PAGE
   ============================================ */
.error404 .nexus-content {
    text-align: center;
    padding: 6rem 0;
}

.error404 .page-title {
    font-size: 6rem;
    color: var(--navy-900);
    margin-bottom: 1rem;
}

.error404 .page-content {
    max-width: 500px;
    margin: 0 auto;
}

.error404 .search-form {
    margin-top: 2rem;
}

/* ============================================
   WORDPRESS DEFAULTS
   ============================================ */
.sticky {
    display: block;
}

.hentry {
    margin: 0 0 1.5em;
}

.byline,
.updated:not(.published) {
    display: none;
}

.single .byline,
.group-blog .byline {
    display: inline;
}

.page-content,
.entry-content,
.entry-summary {
    margin: 1.5em 0 0;
}

.page-links {
    clear: both;
    margin: 0 0 1.5em;
}

/* ============================================
   GALLERY STYLES
   ============================================ */
.gallery {
    margin-bottom: 1.5em;
    display: grid;
    grid-gap: 1.5em;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    width: 100%;
}

.gallery-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
    grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
    grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
    grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
    display: block;
    margin-top: 0.5em;
    font-size: 0.875rem;
    color: var(--navy-500);
}

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

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

th {
    font-weight: 600;
    color: var(--navy-900);
    background: var(--navy-50);
}

/* ============================================
   FORM STYLES
   ============================================ */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--navy-200);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    transition: border-color var(--transition-normal);
    background: var(--white);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--gold-500);
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    padding: 0.75rem 1.5rem;
    background: var(--navy-900);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-normal);
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    background: var(--navy-800);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.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 !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--navy-100);
    clip: auto !important;
    clip-path: none;
    color: var(--navy-900);
    display: block;
    font-size: 0.875rem;
    height: auto;
    left: 5px;
    padding: 15px 23px 14px;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--gold-500);
    outline-offset: 2px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy-900);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    z-index: 999999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 1rem;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .nexus-header,
    .nexus-footer,
    .nexus-sidebar,
    .nexus-mobile-toggle,
    .nexus-mobile-menu,
    .comment-respond,
    .post-navigation {
        display: none !important;
    }
    
    .nexus-content-grid {
        grid-template-columns: 1fr;
    }
    
    .nexus-post {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}
