/* DinerDroid Blog Styles */

/* DinerDroid Color Scheme */
:root {
    --dinerdroid-primary: #FF6600;
    --dinerdroid-secondary: #FF8800;
    --dinerdroid-dark: #E55A00;
    --dinerdroid-light: #FFF3E6;
    --dinerdroid-text: #2D1B0A;
    --dinerdroid-muted: #8B5A3C;
}

/* Header Styles */
.dinerdroid-header {
    background: linear-gradient(135deg, var(--dinerdroid-primary) 0%, var(--dinerdroid-secondary) 100%);
    box-shadow: 0 2px 10px rgba(229, 90, 0, 0.3);
    padding: 1rem 0;
}

.dinerdroid-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.dinerdroid-logo {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.dinerdroid-tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Override main site styles for DinerDroid navigation */
.dinerdroid-header .nav-links a.active {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    font-weight: 700 !important;
    position: relative;
    border-radius: 6px;
    z-index: 10;
    padding-bottom: 0.5em;
}

.dinerdroid-header .nav-links a.active::after {
    content: '';
    display: block;
    height: 3px;
    width: 60%;
    margin: 0.2em auto 0 auto;
    background: linear-gradient(90deg, white, rgba(255, 255, 255, 0.8));
    border-radius: 2px;
    position: absolute;
    left: 20%;
    bottom: 0;
    z-index: 11;
}

.nav-links a.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-weight: 700;
    position: relative;
    border-radius: 6px;
    z-index: 10;
    padding-bottom: 0.5em;
}

.nav-links a.active::after {
    content: '';
    display: block;
    height: 3px;
    width: 60%;
    margin: 0.2em auto 0 auto;
    background: linear-gradient(90deg, white, rgba(255, 255, 255, 0.8));
    border-radius: 2px;
    position: absolute;
    left: 20%;
    bottom: 0;
    z-index: 11;
}

/* Hero Styles */
.blog-hero {
    background: linear-gradient(135deg, var(--dinerdroid-light) 0%, #FFF9F0 100%);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 3px solid var(--dinerdroid-primary);
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--dinerdroid-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--dinerdroid-muted);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--dinerdroid-text);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Post Card Styles */
.featured-post,
.recent-posts {
    padding: 4rem 0;
}

.featured-post h2,
.recent-posts h2 {
    font-size: 2.5rem;
    color: var(--dinerdroid-primary);
    text-align: center;
    margin-bottom: 3rem;
}

.post-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(229, 90, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(229, 90, 0, 0.2);
}

.post-card.featured {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
}

.post-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.post-content {
    padding: 2rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.post-date {
    color: var(--dinerdroid-muted);
}

.post-category {
    background: var(--dinerdroid-primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.post-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.post-content h3 a {
    color: var(--dinerdroid-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-content h3 a:hover {
    color: var(--dinerdroid-primary);
}

.post-content p {
    color: var(--dinerdroid-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    color: var(--dinerdroid-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 1rem;
}

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

/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, var(--dinerdroid-primary) 0%, var(--dinerdroid-secondary) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.newsletter h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-form button {
    background: white;
    color: var(--dinerdroid-primary);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
}

.newsletter-note {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Categories Section */
.categories {
    padding: 4rem 0;
    background: var(--dinerdroid-light);
}

/* Mobile scroll indicator */
@media (max-width: 480px) {
    .category-grid::after {
        content: '';
        flex: 0 0 1rem;
        width: 1rem;
    }
}

.categories h2 {
    font-size: 2.5rem;
    color: var(--dinerdroid-primary);
    text-align: center;
    margin-bottom: 3rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(229, 90, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 102, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card:focus {
    outline: none;
    border-color: var(--dinerdroid-primary);
    box-shadow: 0 4px 20px rgba(229, 90, 0, 0.3);
}

.category-card.active {
    background: var(--dinerdroid-primary);
    color: white;
    transform: translateY(-5px);
}

.category-card.active i,
.category-card.active h3,
.category-card.active p {
    color: white;
}

.category-card i {
    font-size: 2.5rem;
    color: var(--dinerdroid-primary);
    margin-bottom: 0.75rem;
}

.category-card h3 {
    color: var(--dinerdroid-text);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.category-card p {
    color: var(--dinerdroid-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Footer Styles */
.dinerdroid-footer {
    background: var(--dinerdroid-text);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    opacity: 0.8;
    margin-bottom: 1rem;
}

.app-badges img {
    height: 60px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h5 {
    color: var(--dinerdroid-primary);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 2;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.8;
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .dinerdroid-nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }
    
    /* Show hamburger menu on mobile */
    .hamburger-menu {
        display: flex;
    }
    
    /* Hide nav links by default on mobile */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, var(--dinerdroid-primary) 0%, var(--dinerdroid-secondary) 100%);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 5;
        margin: 0;
        padding: 0;
    }
    
    /* Show nav links when menu is active */
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.5rem;
        padding: 1rem 2rem;
        width: 100%;
        text-align: center;
        border-radius: 0;
        color: white;
    }
    
    .nav-links a:hover {
        background-color: rgba(255, 255, 255, 0.2);
        transform: none;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .post-card.featured {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    
    .category-card {
        padding: 1rem;
    }
    
    .category-card i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .category-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .category-card p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .categories {
        padding: 2rem 0;
    }
    
    .categories h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .categories .container::after {
        content: "← Swipe to explore all categories →";
        display: block;
        text-align: center;
        font-size: 0.75rem;
        color: var(--dinerdroid-muted);
        margin-top: 0.5rem;
        opacity: 0.8;
    }
    
    .category-grid {
        display: flex;
        overflow-x: auto;
        gap: 0.5rem;
        padding: 0.5rem 0.5rem 1rem 0.5rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        touch-action: pan-x pinch-zoom;
        overscroll-behavior-x: contain;
        justify-content: space-between;
    }
    
    .category-grid::-webkit-scrollbar {
        display: none;
    }
    
    .category-card {
        flex: 1;
        max-width: 70px;
        height: 90px;
        padding: 0.3rem;
        scroll-snap-align: start;
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .category-card i {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .category-card h3 {
        font-size: 0.6rem;
        margin-bottom: 0;
        line-height: 1.1;
        font-weight: 600;
        text-align: center;
        word-break: break-word;
        hyphens: auto;
    }
    
    .category-card p {
        display: none;
    }
}