/* FireBerries - Original base44 Design System */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Zain', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #FAF8F5;
    color: #5C5C5C;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Zain', serif;
}

/* Header */
.site-header {
    background-color: white;
    border-bottom: 1px solid #E6DCD1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}

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

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 2.5rem;
    width: auto;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.desktop-nav a {
    text-decoration: none;
    color: #7A7A7A;
    font-size: 1.125rem;
    font-weight: 500;
    transition: color 0.2s;
}

.desktop-nav a:hover {
    color: #A88B74;
}

/* Hero Section */
.hero-section {
    background-color: white;
    padding: 3rem 1.5rem;
    text-align: center;
    width: 100%;
    margin-bottom: 3rem;
}

.hero-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
    margin: 0 auto 2rem auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 3.25rem);
    font-family: 'Georgia', 'Zain', serif;
    color: #4A4A4A;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.75vw, 1.25rem);
    color: #5C5C5C;
    max-width: 42rem;
    margin: 0 auto;
}

/* Main Container */
.main-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem 3rem 1rem;
    flex-grow: 1;
}

/* Category Filter */
.category-filter {
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    max-width: 64rem;
    margin: 0 auto;
}

.category-btn {
    background: white;
    border: 2px solid transparent;
    border-radius: 1rem;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.07);
}

.category-btn.active {
    transform: translateY(-2px);
}

.category-icon {
    width: 2rem;
    height: 2rem;
    transition: color 0.2s;
}

.category-icon svg {
    width: 100%;
    height: 100%;
}

.category-label {
    font-weight: 600;
    color: #4A4A4A;
    font-size: 0.9rem;
}

.category-count {
    font-size: 0.75rem;
    color: #7A7A7A;
    background-color: #F3F4F6;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Post Card */
.post-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 14rem;
    overflow: hidden;
    background-color: #F5F1EC;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #F5F1EC;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.5), rgba(0,0,0,0.2), transparent);
}

.card-badge-wrapper {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
}

.card-badge {
    background: rgba(255, 255, 255, 0.9);
    color: #A88B74;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

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

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4A4A4A;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    min-height: 3rem;
    transition: color 0.2s;
}

.post-card:hover .card-title {
    color: #A88B74;
}

.card-excerpt {
    font-size: 1.125rem;
    color: #5C5C5C;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Post Page */
.post-page {
    max-width: 50rem;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.post-article {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.post-featured-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.post-header {
    padding: 2rem;
}

.badge {
    display: inline-block;
    background: #A88B74;
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.post-h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #4A4A4A;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-meta-info {
    color: #7A7A7A;
    font-size: 1rem;
}

.post-body {
    padding: 0 2rem 2rem 2rem;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #5C5C5C;
}

.post-body h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.875rem;
    color: #4A4A4A;
}

.post-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    color: #4A4A4A;
}

.post-body p {
    margin: 1.25rem 0;
}

.post-body ul, .post-body ol {
    margin: 1.25rem 0;
    padding-left: 2rem;
}

.post-body li {
    margin: 0.5rem 0;
}

.post-tags {
    padding: 0 2rem 2rem 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    background: #F5F1EC;
    color: #7A7A7A;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.back-link {
    text-decoration: none;
    color: #A88B74;
    font-weight: bold;
    font-size: 1.125rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: #866F5D;
}

/* Footer */
.site-footer {
    background: white;
    border-top: 1px solid #E6DCD1;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-container {
    max-width: 96rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    height: 2rem;
}

.footer-text {
    font-size: 1rem;
    color: #7A7A7A;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    font-size: 1rem;
}

.footer-links a {
    color: #7A7A7A;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #A88B74;
}

/* Legal Pages */
.legal-page {
    max-width: 60rem;
    margin: 0 auto;
    padding: 3rem 1rem;
    min-height: 60vh;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
}

.legal-header h1 {
    font-size: 2.5rem;
    color: #4A4A4A;
    margin-bottom: 1rem;
    font-family: serif;
}

.legal-subtitle {
    font-size: 1.125rem;
    color: #7A7A7A;
}

.legal-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    color: #4A4A4A;
    margin-bottom: 1rem;
    font-family: serif;
}

.legal-section h3 {
    font-size: 1.25rem;
    color: #4A4A4A;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.legal-section p {
    color: #5C5C5C;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.legal-section strong {
    color: #4A4A4A;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-h1 {
        font-size: 2rem;
    }

    .post-body {
        padding: 0 1rem 1rem 1rem;
        font-size: 1rem;
    }

    .post-header {
        padding: 1.5rem 1rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
