/*
Theme Name: Bloggy Theme
Author: Gemini
Description: A travel blog theme created based on user-provided HTML files.
Version: 1.4
Tags: blog, travel, responsive-layout
*/

/* --- Global & Font Styles --- */
html { scroll-behavior: smooth; }
body { font-family: 'Gowun Dodum', sans-serif; background-color: #FEFBF6; color: #4C4545; }
.font-lora { font-family: 'Lora', serif; }


/* --- Navigation Link Styles --- */
.nav-link {
    padding-bottom: 6px;
    position: relative;
    text-decoration: none;
    color: #4C4545;
    transition: color 0.3s ease, transform 0.5s ease-in-out;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #3D5A52;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-out;
}
.nav-link:hover {
    color: #3D5A52;
}
.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}
.nav-link.active {
    color: #3D5A52;
}


/* --- Post Title Hover Effect --- */
.post-title-link {
    position: relative; display: inline-block; text-decoration: none;
    color: #4c4545; z-index: 1; transition: color 0.4s ease-in-out;
}
.post-title-link::before {
    content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 100%;
    background: #4c4545; transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1); z-index: -1;
}
.post-title-link:hover { color: #FEFBF6; }
.post-title-link:hover::before { transform: scaleX(1); }


/* --- Skewed Image Effect Styles --- */
.skewed-image-container {
    overflow: hidden; transform: skewX(-8deg); border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.skewed-image {
    transform: skewX(8deg) scale(1.25); width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.3s ease-in-out;
}
.skewed-image-container-reverse {
    overflow: hidden; transform: skewX(8deg); border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.skewed-image-reverse {
    transform: skewX(-8deg) scale(1.25); width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.3s ease-in-out;
}
.skewed-image-container:hover .skewed-image { transform: skewX(8deg) scale(1.35); }
.skewed-image-container-reverse:hover .skewed-image-reverse { transform: skewX(-8deg) scale(1.35); }


/* --- WordPress Generated Content Styles --- */
.content-body h2, .content-body h3 {
    /* UPDATED: Added !important to ensure this font style is applied */
    font-family: 'Lora', 'Gowun Dodum', serif !important; 
    font-weight: 700; 
    color: #3D5A52;
    position: relative; 
    scroll-margin-top: 180px;
}
.content-body h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.content-body h3 { font-size: 1.25rem; margin-top: 2rem; margin-bottom: 0.75rem; }
.content-body p { line-height: 1.8; margin-bottom: 1.5rem; }
.content-body blockquote { border-left: 4px solid #3D5A52; padding-left: 1rem; margin: 2rem 0; font-style: italic; color: #5f6c68; }
.content-body figure { margin: 2rem 0; }
.content-body figcaption { text-align: center; font-size: 0.875rem; color: #6b7280; margin-top: 0.5rem; }
.content-body img {
    border-radius: 5px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}


/* --- Complex JS-Controlled Component Styles --- */
.toc a { transition: all 0.2s ease-in-out; border-left: 3px solid transparent; }
.toc a.active { color: #3D5A52; font-weight: 600; transform: translateX(4px); border-left-color: #3D5A52; }
.toc-h3-container { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out; }
.toc-h3-container.visible { max-height: 500px; }
#top-bar.hide-up { transform: translateY(-100%); }
#sticky-title-bar { opacity: 0; transform: translateY(-20px); transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out; pointer-events: none; }
#sticky-title-bar.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* --- Live Search Results Styles --- */
#search-results-container {
    max-height: 400px;
    overflow-y: auto;
}

/* --- Side Menu Accordion Styles --- */
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}
.submenu.open {
    max-height: 500px;
    transition: max-height 0.4s ease-in;
}
.accordion-icon {
    transition: transform 0.3s ease;
}
.accordion-icon.rotate {
    transform: rotate(90deg);
}

/* --- Pagination Styles --- */
.pagination-container {
    margin-top: 4rem;
    margin-bottom: 2rem;
}
.pagination-container .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; font-size: 1.125rem; font-weight: 600;
    border-radius: 9999px; transition: background-color 0.2s, color 0.2s;
    text-decoration: none; color: #4C4545;
}
.pagination-container .page-numbers:hover { background-color: #f3f4f6; }
.pagination-container .page-numbers.current { background-color: #3D5A52; color: #FEFBF6; cursor: default; }
.pagination-container .page-numbers.dots { cursor: default; background-color: transparent; }
.pagination-container .page-numbers.prev,
.pagination-container .page-numbers.next { font-size: 1.5rem; }

/* --- Copy Link Icon Styles --- */
.copy-link-icon {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    cursor: pointer;
    margin-left: 8px;
    display: inline-block;
    font-style: normal;
}
.content-body h2:hover .copy-link-icon,
.content-body h3:hover .copy-link-icon {
    opacity: 1;
}

/* --- Custom Logo Styles --- */
.custom-logo-link {
    display: flex;
    align-items: center;
}
.custom-logo {
    height: 2.8rem; 
    width: auto;
    max-width: 100%;
}
