/* src/static/css/blog/blog.css */
/* =========================
   DEFAULT (LIGHT)
========================= */
:root {
    --bg: #ffffff;
    --text: #222;
    --card: #ffffff;
    --border: #eee;
    --accent: #ff6600;
}

/* =========================
   DARK MODE VARIABLES
========================= */
.dark-mode {
    /* --bg: #121212; */
    --bg: #1e1f20;
    --text: #e4e4e4;
    --card: #1e1e1e;
    --border: #2a2a2a;
    --accent: #ff8c42;
}

/* =========================
   APPLY VARIABLES
========================= */
html body {
    background-color: var(--bg);
    color: var(--text);
    transition: background 0.3s, color 0.3s;
}

.post-card {
    background: var(--card);
    border-color: var(--border);
}

.post-title {color: var(--text);}
.post-meta {color: #aaa;}
.post-footer {border-top: 1px solid var(--border);}

.view-all a {
    border-color: var(--accent);
    color: var(--accent);
}

.view-all a:hover {
    background: var(--accent);
    color: #fff;
}

.post-badge {background-color: var(--accent);}

/* =========================
   TOGGLE BUTTON
========================= */
.dark-toggle {
    position: fixed;
    top: 0;
    right: 90px;
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-size: 18px;
    z-index: 999;
    transition: all 0.3s ease;
}

.dark-mode .dark-toggle{top: 4px;}

.dark-toggle:hover {transform: scale(1.1);}

/* ============================
    BLOG POST PAGE
============================== */

.main-container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* =========================
        FEATURED POST
========================= */
.post_card.featured {
    grid-column: span 2;
    display: flex;
    height: 380px;
}

/* =========================
    CARD
========================= */
.post_card {
	width: 500px;
	max-width: 100%;
	background-color: var(--card);
	border-radius: 18px;
	overflow: hidden;
	transition: all 0.35s ease;
	border: 1px solid var(--border);
}

.dark-mode .post_card {
    /* background-color: #1e1e1e; */
    /* border: 1px solid #2a2a2a; */
    /* background: linear-gradient(145deg,#1e1e1e,#181818); */

    /* subtle glow instead of flat look */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
	background: rgba(30, 30, 30, 0.7);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.05);
}



.post_card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}


/* clickable overlay */
.post-link {
    position: absolute;
    inset: 0;
    z-index: 5;
}

/* =========================
   IMAGE
========================= */
.post-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

/* .post_card.featured .post-img {
    height: 100%;
    width: 50%;
} */

.post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post_card:hover img {
    transform: scale(1.08);
}

/* badge */
.post-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ff6600;
    color: #fff;
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 20px;
}

/* =========================
   CONTENT
========================= */
.post-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* .post_card.featured .post-content {
    width: 50%;
    padding: 30px;
} */

/* =========================
   META
========================= */
.post-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.dark-mode .post_card .post-meta {color: #aaa;}

/* =========================
   TITLE
========================= */
.post-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-bottom: 15px;
    line-height: 1.4;
}

.dark-mode .post_card .post-title {color: #f1f1f1;}

.post_card.featured .post-title {
    font-size: 26px;
}

/* =========================
   FOOTER
========================= */
.post-footer {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.dark-mode .post_card .post-footer {border-top: 1px solid #2a2a2a;}

.post-footer i {
    color: #ff6600;
}

/* read more animation */
.read-more {
    font-weight: 500;
    transition: transform 0.3s ease;
}

.post_card:hover .read-more {
    /* transform: translateX(5px);
    -webkit-transform: translateX(5px);
    -moz-transform: translateX(5px);
    -ms-transform: translateX(5px);
    -o-transform: translateX(5px); */
	transform: translateY(-6px);
}

.dark-mode .post_card:hover {
	transform: translateY(-6px);

	/* glow instead of bright shadow */
	box-shadow: 0 15px 40px rgba(255, 102, 0, 0.15);
}

/* =========================
   HEADER
========================= */
.headlineWithLogo {
    text-align: center;
    margin-bottom: 30px;
}

.headlineWithLogo img {
    width: 50px;
    margin-bottom: 10px;
}

.headlineWithLogo span {
    font-size: 28px;
}

/* =========================
   PAGINATION
========================= */
.pagination_1 {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 10px;
}

/* =========================
   VIEW ALL
========================= */
.view-all {
    text-align: center;
    margin: 30px 0;
}

.view-all a {
    padding: 10px 20px;
    border: 1px solid #ff6600;
    border-radius: 25px;
    text-decoration: none;
    color: #ff6600;
    transition: 0.3s;
}

.view-all a:hover {
    background: #ff6600;
    color: #fff;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .post_wrapper {
        grid-template-columns: 1fr;
    }

    .post_card.featured {
        flex-direction: column;
        height: auto;
    }

    .post_card.featured .post-img,
    .post_card.featured .post-content {
        width: 100%;
    }

    .post-title {
        font-size: 16px;
    }
}

