/* --- GLOBAL STYLES & VARIABLES --- */
:root {
    --primary: #d17d94;
    --secondary: #e09aad;
    --accent: #c56680;
    --bg-main: #f8f8f9;
    --bg-card: #ffffff;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --border-color: rgba(0, 0, 0, 0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    padding-top: 108px;
}
a { color: var(--primary); text-decoration: none; }

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5% 5rem 5%;
    background: linear-gradient(135deg, #fff5f8 0%, #fff 100%);
}


/* --- NEW HEADER / NAVIGATION --- */
header {
    background: linear-gradient(135deg, #fff 0%, #fce4ec 100%);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 0%;
    max-width: 1200px;
    margin: 0 auto;
}
.logo { text-decoration: none; transition: opacity 0.3s ease; display: inline-block; flex-shrink: 0; }
.logo img { height: 80px; width: auto; display: block; max-width: 250px; }
.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a { text-decoration: none; color: #333; font-weight: 500; transition: all 0.3s ease; padding: 0.5rem 1rem; border-radius: 25px; }
.hamburger { display: none; flex-direction: column; cursor: pointer; padding: 0.5rem; }
.hamburger span { width: 25px; height: 3px; background: #d17d94; margin: 3px 0; transition: 0.3s; }

/* --- BLOG LIST PAGE (blog.html) --- */
.page-header { text-align: center; padding: 2rem; }
.page-header h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; margin-bottom: 1rem; }
.search-container { max-width: 800px; margin: 3rem auto 4rem; }
#search-box { width: 100%; padding: 12px 20px; font-size: 1em; border: 1px solid var(--border-color); border-radius: 50px; transition: all 0.3s ease; }
#search-box:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 15px rgba(209, 125, 148, 0.2); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.post-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: all 0.3s ease; }
.post-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card .card-content { padding: 1.5rem; flex-grow: 1; }
.post-card h2 { margin: 0 0 0.5rem 0; font-size: 1.25rem; color: var(--text-primary); }
.post-card .post-meta { font-size: 0.9em; color: var(--text-secondary); }

/* --- ARTICLE PAGE (article.html) --- */
.progress-bar { position: fixed; top: 0; left: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent)); z-index: 1001; width: 0%; }
.article-hero-image-container { width: 100%; height: 57vh; max-height: 600px; background-color: var(--bg-main); }
.article-hero-image-container img { width: 100%; height: 100%; object-fit: cover; }
main#article-page-container { padding-top: 0; }
.article-hero { text-align: center; padding: 4rem 1rem 4rem 1rem; }
.article-hero h1 { font-size: clamp(2.5rem, 8vw, 5rem); font-weight: 900; line-height: 1.4; margin-bottom: 1.5rem; background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.article-hero .post-meta { color: var(--text-secondary); font-size: 1rem; }
.article-wrapper { max-width: 800px; margin: 0 auto; padding: 0 0 4rem; }
.article-content { font-size: 1.125rem; color: var(--text-primary); }
.article-content p, .article-content ul, .article-content ol { margin-bottom: 1.5rem; line-height: 1.7; }
.article-content ul, .article-content ol { padding-left: 2rem; }
.article-content h2 { font-size: 2.25rem; margin: 3rem 0 1.5rem; line-height: 1.2; }
.article-content a { text-decoration: underline; text-decoration-color: var(--secondary); font-weight: 500; }
.article-content blockquote { background: var(--bg-card); border-left: 4px solid var(--primary); padding: 2rem; margin: 3rem 0; border-radius: 8px; position: relative; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.article-content blockquote p { font-style: italic; color: var(--text-secondary); margin: 0; }
.article-content blockquote::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(209, 125, 148, 0.05), transparent); animation: slide 3s infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { translateX(100%); } }
.article-content figure { margin: 2rem 0; padding: 0; text-align: center; }
.article-content figure img { max-width: 100%; height: auto; border-radius: 16px; display: block; margin: 0 auto 0.5rem auto; }
.article-content figure figcaption { font-size: 0.9rem; font-style: italic; color: var(--text-secondary); }

/* --- CAROUSEL, TAGS, AUTHOR, ETC. --- */
.carousel { position: relative; margin: 2.5rem 0; overflow: hidden; border-radius: 16px; background: var(--bg-card); }
.carousel-track { display: flex; transition: transform 0.5s ease-in-out; }
.carousel-item { flex: 0 0 100%; width: 100%; box-sizing: border-box; }
.carousel-item img { margin: 0; border-radius: 0; width: 100%; display: block; }
.carousel-item figcaption { padding: 1rem 1.5rem; text-align: center; font-size: 0.9rem; font-style: italic; color: var(--text-secondary); }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(255, 255, 255, 0.8); border: 1px solid var(--border-color); border-radius: 50%; width: 40px; height: 40px; cursor: pointer; font-size: 20px; color: var(--text-primary); z-index: 10; transition: background-color 0.3s ease; }
.carousel-btn.prev { left: 15px; }
.carousel-btn.next { right: 15px; }
.carousel-nav { position: absolute; bottom: 60px; width: 100%; text-align: center; z-index: 10; }
.carousel-dot { cursor: pointer; height: 12px; width: 12px; margin: 0 5px; background-color: rgba(255, 255, 255, 0.5); border: 1px solid rgba(0,0,0,0.2); border-radius: 50%; display: inline-block; transition: all 0.3s ease; }
.carousel-dot.active { background-color: white; transform: scale(1.2); }
.tags-container { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 3rem 0; }
.tag { background: rgba(209, 125, 148, 0.1); border: 1px solid rgba(209, 125, 148, 0.2); padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.9rem; transition: all 0.3s ease; color: var(--primary); font-weight: 500; }
.author-bio-box { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 2rem; margin: 4rem 0; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; transition: all 0.3s ease; }
.author-bio-box img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.author-bio-box h3 { margin: 0; }
.author-bio-box .author-title { color: var(--text-secondary); font-weight: 500; margin-bottom: 0.5rem; }
.author-bio-box p { font-size: 0.95rem; color: var(--text-secondary); max-width: 500px; }
.related-articles { padding-top: 3rem; border-top: 1px solid var(--border-color); margin-top: 3rem; }
.related-articles h2 { text-align: center; margin-bottom: 2rem; }
.related-articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.related-article-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; text-decoration: none; transition: all 0.3s ease; }
.related-article-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.related-article-card .related-card-content { padding: 1rem; }
.related-article-card h3 { font-size: 1rem; color: var(--text-primary); margin: 0 0 0.5rem; }
.related-article-card .related-card-category { font-size: 0.8rem; color: var(--text-secondary); }
.fab-container { position: fixed; bottom: 1.5rem; right: 1.5rem; display: flex; flex-direction: column; gap: 1rem; z-index: 100; }
.fab { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 20px rgba(209, 125, 148, 0.3); border: none; }
.fab svg { width: 24px; height: 24px; fill: white; }

/* --- FOOTER --- */
footer {
    background: #2a2a2a;
    color: #ccc;
    text-align: center;
    padding: 1.5rem 5%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.footer-main-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.social-media-links { display: flex; align-items: center; gap: 1.2rem; }
.social-media-links a { text-decoration: none; color: #e09aad; display: inline-block; transition: color 0.3s ease, transform 0.3s ease; }
.social-svg-icon { width: 26px; height: 26px; vertical-align: middle; }
.footer-main-row .copyright { font-size: 0.9rem; color: #aaa; text-align: center; margin: 0 1rem; }
.hiring-btn { background: #d17d94; color: white !important; padding: 0.7rem 1.5rem; border-radius: 25px; font-weight: bold; text-decoration: none; transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease; box-shadow: 0 2px 5px rgba(0,0,0,0.2); display: inline-block; white-space: nowrap; }

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (min-width: 768px) {
    .author-bio-box { flex-direction: row; text-align: left; gap: 2rem; }
}

@media (max-width: 768px) {
    .article-hero-image-container { height: auto; aspect-ratio: 16 / 9; }
    main { padding: 3rem 5%; }
    main#article-page-container { padding-top: 0; }
    .article-hero { padding-top: 3rem; }
    .article-content { padding: 0rem .6rem; }
    .footer-main-row { flex-direction: column; justify-content: center; gap: 1.5rem; }
    .footer-main-row .copyright { order: 2; margin: 0; }
    .social-media-links { order: 1; justify-content: center; }
    .hiring-btn { order: 3; }
    .nav-links { position: fixed; top: 108px; left: -100%; width: 100%; height: calc(100vh - 108px); background: white; flex-direction: column; justify-content: flex-start; align-items: center; padding-top: 2rem; transition: left 0.3s ease; box-shadow: 0 2px 10px rgba(0,0,0,0.1); z-index: 999; }
    .nav-links.active { left: 0; }
    .hamburger { display: flex; }
    .hamburger.active span:nth-child(1) { transform: rotate(-45deg) translate(-6px, 7px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }
}

@media (max-width: 480px) {
    main { padding: 2rem 2%; }
    main#article-page-container { padding-top: 0; }
    .article-hero { padding-top: 2rem; }
    .social-svg-icon { width: 24px; height: 24px; }
    .hiring-btn { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
    .footer-main-row { gap: 1.2rem; }
    header nav { padding: 0.5rem 2%; }
    .logo img { height: 60px; }
    .nav-links { top: 76px; height: calc(100vh - 76px); }
    body { padding-top: 76px; }
}

/* --- TOAST NOTIFICATION STYLES --- */
#toast-notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translate(-50%, 150%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    font-weight: 500;
    z-index: 2000;
    opacity: 0;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    pointer-events: none;
}
#toast-notification.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

/* --- HOVER-ONLY STYLES --- */
@media (hover: hover) {
    .logo:hover {
        opacity: 0.85;
    }
    .nav-links a:hover {
        background: #e09aad;
        color: white;
        transform: translateY(-2px);
    }
    .post-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    }
    .carousel-btn:hover {
        background-color: white;
    }
    /* Note: .carousel-dot.active already contains these styles, so hover is an addition */
    .carousel-dot:hover {
        background-color: white;
        transform: scale(1.2);
    }
    .tag:hover {
        background: var(--primary);
        color: white;
        transform: translateY(-2px);
    }
    .author-bio-box:hover {
        border-color: var(--primary);
        transform: translateY(-5px);
        box-shadow: 0 10px 40px rgba(209, 125, 148, 0.15);
    }
    .related-article-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    }
    .fab:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 30px rgba(209, 125, 148, 0.5);
    }
    .social-media-links a:hover {
        color: #fff;
        transform: scale(1.15) translateY(-2px);
    }
    .hiring-btn:hover {
        background: #e09aad;
        transform: translateY(-3px) scale(1.03);
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    }
}
