/* Vanilla CSS that emulates the Tailwind styling of the Lovable theme */

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

body {
    background-color: var(--bg-color, #0a0a0a);
    color: #ffffff;
    font-family: var(--body-font, 'Inter', sans-serif);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font, 'Playfair Display', serif);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

ul, ol {
    list-style: none;
}

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

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.flex { display: flex; }
.grid { display: grid; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--primary-color, #E91E63);
    padding: 1rem 0;
}

.site-title {
    font-family: var(--heading-font, 'Playfair Display', serif);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}
.site-title span {
    color: var(--primary-color, #E91E63);
}

.main-navigation ul {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.main-navigation a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    transition: color 0.2s ease;
}
.main-navigation a:hover {
    color: var(--primary-color, #E91E63);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color, #E91E63);
    color: #ffffff;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
}
.btn-primary:hover {
    opacity: 0.9;
}

/* Hero Section */
.hero-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* Glowing background effect */
.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle, rgba(233,30,99,0.15) 0%, rgba(10,10,10,0) 70%);
    pointer-events: none;
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1;
    color: #f5f2f0;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.hero-content p {
    color: #ad9e85;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-content .highlight {
    color: var(--primary-color, #E91E63);
    font-weight: 600;
}

.hero-image-wrapper {
    position: relative;
    margin: 1rem; /* Space for absolute pseudo elements */
    z-index: 10;
}

.hero-image {
    position: relative;
    z-index: 10;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
}

/* Dark Green Olive Block (top left) */
.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: -1rem;
    left: -1rem;
    width: 100%;
    height: 100%;
    background-color: #3D3D2D;
    z-index: 1;
}

/* Pink border (bottom right) */
.hero-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color, #E91E63);
    z-index: 1;
}

/* Stats Banner */
.stats-banner {
    background-color: var(--primary-color, #E91E63);
    padding: 4rem 0;
    color: #ffffff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-family: var(--heading-font, 'Playfair Display', serif);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Footer */
.site-footer {
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--primary-color, #E91E63);
    background-color: var(--bg-color, #0a0a0a);
    color: #a1a1aa;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}
.footer-title {
    margin-bottom: 1.5rem;
    display: inline-block;
}
.footer-desc {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.6;
}
.footer-address {
    font-size: 0.875rem;
    line-height: 1.6;
}
.footer-heading {
    font-family: var(--heading-font, 'Playfair Display', serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}
.footer-menu li {
    margin-bottom: 0.75rem;
}
.footer-menu a {
    font-size: 0.875rem;
    color: #a1a1aa;
    transition: color 0.2s ease;
}
.footer-menu a:hover {
    color: var(--primary-color, #E91E63);
}
.footer-nl-desc {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.footer-nl-form {
    display: flex;
    gap: 0.5rem;
}
.footer-nl-form input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.625rem 1rem;
    color: #ffffff;
    border-radius: 0.375rem;
    min-width: 0;
    flex-grow: 1;
    font-family: inherit;
    font-size: 0.875rem;
}
.footer-nl-form input:focus {
    outline: none;
    border-color: var(--primary-color, #E91E63);
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
}
.footer-bottom p {
    font-size: 0.875rem;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Category / Definition Page styles */
.category-header {
    padding: 3rem 0 2rem;
}
.breadcrumb {
    font-size: 0.875rem;
    color: #a1a1aa;
    margin-bottom: 1.5rem;
}
.breadcrumb a {
    color: #a1a1aa;
}
.breadcrumb a:hover {
    color: #ffffff;
}
.breadcrumb .separator {
    margin: 0 0.5rem;
}
.breadcrumb .current {
    color: #ffffff;
    font-weight: 500;
}
.category-header .page-title {
    font-size: 2.75rem;
    margin-bottom: 0;
}

.definition-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding-bottom: 5rem;
}
.def-card-link {
    display: block;
    background-color: #F8F6F0; /* Off-white cream */
    padding: 2rem;
    border: 1px solid transparent;
    height: 100%;
    color: #1a1a1a;
    position: relative;
    transition: all 0.2s ease;
}
.def-card-link:hover {
    border-color: var(--primary-color, #E91E63);
    background-color: #F4F1EA;
    box-shadow: 8px 8px 0px 0px var(--primary-color, #E91E63);
    transform: translate(-4px, -4px);
}
.def-card-tag {
    display: inline-block;
    background-color: var(--primary-color, #E91E63);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.6rem;
    margin-bottom: 1.5rem;
    border-radius: 2px;
}
.def-card-title {
    font-family: var(--heading-font, 'Playfair Display', serif);
    font-size: 1.375rem;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 1rem;
    transition: color 0.2s ease;
}
.def-card-link:hover .def-card-title {
    color: var(--primary-color, #E91E63);
}
.def-card-meta {
    font-size: 0.8rem;
    color: #71717a;
    margin-bottom: 1.25rem;
}
.def-card-excerpt {
    font-size: 0.875rem;
    color: #52525b;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .definition-grid {
        grid-template-columns: 1fr;
    }
    .category-header .page-title {
        font-size: 2.5rem;
    }
}

/* Single View */
.single-post-wrapper {
    max-width: 800px;
    margin: 4rem auto 6rem;
}
.single-post-tag {
    display: inline-block;
    background-color: var(--primary-color, #E91E63);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.6rem;
    margin-bottom: 1.5rem;
    border-radius: 2px;
}
.single-post-title {
    font-family: var(--heading-font, 'Playfair Display', serif);
    font-size: 3rem;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 2rem;
}
.single-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.single-post-meta .author-avatar img {
    border-radius: 50%;
    width: 44px;
    height: 44px;
    object-fit: cover;
}
.single-post-meta .meta-details {
    display: flex;
    flex-direction: column;
}
.single-post-meta .author-name {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.875rem;
}
.single-post-meta .post-date-read {
    color: #a1a1aa;
    font-size: 0.875rem;
}
.single-post-content {
    font-size: 1.125rem;
    color: #e5e7eb;
    line-height: 1.75rem;
}
.single-post-content p {
    margin-bottom: 1.75rem;
}
.single-post-content h2 {
    font-family: var(--heading-font, 'Playfair Display', serif);
    font-size: 2.25rem;
    line-height: 2.5rem;
    color: #ffffff;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}
.single-post-content h3 {
    font-family: var(--heading-font, 'Playfair Display', serif);
    font-size: 1.5rem;
    line-height: 2rem;
    color: #ffffff;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.single-post-content ul, .single-post-content ol {
    margin-bottom: 1.75rem;
    padding-left: 1.5rem;
}
.single-post-content li {
    margin-bottom: 0.5rem;
}
.single-post-content a {
    color: var(--primary-color, #E91E63);
    text-decoration: underline;
}

/* Table Styles */
.single-post-content table {
    width: 100%;
    margin-bottom: 2.5rem;
    border-collapse: collapse;
    border: 3px solid rgba(255,255,255,0.1);
}
.single-post-content th {
    background-color: var(--primary-color, #E91E63);
    color: #ffffff;
    font-family: var(--heading-font, 'Playfair Display', serif);
    font-weight: 700;
    text-align: left;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
}
.single-post-content td {
    background-color: #0a0a0a;
    color: #e5e7eb;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s ease;
}
.mobile-menu-toggle:hover {
    color: var(--primary-color, #E91E63);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .site-header .container {
        flex-wrap: wrap;
    }
    .main-navigation {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .main-navigation.is-active {
        display: block;
    }
    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .main-navigation a {
        font-size: 1.125rem;
        padding: 0.5rem 0;
        display: block;
        width: 100%;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .cta-btn {
        display: none; /* Hide primary CTA on tiny screens to fit logo and toggle */
    }
}
