/* ============================================
   LUEN - Blog Listing Page Vanilla CSS
   ============================================ */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #FAF7F4;
    color: #391B26;
    overflow-x: hidden;
}

/* === BRAND COLORS === */
:root {
    --color-plum: #391B26;
    --color-lavender: #B39BA8;
    --color-rose-quartz: #D6C8D0;
    --color-merlot: #7A3451;
    --color-cream: #FAF7F4;
    --color-white: #FFFFFF;
}

/* === CONTAINER === */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === NAVIGATION === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background-color: rgba(250, 247, 244, 0.98);
    backdrop-filter: blur(12px);
    padding: 0.25rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-plum);
    cursor: pointer;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    flex: 1;
}

.nav-left {
    gap: 2.5rem;
}

.nav-right {
    justify-content: flex-end;
    gap: 2.5rem;
}

.nav-links-right {
    display: flex;
    gap: 2.5rem;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    display: flex;
    align-items: baseline;
    line-height: 1;
    color: var(--color-plum);
}

.logo-text-small .logo-l,
.logo-text-small .logo-e {
    font-size: 1.5rem;
}

.logo-text-small .logo-u,
.logo-text-small .logo-n {
    font-size: 1.25rem;
    margin-left: -1px;
    position: relative;
    top: -1px;
}

.nav-link {
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-plum);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-merlot);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-merlot);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--color-plum);
    border-left: 1px solid var(--color-rose-quartz);
    padding-left: 2rem;
}

.nav-icon {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-icon:hover {
    color: var(--color-merlot);
}

.cart-icon-wrapper {
    position: relative;
    cursor: pointer;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 1rem;
    height: 1rem;
    background-color: var(--color-merlot);
    border-radius: 50%;
    font-size: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.mobile-cart {
    display: none;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-cream);
    padding: 2rem;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 50;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-link {
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    color: var(--color-plum);
    text-decoration: none;
    border-bottom: 1px solid var(--color-rose-quartz);
    padding-bottom: 1rem;
}

/* === BLOG PAGE === */
.blog-page {
    background-color: var(--color-cream);
    min-height: 100vh;
    padding-top: 8rem;
    padding-bottom: 5rem;
}

/* === BLOG HEADER === */
.blog-header {
    text-align: center;
    margin-bottom: 5rem;
}

.blog-header-content {
    max-width: 48rem;
    margin: 0 auto;
}

.blog-subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.125rem;
    color: var(--color-merlot);
    display: block;
    margin-bottom: 0.5rem;
}

.blog-title {
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    color: var(--color-plum);
    margin-bottom: 2rem;
}

.category-filter {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
    border-top: 1px solid var(--color-rose-quartz);
    border-bottom: 1px solid var(--color-rose-quartz);
}

.category-btn {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-plum);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    color: var(--color-merlot);
}

/* === BLOG CONTENT === */
.blog-content {
    /* Container already applied */
}

/* === FEATURED POST === */
.featured-post {
    margin-bottom: 6rem;
}

.featured-link {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background-color: var(--color-white);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.featured-link:hover {
    transform: translateY(-4px);
}

.featured-image-wrapper {
    position: relative;
    height: 100%;
    min-height: 32rem;
    overflow: hidden;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.featured-link:hover .featured-image {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, rgba(57, 27, 38, 0.1));
}

.featured-content {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.post-category {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-merlot);
}

.post-dot {
    width: 0.25rem;
    height: 0.25rem;
    background-color: var(--color-rose-quartz);
    border-radius: 50%;
}

.post-read-time {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #555;
}

.featured-title {
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    line-height: 1.2;
    color: var(--color-plum);
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.featured-link:hover .featured-title {
    color: var(--color-merlot);
}

.featured-excerpt {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.125rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 1.5rem;
}

.read-more-link {
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-plum);
    border-bottom: 1px solid var(--color-plum);
    padding-bottom: 0.25rem;
    width: fit-content;
    transition: all 0.3s ease;
}

.featured-link:hover .read-more-link,
.post-link:hover .read-more-link {
    color: var(--color-merlot);
    border-bottom-color: var(--color-merlot);
}

/* === BLOG GRID === */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem 2rem;
    margin-bottom: 8rem;
}

.blog-post {
    /* Grid item */
}

.post-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.post-link:hover {
    transform: translateY(-4px);
}

.post-image-wrapper {
    position: relative;
    aspect-ratio: 4 / 5;
    background-color: var(--color-white);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.post-link:hover .post-image {
    transform: scale(1.05);
}

.post-content {
    /* Content wrapper */
}

.post-title {
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.3;
    color: var(--color-plum);
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.post-link:hover .post-title {
    color: var(--color-merlot);
}

.post-excerpt {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.875rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 1rem;
}

/* === NEWSLETTER CTA === */
.newsletter-cta {
    background-color: var(--color-plum);
    color: var(--color-cream);
    padding: 5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 80px;
}

.newsletter-fields {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 8px;
  width: 100%;
}

#luen-blog-newsletter-form input[type="email"] {
  border: none;
  color: #fff;
  }

#luen-blog-newsletter-form  {
   border-bottom: none;
}

.newsletter-content {
    position: relative;
    z-index: 10;
    max-width: 36rem;
    margin: 0 auto;
}

.newsletter-title {
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 1.875rem;
    color: var(--color-cream);
    margin-bottom: 1rem;
}

.newsletter-description {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: var(--color-rose-quartz);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-rose-quartz);
    padding-bottom: 0.5rem;
}

.newsletter-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--color-white);
}

.newsletter-input::placeholder {
    color: var(--color-lavender);
}

.newsletter-submit {
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-white);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.newsletter-submit:hover {
    color: var(--color-lavender);
}

/* === FOOTER === */
.footer {
    background-color: var(--color-white);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--color-rose-quartz);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-heading {
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-plum);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-plum);
}

.footer-logo-icon {
    margin-bottom: 0.5rem;
}

.footer-logo-text {
    font-family: 'Playfair Display', serif;
    display: flex;
    align-items: baseline;
    line-height: 1;
    color: var(--color-plum);
    margin-bottom: 1rem;
}

.footer-logo-text .logo-l,
.footer-logo-text .logo-e {
    font-size: 1.875rem;
}

.footer-logo-text .logo-u,
.footer-logo-text .logo-n {
    font-size: 1.5rem;
    margin-left: -1px;
    position: relative;
    top: -1px;
}

.footer-description {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 1rem;
}

.footer-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-plum);
}

.footer-location i {
    width: 1rem;
    height: 1rem;
}

.footer-location span {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-rose-quartz);
}

.footer-copyright {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #999;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--color-plum);
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 6px;
}

a[rel="category tag"] {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-merlot);
}

::-webkit-scrollbar-track {
    background: var(--color-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--color-rose-quartz);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-lavender);
}

/* === SELECTION === */
::selection {
    background-color: var(--color-lavender);
    color: var(--color-white);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .nav-left,
    .nav-right {
        display: none;
    }

    .mobile-menu-toggle,
    .mobile-cart {
        display: block;
    }

    .mobile-cart i {
        width: 1.5rem;
        height: 1.5rem;
        color: var(--color-plum);
    }

    .blog-title {
        font-size: 2.5rem;
    }

    .featured-link {
        grid-template-columns: 1fr;
    }

    .featured-image-wrapper {
        min-height: 20rem;
    }

    .featured-content {
        padding: 2.5rem;
    }

    .featured-title {
        font-size: 2rem;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-page {
        padding-top: 6rem;
    }

    .blog-title {
        font-size: 2rem;
    }

    .category-filter {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .featured-title {
        font-size: 1.5rem;
    }

    .featured-excerpt {
        font-size: 1rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .newsletter-cta {
        padding: 3rem 1.5rem;
    }

    .newsletter-title {
        font-size: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }
}
