/* ===================================
   AUSHAVERSE BLOG DETAILS STYLES
   Using the existing color palette:
   --pink: #ff2daa
   --purple: #7a2cff
   --teal: #18d7d1
   --navy: #070a20
   --panel: #0c102d
   --white: #fff
   --muted: #abb1ce
   --line: rgba(255,255,255,.11)
=================================== */

/* Ensure base variables are available */
:root {
    --pink: #ff2daa;
    --purple: #7a2cff;
    --teal: #18d7d1;
    --navy: #070a20;
    --panel: #0c102d;
    --white: #fff;
    --muted: #abb1ce;
    --line: rgba(255,255,255,.11);
}

/* Ensure body styling is applied */
body {
    margin: 0;
    background: var(--navy);
    color: #fff;
    font-family: Montserrat, Arial, sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

body:before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(255,45,170,.11), transparent 30%),
                radial-gradient(circle at 90% 30%, rgba(24,215,209,.08), transparent 28%),
                linear-gradient(180deg, #06081c, #090c25 55%, #050719);
    z-index: -2;
}

/* Ensure noise overlay matches main site */
.noise {
    position: fixed;
    inset: 0;
    opacity: .03;
    pointer-events: none;
    z-index: 30;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.blog-details-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 50px 25px 80px;
}

.blog-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    align-items: start;
}

/* ===================================
   BLOG CONTENT (LEFT COLUMN)
=================================== */

.blog-content {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 40px;
    min-height: 500px;
}

.blog-article {
    max-width: none;
}

.blog-header {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--line);
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.blog-category {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
}

.blog-date {
    color: var(--muted);
    font-size: 13px;
}

.blog-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
    margin: 0;
    background: linear-gradient(90deg, var(--white), var(--muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-featured-image {
    margin: 30px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-content-text {
    font-size: 16px;
    line-height: 1.8;
    color: #d8dcf3;
    margin: 30px 0;
}

.blog-content-text h2,
.blog-content-text h3,
.blog-content-text h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--white);
    margin: 25px 0 15px;
}

.blog-content-text h2 {
    font-size: 24px;
    color: var(--teal);
}

.blog-content-text h3 {
    font-size: 20px;
}

.blog-content-text h4 {
    font-size: 18px;
}

.blog-content-text p {
    margin: 0 0 20px;
}

.blog-content-text ul,
.blog-content-text ol {
    margin: 15px 0;
    padding-left: 25px;
}

.blog-content-text li {
    margin-bottom: 8px;
}

.blog-content-text blockquote {
    padding: 20px;
    margin: 25px 0;
    background: rgba(24, 215, 209, 0.08);
    border-left: 4px solid var(--teal);
    border-radius: 8px;
    font-style: italic;
}

.blog-content-text a {
    color: var(--teal);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.blog-content-text a:hover {
    border-bottom-color: var(--teal);
}

.blog-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.blog-share span {
    font-size: 13px;
    color: var(--muted);
    margin-right: 15px;
}

.share-buttons {
    display: inline-flex;
    gap: 10px;
}

.share-buttons a {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--white);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
}

.share-buttons a:hover {
    background: var(--teal);
    border-color: var(--teal);
    transform: translateY(-2px);
}

/* ===================================
   SEARCH RESULTS
=================================== */

.search-results {
    padding: 0;
}

.search-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.search-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    margin: 0 0 10px;
    color: var(--white);
}

.search-header p {
    color: var(--muted);
    margin: 0;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.search-result-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--teal);
    transform: translateY(-2px);
}

.result-image {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-content {
    flex: 1;
}

.result-category {
    display: inline-block;
    color: var(--teal);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.result-content h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.result-content h3 a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.result-content h3 a:hover {
    color: var(--teal);
}

.result-content p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 10px;
}

.result-content time {
    color: var(--muted);
    font-size: 12px;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.no-results-icon {
    margin: 0 auto 25px;
    width: 60px;
    height: 60px;
    color: var(--muted);
    opacity: 0.6;
}

.no-results h3 {
    color: var(--white);
    font-size: 24px;
    margin: 0 0 15px;
    font-family: 'Poppins', sans-serif;
}

.no-results p {
    color: var(--muted);
    margin: 0 0 25px;
    font-size: 16px;
    line-height: 1.6;
}

.no-results strong {
    color: var(--teal);
    font-weight: 600;
}

.no-results-suggestions {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    text-align: left;
}

.no-results-suggestions h4 {
    color: var(--white);
    font-size: 16px;
    margin: 0 0 15px;
    font-family: 'Poppins', sans-serif;
}

.no-results-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.no-results-suggestions li {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.no-results-suggestions li:before {
    content: "•";
    color: var(--teal);
    position: absolute;
    left: 0;
    top: 0;
}

.no-results-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.no-results-actions .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.no-results-actions .button.primary {
    color: white;
    background: linear-gradient(100deg, var(--pink), var(--purple), var(--teal));
    box-shadow: 0 8px 25px rgba(122, 44, 255, .2);
}

.no-results-actions .button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(122, 44, 255, .3);
}

.no-results-actions .button.ghost {
    color: #fff;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .035);
}

.no-results-actions .button.ghost:hover {
    background: rgba(24, 215, 209, .1);
    border-color: var(--teal);
    color: var(--teal);
}

.no-results a {
    color: var(--teal);
    text-decoration: none;
}

/* ===================================
   SIDEBAR (RIGHT COLUMN)
=================================== */

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 25px;
}

.sidebar-widget h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    margin: 0 0 20px;
    color: var(--white);
}

/* Search Widget */
.blog-search-form {
    position: relative;
    display: flex;
}

.blog-search-form input {
    flex: 1;
    padding: 12px 45px 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--white);
    font-size: 14px;
    min-width: 0;
}

.blog-search-form input::placeholder {
    color: var(--muted);
}

.blog-search-form input:focus {
    outline: none;
    border-color: var(--teal);
    background: rgba(255, 255, 255, 0.08);
}

.blog-search-form button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.blog-search-form button:hover {
    color: var(--teal);
}

/* Categories Widget */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    display: block;
    padding: 10px 15px;
    color: var(--muted);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    font-size: 14px;
}

.category-list a:hover {
    color: var(--white);
    background: rgba(24, 215, 209, 0.1);
    border-color: var(--teal);
}

/* Recent Posts Widget */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recent-post-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.recent-post-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-content {
    flex: 1;
    min-width: 0;
}

.recent-post-content h4 {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.4;
}

.recent-post-content h4 a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-content h4 a:hover {
    color: var(--teal);
}

.recent-post-content time {
    color: var(--muted);
    font-size: 11px;
}

/* ===================================
   BLOG NAVIGATION
=================================== */

.blog-navigation {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 25px;
}

.nav-container {
    padding: 15px 0;
    border-top: 1px solid var(--line);
}

.back-to-blogs {
    color: var(--teal);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-to-blogs:hover {
    color: var(--white);
    transform: translateX(-3px);
}

/* ===================================
   RESPONSIVE DESIGN
=================================== */

@media (max-width: 900px) {
    .blog-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .blog-sidebar {
        order: -1;
    }
    
    .blog-content {
        padding: 25px;
    }
    
    .blog-title {
        font-size: 28px;
    }
    
    .search-result-item {
        flex-direction: column;
    }
    
    .result-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 600px) {
    .blog-details-main {
        padding: 25px 15px 60px;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
    
    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .blog-title {
        font-size: 24px;
    }
    
    .blog-content-text {
        font-size: 15px;
    }
    
    .share-buttons {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 10px;
    }
    
    .recent-post-item {
        flex-direction: column;
    }
    
    .recent-post-image {
        width: 100%;
        height: 120px;
    }
    
    .no-results {
        padding: 40px 15px;
    }
    
    .no-results-suggestions {
        padding: 20px;
        margin: 20px 0;
        text-align: center;
    }
    
    .no-results-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .no-results-actions .button {
        width: 200px;
    }
}

/* ===================================
   FOOTER STYLES (Match main site)
=================================== */

footer {
    max-width: 1210px;
    margin: auto;
    padding: 40px 25px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    border-top: 1px solid var(--line);
}

.footer-brand {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-brand img {
    width: 52px;
    border-radius: 50%;
}

.footer-brand div {
    display: flex;
    flex-direction: column;
}

.footer-brand span {
    font-size: 11px;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-links a {
    color: #cbd0e4;
    text-decoration: none;
    font-size: 12px;
}

.copyright {
    grid-column: 1/-1;
    font-size: 11px;
    color: #777f9f;
}