/* ============================================
   Blog SoftRestaurant - Styles
   Palette: Orange #E8650A / Dark Purple #2D2047
   ============================================ */

:root {
    --orange: #E8650A;
    --orange-light: #FF8534;
    --orange-dark: #C75200;
    --purple: #2D2047;
    --purple-light: #463567;
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --text: #333333;
    --text-light: #666666;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --container: 1200px;
    --transition: 0.2s ease;
}

/* ============================================
   Reset & Base
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange-dark); }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.text-accent { color: var(--orange); }

/* ============================================
   Header
   ============================================ */

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-soft { color: var(--purple); }
.logo-restaurant { color: var(--orange); }
.logo-blog {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--white);
    background: var(--orange);
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    align-self: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.main-nav a {
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: var(--radius);
    transition: all var(--transition);
    text-align: center;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--orange);
    background: var(--gray-50);
}

.nav-site-link {
    color: var(--orange) !important;
    font-weight: 600 !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--purple);
    transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   Hero
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
    color: var(--white);
    padding: 80px 0 60px;
    text-align: center;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-search {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-search input {
    flex: 1;
    border: none;
    padding: 14px 24px;
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    color: var(--text);
}

.hero-search button {
    background: var(--orange);
    color: var(--white);
    border: none;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background var(--transition);
}

.hero-search button:hover { background: var(--orange-dark); }

/* ============================================
   Category Chips
   ============================================ */

.categories-bar {
    background: var(--gray-50);
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-200);
}

.category-chips {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    transition: all var(--transition);
}

.chip:hover, .chip.active {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}

.chip-count {
    font-size: 0.75rem;
    background: rgba(0,0,0,0.1);
    padding: 1px 7px;
    border-radius: 50px;
}

.chip.active .chip-count, .chip:hover .chip-count { background: rgba(255,255,255,0.25); }

/* ============================================
   Articles Grid
   ============================================ */

.articles-section { padding: 60px 0; }

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.article-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

.article-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.article-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.article-card-image {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--gray-100);
}

.article-card.featured .article-card-image { aspect-ratio: auto; min-height: 300px; }

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .article-card-image img { transform: scale(1.05); }

.article-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.article-card.featured .article-card-body {
    padding: 40px;
    justify-content: center;
}

.article-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--orange);
    margin-bottom: 10px;
}

.article-card-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}

.article-card.featured .article-card-title { font-size: 1.6rem; }

.article-card-title a { color: var(--purple); }
.article-card-title a:hover { color: var(--orange); }

.article-card-excerpt {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--gray-500);
}

.meta-separator { color: var(--gray-400); }

/* ============================================
   Article Page
   ============================================ */

.article-page { padding: 40px 0 80px; }

.article-header {
    max-width: 800px;
    margin-bottom: 40px;
}

.article-header h1 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--purple);
    line-height: 1.2;
    margin: 12px 0 16px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.article-featured-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
    max-height: 500px;
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

.article-content {
    max-width: 100%;
    overflow-wrap: break-word;
}

.article-content h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--purple);
    margin: 40px 0 16px;
    padding-top: 8px;
}

.article-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--purple);
    margin: 32px 0 12px;
}

.article-content p {
    margin-bottom: 18px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-content ul, .article-content ol {
    margin: 0 0 20px 24px;
    line-height: 1.8;
}

.article-content li { margin-bottom: 6px; }

.article-content blockquote {
    border-left: 4px solid var(--orange);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--gray-50);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-light);
}

.article-content img {
    border-radius: var(--radius);
    margin: 24px 0;
}

.article-content strong { color: var(--purple); }

.article-content a {
    color: var(--orange);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* FAQ Section */
.article-faqs {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 2px solid var(--gray-200);
}

.article-faqs h2 {
    margin-top: 0;
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 18px 24px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition);
}

.faq-question:hover { background: var(--gray-50); }

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--orange);
    font-weight: 700;
    flex-shrink: 0;
    margin-left: 16px;
}

details[open] .faq-question::after { content: '−'; }

.faq-question::-webkit-details-marker { display: none; }

.faq-answer {
    padding: 0 24px 18px;
    color: var(--text-light);
    line-height: 1.7;
}

/* Article CTA */
.article-cta {
    margin-top: 48px;
    padding: 40px;
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
    border-radius: var(--radius-lg);
    color: var(--white);
    text-align: center;
}

.article-cta h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--white);
}

.article-cta p {
    opacity: 0.9;
    margin-bottom: 24px;
    font-size: 1rem;
}

/* ============================================
   Sidebar
   ============================================ */

.article-sidebar { position: sticky; top: 96px; }

.sidebar-widget {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-widget h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--purple);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--orange);
}

.sidebar-categories, .sidebar-related {
    list-style: none;
}

.sidebar-categories li { margin-bottom: 8px; }

.sidebar-categories a {
    display: flex;
    justify-content: space-between;
    color: var(--text);
    font-size: 0.9rem;
    padding: 6px 0;
}

.sidebar-categories a:hover { color: var(--orange); }
.sidebar-categories a span { color: var(--gray-500); font-size: 0.85rem; }

.sidebar-related li {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-related li:last-child { margin-bottom: 0; padding-bottom: 0; border: none; }

.sidebar-related a {
    display: block;
    color: var(--purple);
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 4px;
}

.sidebar-related a:hover { color: var(--orange); }

.sidebar-related time {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.sidebar-cta {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
    color: var(--white);
    text-align: center;
}

.sidebar-cta h3 { color: var(--white); border-color: rgba(255,255,255,0.3); }
.sidebar-cta p { opacity: 0.9; font-size: 0.9rem; }

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-body);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}

.btn-primary:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--orange);
}

.btn-block { display: block; width: 100%; }

.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 32px;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
    background: var(--gray-100);
    padding: 60px 0 0;
    border-top: 1px solid var(--gray-200);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 16px;
    line-height: 1.6;
}

.footer-links h3, .footer-contact h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--purple);
    margin-bottom: 16px;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }

.footer-links a {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-links a:hover { color: var(--orange); }

.footer-contact p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.footer-contact a { color: var(--text-light); }
.footer-contact a:hover { color: var(--orange); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid var(--gray-300);
    font-size: 0.85rem;
    color: var(--gray-600);
}

.footer-feeds { display: flex; gap: 16px; }
.footer-feeds a { color: var(--gray-600); }
.footer-feeds a:hover { color: var(--orange); }

.footer-brand-block {
    margin-top: 20px;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo-ebsa {
    height: 50px;
    width: auto;
}

.footer-logo-gptw {
    height: 65px;
    width: auto;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.footer-social a {
    color: var(--gray-500);
    transition: color var(--transition);
}

.footer-social a:hover {
    color: var(--purple);
}

/* ============================================
   Breadcrumbs
   ============================================ */

.breadcrumbs {
    margin-bottom: 24px;
    font-size: 0.85rem;
}

.breadcrumbs ol {
    display: flex;
    list-style: none;
    gap: 4px;
    flex-wrap: wrap;
}

.breadcrumbs li::after { content: '/'; margin-left: 4px; color: var(--gray-400); }
.breadcrumbs li:last-child::after { display: none; }
.breadcrumbs a { color: var(--gray-600); }
.breadcrumbs a:hover { color: var(--orange); }
.breadcrumb-current { color: var(--text); font-weight: 500; }

/* ============================================
   Pagination
   ============================================ */

.pagination {
    margin-top: 48px;
    text-align: center;
}

.pagination ul {
    display: inline-flex;
    list-style: none;
    gap: 6px;
}

.pagination a, .pagination-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--gray-300);
    transition: all var(--transition);
}

.pagination a { color: var(--text); }
.pagination a:hover { border-color: var(--orange); color: var(--orange); }

.pagination-current {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}

/* ============================================
   Category Hero
   ============================================ */

.category-hero {
    background: var(--gray-50);
    padding: 40px 0 48px;
    border-bottom: 1px solid var(--gray-200);
}

.category-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--purple);
    margin-bottom: 12px;
}

.category-description {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
}

/* ============================================
   Search Page
   ============================================ */

.search-page { padding: 60px 0; }

.search-page h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--purple);
    margin-bottom: 24px;
}

.search-form {
    display: flex;
    max-width: 600px;
    margin-bottom: 32px;
    border: 2px solid var(--gray-300);
    border-radius: 50px;
    overflow: hidden;
    transition: border-color var(--transition);
}

.search-form:focus-within { border-color: var(--orange); }

.search-form input {
    flex: 1;
    border: none;
    padding: 14px 24px;
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
}

.search-form button {
    background: var(--orange);
    color: var(--white);
    border: none;
    padding: 14px 28px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
}

.search-form button:hover { background: var(--orange-dark); }

.search-count {
    color: var(--gray-600);
    margin-bottom: 32px;
}

/* ============================================
   Empty State
   ============================================ */

.empty-state {
    text-align: center;
    padding: 80px 24px;
}

.empty-state h2 {
    font-family: var(--font-heading);
    color: var(--purple);
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 24px;
}

/* 404 */
.article-404 {
    text-align: center;
    padding: 80px 24px;
}

.article-404 h1 {
    font-family: var(--font-heading);
    color: var(--purple);
    margin-bottom: 16px;
}

.article-404 p {
    color: var(--text-light);
    margin-bottom: 24px;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .main-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-md);
        padding: 16px;
    }

    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; gap: 4px; }
    .main-nav a { display: block; padding: 12px 16px; }

    .hero { padding: 50px 0 40px; }
    .hero h1 { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .article-card.featured { grid-column: auto; grid-template-columns: 1fr; }

    .article-header h1 { font-size: 1.8rem; }

    .article-sidebar { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .footer-logos { gap: 12px; }
    .footer-logo-ebsa { height: 40px; }
    .footer-logo-gptw { height: 55px; }

    .cta-section h2 { font-size: 1.5rem; }
    .cta-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .hero-search { flex-direction: column; border-radius: var(--radius-lg); }
    .hero-search input { border-bottom: 1px solid var(--gray-200); }
    .hero-search button { padding: 12px; }
    .article-card-body { padding: 18px; }
    .article-cta { padding: 28px 20px; }
}
