/* ListPickers - Global Styles */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Lora:wght@400;500;600&display=swap');

/* ============================================================================
   REM-BASED VIEWPORT SYSTEM
   ============================================================================
   
   Mobile:  32rem canvas  = 320-639px viewport (10px base at 320px)
   Tablet:  64rem canvas  = 640-1279px viewport (10px base at 640px)
   Desktop: 128rem canvas = 1280px+ viewport (10px base at 1280px)
   
   Everything automatically scales proportionally to viewport!
   Write once (e.g., width: 10rem), works perfectly everywhere.
   
   ============================================================================ */

/* Mobile: 32rem canvas - Perfect for 320-639px screens */
@media (max-width: 639px) {
    html {
        font-size: 3.125vw;
        /* 10px at 320px, scales to 20px at 640px */
    }
}

/* Tablet: 64rem canvas - Perfect for 640-1279px screens */
@media (min-width: 640px) and (max-width: 1279px) {
    html {
        font-size: 1.5625vw;
        /* 10px at 640px, scales to 20px at 1280px */
    }
}

/* Desktop: 128rem canvas - Perfect for 1280px+ screens */
@media (min-width: 1280px) {
    html {
        font-size: 0.78125vw;
        /* 10px at 1280px, scales to 30px at 3840px */
    }
}

/* Optional: Cap max size for ultra-wide displays */
@media (min-width: 2560px) {
    html {
        font-size: 20px;
        /* 2x scale at 2K */
    }
}

@media (min-width: 3840px) {
    html {
        font-size: 30px;
        /* 3x scale at 4K */
    }
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lora', Georgia, serif;
    line-height: 1.6;
    color: #2d2d2d;
    background: linear-gradient(135deg, #FFD6E8 0%, #FFDAD6 50%, #FFE5D9 100%);
    background-attachment: fixed;
}

.container {
    max-width: 120rem;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
header {
    background: white;
    border-bottom: 0.4rem solid #2d2d2d;
    margin-bottom: 4rem;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    max-width: 100%;
    padding: 0;
}

header .logo-section {
    padding: 2rem 3rem;
    border-right: 0.4rem solid #2d2d2d;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
}

.tagline {
    font-family: 'Lora', Georgia, serif;
    color: #666;
    font-size: 1.1rem;
    margin-top: 0.2rem;
    font-weight: 400;
}

/* Navigation */
nav {
    display: flex;
    gap: 0;
    align-items: center;
    padding: 2rem 3rem;
}

nav a {
    color: #2d2d2d;
    text-decoration: none;
    padding: 0.8rem 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    transition: all 0.2s;
}

nav a:hover {
    color: #8B4049;
}

nav a.active {
    color: #8B4049;
}

/* Categories Burger Menu */
.categories-menu {
    position: relative;
    margin-left: 2rem;
}

.burger-btn {
    background: none;
    border: 0.2rem solid #2d2d2d;
    color: #2d2d2d;
    font-size: 2rem;
    padding: 0.4rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}

.burger-btn:hover {
    background: #8B4049;
    color: white;
    border-color: #8B4049;
}

.categories-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 0.4rem solid #2d2d2d;
    min-width: 20rem;
    z-index: 1000;
    margin-top: 0.5rem;
}

.categories-menu.active .categories-dropdown {
    display: block;
}

.categories-dropdown a {
    display: block;
    padding: 1rem 2rem;
    border-bottom: 0.2rem solid #e0e0e0;
    font-size: 1.2rem;
}

.categories-dropdown a:last-child {
    border-bottom: none;
}

.categories-dropdown a:hover {
    background: #FFD6E8;
}

/* Language Switcher Dropdown */
.lang-switcher {
    position: relative;
    padding-left: 2rem;
    margin-left: 2rem;
    border-left: 0.2rem solid #e0e0e0;
}

.lang-btn {
    background: none;
    border: 0.2rem solid #2d2d2d;
    color: #2d2d2d;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    transition: all 0.2s;
}

.lang-btn:hover {
    background: #8B4049;
    color: white;
    border-color: #8B4049;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 0.4rem solid #2d2d2d;
    min-width: 10rem;
    z-index: 1000;
    margin-top: 0.5rem;
}

.lang-switcher.active .lang-dropdown {
    display: block;
}

.lang-dropdown a {
    display: block;
    padding: 1rem 2rem;
    border-bottom: 0.2rem solid #e0e0e0;
    font-size: 1.2rem;
}

.lang-dropdown a:last-child {
    border-bottom: none;
}

.lang-dropdown a:hover {
    background: #FFD6E8;
}

.lang-switcher a {
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.6rem 1rem;
    border-radius: 0.3rem;
    background: #f5f5f5;
}

.lang-switcher a.active {
    background: #2d2d2d;
    color: white;
}

/* Categories */
.categories {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.categories a {
    background: white;
    padding: 0.8rem 1.6rem;
    border: 0.2rem solid #2d2d2d;
    text-decoration: none;
    color: #2d2d2d;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 0.05rem;
    transition: all 0.2s;
}

.categories a:hover {
    background: #2d2d2d;
    color: white;
}

/* Posts Grid */
.posts {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.post-card {
    background: white;
    border: 0.3rem solid #2d2d2d;
    padding: 0;
    transition: all 0.2s;
    display: flex;
    flex-direction: row;
}

.post-card:hover {
    box-shadow: 0.8rem 0.8rem 0 rgba(45, 45, 45, 0.2);
    transform: translate(-0.4rem, -0.4rem);
}

.post-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 3rem;
    background: #fafafa;
    border-right: 0.3rem solid #2d2d2d;
    flex: 0 0 60%;
    text-decoration: none;
    transition: background 0.2s;
}

.post-images:hover {
    background: #f0f0f0;
}

.polaroid-image {
    background: white;
    padding: 1rem 1rem 3rem 1rem;
    box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.15);
    transform: rotate(-2deg);
    transition: all 0.2s;
}

.polaroid-image:nth-child(2) {
    transform: rotate(1deg);
}

.polaroid-image:nth-child(3) {
    transform: rotate(-3deg);
}

.polaroid-image:hover {
    transform: rotate(0deg) scale(1.05);
    z-index: 10;
}

.polaroid-image img {
    width: 100%;
    height: 16rem;
    object-fit: cover;
    display: block;
}

.post-content {
    padding: 3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-card h2,
.post-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-card h2 a,
.post-card h3 a {
    color: #2d2d2d;
    text-decoration: none;
}

.post-card h2 a:hover,
.post-card h3 a:hover {
    color: #8B4049;
}

.post-summary {
    font-family: 'Lora', Georgia, serif;
    color: #555;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    color: #999;
    padding-top: 1.5rem;
    border-top: 0.1rem solid #e0e0e0;
}

.post-category {
    background: #2d2d2d;
    color: white;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 0.05rem;
}

.read-more {
    color: #8B4049;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 0.05rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* Post Detail Page */
.post-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.post-header {
    background: white;
    border: 0.3rem solid #2d2d2d;
    padding: 3rem;
    transform: rotate(-1deg);
    box-shadow: 0.6rem 0.6rem 0 rgba(45, 45, 45, 0.1);
}

.post-header .post-category {
    display: inline-block;
    background: #8B4049;
    color: white;
    padding: 0.5rem 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    margin-bottom: 1.5rem;
}

.post-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.2;
    color: #2d2d2d;
}

.post-header .post-summary {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.4rem;
    color: #555;
    line-height: 1.6;
}

.reasoning {
    background: white;
    border: 0.3rem solid #2d2d2d;
    padding: 3rem;
    transform: rotate(0.5deg);
    box-shadow: 0.6rem 0.6rem 0 rgba(45, 45, 45, 0.1);
}

.reasoning h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #8B4049;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.reasoning p {
    font-family: 'Lora', Georgia, serif;
    color: #555;
    font-size: 1.4rem;
    line-height: 1.6;
}

/* Products Section */
.products-section {
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 3rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    color: #2d2d2d;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(28rem, 31rem));
    gap: 4rem;
    justify-content: center;
}

.product-polaroid {
    background: white;
    padding: 2rem 2rem 4rem 2rem;
    border: 0.3rem solid #2d2d2d;
    box-shadow: 0.8rem 0.8rem 0 rgba(45, 45, 45, 0.15);
    transition: all 0.3s;
    position: relative;
}

.product-polaroid:nth-child(odd) {
    transform: rotate(-2deg);
}

.product-polaroid:nth-child(even) {
    transform: rotate(1.5deg);
}

.product-polaroid:hover {
    transform: rotate(0deg) scale(1.05);
    z-index: 10;
    box-shadow: 1.2rem 1.2rem 0 rgba(45, 45, 45, 0.2);
}

.polaroid-rank {
    position: absolute;
    top: -1rem;
    left: -1rem;
    background: #8B4049;
    color: white;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 900;
    border: 0.3rem solid #2d2d2d;
    z-index: 2;
}

.polaroid-price-tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #FFD6E8;
    color: #2d2d2d;
    padding: 0.8rem 1.5rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    border: 0.2rem solid #2d2d2d;
    transform: rotate(5deg);
    z-index: 2;
}

.polaroid-img-wrap {
    display: block;
    margin-bottom: 2rem;
    overflow: hidden;
    border: 0.2rem solid #e0e0e0;
}

.polaroid-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.polaroid-img-wrap:hover img {
    transform: scale(1.05);
}

.polaroid-info {
    text-align: center;
}

.polaroid-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #2d2d2d;
}

.polaroid-description {
    font-family: 'Lora', Georgia, serif;
    color: #555;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.polaroid-link {
    display: inline-block;
    background: #2d2d2d;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 0.05rem;
    transition: all 0.2s;
    border: 0.2rem solid #2d2d2d;
}

.polaroid-link:hover {
    background: #8B4049;
    border-color: #8B4049;
}

/* Category Page */
.page-title {
    background: white;
    border: 0.3rem solid #2d2d2d;
    padding: 3rem 4rem;
    margin-bottom: 3rem;
}

.page-title h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.6rem;
    font-weight: 700;
}

/* ============================================================================
   RESPONSIVE: POST CARDS
   ============================================================================ */

/* Mobile: 1 image on top, vertical layout */
@media (max-width: 639px) {
    /* Header - Stack logo and nav */
    header .container {
        flex-direction: column;
    }
    
    header .logo-section {
        border-right: none;
        border-bottom: 0.4rem solid #2d2d2d;
        padding: 2rem;
        text-align: center;
    }
    
    nav {
        padding: 1.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    nav a {
        padding: 0.6rem 1.5rem;
        font-size: 1.1rem;
    }
    
    .categories-menu,
    .lang-switcher {
        margin-left: 1rem;
    }
    
    .categories-dropdown {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Post intro */
    .post-intro {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .post-header,
    .reasoning {
        transform: rotate(0deg);
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-polaroid {
        transform: rotate(0deg) !important;
    }
    
    /* Post cards */
    .post-card {
        flex-direction: column;
    }
    
    .post-images {
        border-right: none;
        border-bottom: 0.3rem solid #2d2d2d;
        flex: none;
        grid-template-columns: 1fr;
    }
    
    .polaroid-image:nth-child(2),
    .polaroid-image:nth-child(3) {
        display: none;
    }
    
    .post-content {
        padding: 2rem;
    }
}

/* Tablet: 2 images visible, 50% width */
@media (min-width: 640px) and (max-width: 1279px) {
    /* Post intro */
    .post-intro {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Post cards */
    .post-images {
        flex: 0 0 50%;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .polaroid-image:nth-child(3) {
        display: none;
    }
}