/* Decor Canvas - Main Design System & CSS Stylesheet */

:root {
    --primary: #e65b3c;
    --primary-hover: #cf492b;
    --primary-light: #fdf3f0;
    --pinterest-red: #e60023;
    --pinterest-red-hover: #ad081b;
    --secondary: #d4a373;
    --dark: #2c2825;
    --dark-muted: #5c554e;
    --light-bg: #fcf9f5;
    --card-bg: #ffffff;
    --border-color: #eee7df;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 2px 8px rgba(44, 40, 37, 0.05);
    --shadow-md: 0 4px 16px rgba(44, 40, 37, 0.08);
    --shadow-lg: 0 10px 30px rgba(44, 40, 37, 0.12);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 249, 245, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

.logo-icon {
    width: 34px;
    height: 34px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-muted);
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-toggle-btn {
    background: transparent;
    border: none;
    color: var(--dark);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background var(--transition-fast);
}

.search-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Pinterest Button Styling */
.pinterest-follow-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--pinterest-red);
    color: white !important;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 13.5px;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 12px rgba(230, 0, 35, 0.25);
}

.pinterest-follow-button:hover {
    background: var(--pinterest-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(230, 0, 35, 0.35);
}

.pinterest-follow-button svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 140px 1.5rem 80px;
    background: linear-gradient(135deg, #fcf9f5 0%, #f7efea 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(230, 91, 60, 0.08) 0%, rgba(253, 249, 245, 0) 70%);
    border-radius: 50%;
}

.hero-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(230, 91, 60, 0.1);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 1.2rem;
}

.hero-title span {
    color: var(--primary);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--dark-muted);
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(230, 91, 60, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 91, 60, 0.4);
}

.btn-outline {
    background: white;
    color: var(--dark);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Category Filter Bar */
.category-bar-section {
    padding: 2rem 1.5rem;
    background: white;
    border-bottom: 1px solid var(--border-color);
}

.category-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
}

.category-container::-webkit-scrollbar {
    display: none;
}

.category-chip {
    padding: 8px 20px;
    border-radius: 25px;
    background: var(--light-bg);
    color: var(--dark-muted);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.category-chip:hover, .category-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Grid Layout & Pinterest Cards */
.section {
    padding: 5rem 1.5rem;
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.section-title-wrapper {
    max-width: 600px;
}

.section-subtitle {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--dark);
    line-height: 1.25;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* Card Styling with Pinterest Overlay */
.decor-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.decor-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.card-img-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f0ebe4;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.decor-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--dark);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
    z-index: 2;
}

.pin-save-overlay-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--pinterest-red);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    font-weight: 600;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-5px);
    transition: all var(--transition-fast);
    z-index: 3;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.pin-save-overlay-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.card-img-wrapper:hover .pin-save-overlay-btn,
.decor-card:hover .pin-save-overlay-btn {
    opacity: 1;
    transform: translateY(0);
}

.pin-save-overlay-btn:hover {
    background: var(--pinterest-red-hover);
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.6rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.card-title a {
    color: var(--dark);
}

.card-title a:hover {
    color: var(--primary);
}

.card-excerpt {
    font-size: 0.92rem;
    color: var(--dark-muted);
    margin-bottom: 1.25rem;
    line-height: 1.55;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #f5efe9;
    font-size: 0.85rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar-sm {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10000;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.lightbox-content {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: var(--dark);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.lightbox-caption {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    color: var(--dark);
    margin-bottom: 1rem;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #2c2825 0%, #3e3834 100%);
    color: white;
    padding: 5rem 1.5rem;
    text-align: center;
    border-radius: var(--border-radius-lg);
    margin: 3rem 1.5rem;
}

.newsletter-container {
    max-width: 650px;
    margin: 0 auto;
}

.newsletter-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.newsletter-subtitle {
    color: #c5b8ad;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex-grow: 1;
    padding: 14px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 0.95rem;
    outline: none;
}

.newsletter-input::placeholder {
    color: #a0958a;
}

.newsletter-input:focus {
    border-color: var(--primary);
    background: rgba(255,255,255,0.15);
}

/* Search Modal Overlay */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 40, 37, 0.92);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.search-modal.active {
    display: flex;
}

.search-modal-content {
    width: 100%;
    max-width: 650px;
    position: relative;
}

.search-input-field {
    width: 100%;
    padding: 1.2rem 2rem;
    font-size: 1.4rem;
    border-radius: 40px;
    border: 2px solid var(--primary);
    background: white;
    outline: none;
    font-family: var(--font-body);
}

.search-close-btn {
    position: absolute;
    right: -50px;
    top: -50px;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* Footer */
.footer {
    background: #1e1b19;
    color: #a89e95;
    padding: 5rem 1.5rem 2rem;
    border-top: 1px solid #2e2925;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-text {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-heading {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #a89e95;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid #2e2925;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        transition: transform var(--transition-normal);
        z-index: 999;
    }
    .nav-menu.active {
        transform: translateY(0);
    }
    .mobile-toggle {
        display: block;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
