@font-face {
    font-family: 'Erasaur';
    src: url('./fonts/Erasaur-wjZ9.woff') format('woff');
    font-display: swap;
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Banner Section */
.banner {
    position: relative;
    height: 20vh;
    background-image: url('images/Dinosaur banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    width: 100%;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

/* Firefox-specific fix */
@-moz-document url-prefix() {
    .banner {
        background-attachment: scroll;
        transform: translateZ(0);
    }
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner h1 {
    font-family: 'Erasaur', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner p {
    font-size: 1.8rem;
    opacity: 0.9;
}

/* Navigation */
.nav-home {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: none;
}

.nav-home:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-home.show {
    display: block;
}

/* Main Content Layout with Sidebar */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

.main-posts-area {
    min-width: 0; /* Prevents grid overflow */
}

/* Main Content */
.main-content {
    padding: 8rem 0 4rem 0;
}

.section {
    margin-bottom: 4rem;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #2c3e50;
    font-weight: 300;
}

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

/* Latest Posts - Vertical Layout */
.posts-grid.vertical {
    grid-template-columns: 1fr;
    max-width: none;
    margin: 2rem 0 0 0;
}

.posts-grid.vertical .post-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.posts-grid.vertical .post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.posts-grid.vertical .post-thumbnail {
    width: 150px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
}

.posts-grid.vertical .post-thumbnail:not([style*="background-image"]) {
    background: linear-gradient(135deg, #ffa726, #ff7043);
}

.posts-grid.vertical .post-thumbnail::after {
    display: none;
}

.posts-grid.vertical .post-info {
    padding: 0;
    flex: 1;
}

.posts-grid.vertical .post-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.posts-grid.vertical .post-excerpt {
    margin-bottom: 0.75rem;
}

/* Regular Post Cards */
.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.post-thumbnail:not([style*="background-image"]) {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.post-thumbnail:not([style*="background-image"])::after {
    content: '🦖';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    opacity: 0.7;
}

.post-info {
    padding: 1.5rem;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    line-height: 1.3;
}

.post-excerpt {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.post-date {
    color: #999;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Sidebar Styles */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 2rem;
}

/* Search Box */
.sidebar-search {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #2d5016;
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.search-input::placeholder {
    color: #6c757d;
}

/* About This Blog Box - Updated to cream/beige */
.about-blog {
    background: linear-gradient(135deg, #f9f5f0, #f5efe6);
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(139, 115, 85, 0.2);
    margin-top: 6rem;
}

/* Fix sidebar spacing for different contexts */
.home-sidebar .about-blog {
    margin-top: 6rem;
}

.post-sidebar .about-blog {
    margin-top: 0;
}

.about-blog h3 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: #6b5544;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-blog p {
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.about-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.about-links a {
    color: #8b7355;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.25rem 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.about-links a:hover {
    color: #6b5544;
    border-bottom-color: #8b7355;
}

/* Rexie's Content Box - Keep as is, works well! */
.rexie-content {
    background: linear-gradient(135deg, #c8d7ba, #d4e0c8);
    color: white;
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rexie-content::before {
    content: '🦖';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    opacity: 0.3;
}

.rexie-content h3 {
    font-family: 'Erasaur', serif;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    color: #3d4f2f;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rexie-content h4 {
    font-size: 1.1rem;
    margin: 1rem 0 0.5rem 0;
    color: #2c3e50;
    font-weight: 600;
}

.rexie-content p {
    line-height: 1.5;
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

.rexie-content a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.rexie-content a:hover {
    color: #2d5016;
    border-bottom-color: #d4f0a7;
}

.rexie-content ul {
    margin-left: 1.2rem;
    margin-bottom: 0.75rem;
}

.rexie-content li {
    margin-bottom: 0.3rem;
    color: white;
}

/* Quote Box - Updated to soft lavender/purple */
.quote-box {
    background: linear-gradient(135deg, #e8d5f0, #f0e5f5);
    color: #4a3a5a;
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(138, 101, 165, 0.2);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(138, 101, 165, 0.2);
}

.quote-box::before {
    display: none;
}

.quote-box h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #4a3a5a;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.quote-text {
    font-size: 1.05rem;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 1rem;
    color: #4a3a5a;
    //padding-left: 1.5rem;
}

.quote-author {
    font-size: 0.85rem;
    color: #5a4a6a;
    font-weight: 500;
}

/* Post Content View */
.post-content {
    display: none;
    padding-top: 4rem;
}

.post-hero-image {
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 2rem;
}

.post-content-inner {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* Comments Section Styling */
.comments-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.comments-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

/* Emote specific styling */
#emote_com {
    min-height: 200px;
}

/* Loading state for comments */
.comments-loading {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

/* Subscribe Box - Updated to soft pink */
.subscribe-box {
    background: linear-gradient(135deg, #ffe5f0, #fff0f5);
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 4px 12px rgba(255, 182, 193, 0.3);
    border: 1px solid rgba(255, 182, 193, 0.3);
}

.subscribe-box h3 {
    color: #8b5a6b;
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1.1rem;
}

.subscribe-box p {
    color: #555;
}

.subscribe-box a {
    color: #a66b7f;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.subscribe-box a:hover {
    color: #8b5a6b;
    border-bottom-color: #a66b7f;
}

.subscribe-form {
    margin: 15px 0;
}

.subscribe-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
}

.subscribe-input:focus {
    outline: none;
    border-color: #a66b7f;
}

.subscribe-btn {
    width: 100%;
    background-color: #a66b7f;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.subscribe-btn:hover {
    background-color: #8b5a6b;
}

.privacy-note {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

/* Make all sidebar boxes consistent - remove individual margins since we use gap */
.about-blog,
.subscribe-box,
.sidebar-search,
.rexie-content,
.quote-box {
    margin-bottom: 0;
}

/* Privacy Notice for Post Pages */
.privacy-notice {
    background: #f8f9fa;
    padding: 15px;
    border-left: 4px solid #2d5a27;
    margin-top: 30px;
    border-radius: 0 8px 8px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-with-sidebar {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .sidebar {
        order: -1;
        position: static;
        gap: 1.5rem;
    }
    
    .banner h1 {
        font-size: 2.5rem;
    }
    
    .banner p {
        font-size: 1rem;
    }
    
    .posts-grid.vertical .post-card {
        flex-direction: column;
        text-align: center;
    }
    
    .posts-grid.vertical .post-thumbnail {
        width: 100%;
        height: 150px;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    /* Responsive comments */
    .comments-section {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .about-blog,
    .sidebar-search,
    .subscribe-box,
    .rexie-content,
    .quote-box {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .main-content {
        padding: 2rem 0;
    }
    
    .banner h1 {
        font-size: 2rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .nav-home {
        top: 15px;
        left: 15px;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .sidebar {
        gap: 1.25rem;
    }
    
    .about-blog,
    .sidebar-search,
    .subscribe-box,
    .rexie-content,
    .quote-box {
        padding: 1rem;
    }
}

.interview-title {
    margin-bottom: 10px;
}

.interview-subtitle {
    margin-top: 5px;
}
