/* ===================================
   PORTFOLIO SINGLE POST
=================================== */

/* -------------------------
   BACKGROUND
-------------------------- */



/* vanha body selektor jossa taustakuva ei näkynyt
body.single-post {
    background-image:
        linear-gradient(
            rgba(15,15,15,.45),
            rgba(15,15,15,.45)
        ),
        url('https://nnmaki.com/wp-content/uploads/2026/05/background3-scaled.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
} */

body.single-post {
    background-image:
        linear-gradient(
            rgba(15,15,15,.45),
            rgba(15,15,15,.45)
        ),
        url('https://nnmaki.com/wp-content/uploads/2026/05/background3-scaled.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}




/* GLightbox lasiefekti */
.glightbox-container .goverlay {
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


/* -------------------------
   TYPOGRAPHY
-------------------------- */

.single-post,
.single-post *:not(i):not([class*="fa-"]):not([class*="devicon-"]) {
    font-family: 'Inter', sans-serif;
    color: #ffffff;
}


/* -------------------------
   ASTRA LAYOUT RESET
-------------------------- */

.single-post .site,
.single-post .site-content,
.single-post .ast-container {
    background: transparent;
}

.single-post .ast-container {
    max-width: 100%;
    padding: 0;
}

.single-post .content-area {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

.single-post .site-main {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 200px !important;
    padding-bottom: 70px;
}


/* -------------------------
   HERO / HEADER
-------------------------- */

.single-post .entry-header {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 0 !important;
    margin: 0 !important;
}

.single-post h1.entry-title {
    color: #ffffff !important;
    font-size: clamp(1.8rem, 3vw, 3rem) !important;
    font-weight: 800 !important;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1rem !important;
    text-wrap: balance;
}


/* Featured image */
.single-post .post-thumbnail {
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
}

.single-post .wp-post-image {
    width: min(100%, 780px) !important;
    max-width: 780px !important;
    margin-inline: auto !important;
    display: block !important;
    border-radius: 18px;
    height: auto !important; /* Estetään venyminen */
    margin: 10px !important;
    padding: 10px !important;

}


/* -------------------------
   FLOATING PANEL (The Article)
-------------------------- */

.single-post article {
    width: min(1200px, calc(100% - 48px));
   
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 24px;
    position: relative;
    /* backdrop-filter poistettu tästä, koska se rikkoo lightboxin (fixed position) */
    box-shadow: 0 30px 80px rgba(0,0,0,.2);
    padding: 20px;
    overflow: visible; /* Varmistetaan että sisältö voi näkyä ulkopuolella jos tarpeen */
}

/* Lisätään sumennus pseudo-elementtinä, jotta se ei luo uutta stacking contextia artikkelille */
.single-post article::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1;
    border-radius: 24px;
    pointer-events: none;
}


/* -------------------------
   DIVIDERS & META ROW
-------------------------- */

.portfolio-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.3);
    width: 100%;
    opacity: 1;
    margin-block: 0.5rem;
}

.portfolio-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding-block: 0.2rem;
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.author-avatar img {
    border-radius: 50%;
    display: block;
    border: 1px solid rgba(255,255,255,0.2);
    margin: 0 !important;
    padding: 0 !important;
}

.portfolio-meta-row p, 
.portfolio-meta-row div {
    margin: 0;
}

.tech-icons-pro {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: flex-end;
}

.tech-icon-content-pro i {
    font-size: 1.8rem;
}


/* -------------------------
   CONTENT STYLING
-------------------------- */

.single-post .entry-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #ffffff;
    margin-top: 1rem;
}

.single-post .entry-content p,
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4,
.single-post .entry-content h5,
.single-post .entry-content h6,
.single-post .entry-content ul,
.single-post .entry-content ol {
    max-width: 780px;
    width: 100%;
    margin-bottom: 1.5rem;
}

.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4,
.single-post .entry-content h5,
.single-post .entry-content h6 {
    text-align: left !important;
}

.single-post .entry-content h2 {
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: .95;
    font-weight: 500;
    margin-top: 4rem;
}


/* -------------------------
   HIDE BLOG ELEMENTS
-------------------------- */

.single-post .comments-area,
.single-post .post-navigation,
.single-post .entry-meta {
    display: none !important;
}


/* -------------------------
   MOBILE
-------------------------- */

@media (max-width:768px){
    .single-post article {
        width: calc(100% - 32px);
        padding: 2rem;
    }

    .portfolio-meta-row {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}


/* -------------------------
   PROJECT BUTTONS
-------------------------- */

.project-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 0;
    border-top: none;
    justify-content: flex-start;
    width: 100%;
    max-width: 780px;
    margin-inline: auto;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-github, .btn-live, .btn-video, .btn-back {
    background: #24292e;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.1);
}

.back-button-container {
    width: 100%;
    max-width: 780px;
    margin: 3rem auto 0;
    padding-top: 1rem;
    /* border-top: 1px solid rgba(255,255,255,0.1); */
    display: flex;
    justify-content: flex-start;
}

.project-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    opacity: 0.9;
}

@media (max-width: 600px) {
    .project-buttons-container {
        flex-direction: column;
    }
    .project-btn {
        justify-content: center;
    }
}

/* Footer styles moved to style.css */
