/**
 * Esnafgids.nl - Public Website Styles
 */

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

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

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

.text-center {
    text-align: center;
}

/* Header */
.main-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #FF6B35;
    text-decoration: none;
}

.logo i {
    font-size: 28px;
}

.logo-image {
    max-height: 50px;
    height: auto;
    max-width: 200px;
    object-fit: contain;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

.main-nav {
    display: flex;
    gap: 5px;
    align-items: center;
}

.nav-link {
    padding: 8px 16px;
    color: #555;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
}

.nav-link:hover {
    background: #f0f0f0;
    color: #FF6B35;
}

.nav-cta {
    background: #4451b8;
    color: #fff !important;
}

.nav-cta:hover {
    background: #3a3f9f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(68, 81, 184, 0.6);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 400px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.search-form {
    max-width: 700px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.search-input {
    flex: 1;
    padding: 18px 30px;
    border: none;
    font-size: 16px;
    outline: none;
}

.search-btn {
    padding: 18px 35px;
    background: #FF6B35;
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #E85D24;
}

/* Sections */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #333;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.category-card {
    background: #fff;
    padding: 30px;
    border-radius: 0;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.category-icon {
    font-size: 48px;
    color: #FF6B35;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #333;
}

.category-card p {
    color: #777;
    font-size: 14px;
}

/* Businesses Grid */
.businesses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.business-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.business-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF6B35 0%, #F7931E 100%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.business-card:hover::before {
    opacity: 1;
}

.business-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.15);
    border-color: rgba(255, 107, 53, 0.2);
}

.business-logo {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.business-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.business-card:hover .business-logo img {
    transform: scale(1.08);
}

.business-no-logo {
    font-size: 56px;
    color: #cbd5e1;
    transition: all 0.3s;
}

.business-card:hover .business-no-logo {
    color: #FF6B35;
    transform: scale(1.15);
}

/* Fallback for old class names */
.business-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.business-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.05) 100%);
    pointer-events: none;
}

.business-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.business-card:hover .business-image img {
    transform: scale(1.05);
}

.business-no-image {
    font-size: 64px;
    color: #cbd5e1;
    transition: all 0.3s;
}

.business-card:hover .business-no-image {
    color: #FF6B35;
    transform: scale(1.1);
}

.business-info {
    padding: 24px;
}

.business-info h3 {
    font-size: clamp(16px, 1.2vw, 19px);
    font-weight: 700;
    color: #1e293b;
    transition: color 0.3s;
    margin: 0 0 20px 0;
    white-space: nowrap;
    overflow: hidden;
    line-height: 1.2;
}

.business-card:hover .business-info h3 {
    color: #FF6B35;
}

.business-meta-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 12px;
    align-items: center;
}

.business-meta-row:last-child {
    margin-bottom: 0;
}

.business-category,
.business-location,
.business-phone,
.business-website {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #6b7280;
    font-weight: 400;
}

.business-category i,
.business-location i,
.business-phone i,
.business-website i {
    color: #FF6B35;
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Tablet and below */
@media (max-width: 1024px) {
    .business-meta-row {
        gap: 10px;
    }
}

/* Mobile responsive */
@media (max-width: 640px) {
    .business-meta-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .business-info h3 {
        font-size: clamp(14px, 4vw, 18px);
        margin-bottom: 16px;
        white-space: nowrap;
        overflow: hidden;
        line-height: 1.2;
    }

    .business-category,
    .business-location,
    .business-phone,
    .business-website {
        font-size: 14px;
    }
}

/* Featured Section */
.featured-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    position: relative;
}

.featured-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, rgba(255,107,53,0.03) 0%, transparent 100%);
    pointer-events: none;
}

.featured-section .section-title {
    position: relative;
    z-index: 1;
}

.featured-section .businesses-grid {
    position: relative;
    z-index: 1;
}

/* Mobile override for featured businesses */
@media (max-width: 768px) {
    .featured-section .businesses-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
}

/* News Grid */
.news-section {
    background: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: #f8f9fa;
    border-radius: 0;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e0e0e0;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    background: #FF6B35;
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.news-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #333;
}

.news-content p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #777;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-meta i {
    color: #FF6B35;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: #fff;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.btn-light {
    background: #fff;
    color: #FF6B35;
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,255,255,0.3);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 18px;
}

/* Footer */
.main-footer {
    background: #1e3a8a;
    color: #cbd5e1;
    padding: 50px 0 20px;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo-svg {
    height: 50px;
    width: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-col p {
    line-height: 1.8;
    color: #94a3b8;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #3b82f6;
    padding-top: 20px;
    text-align: center;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        position: relative !important;
        min-height: 60px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    .logo {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 10 !important;
        margin: 0 !important;
    }

    .mobile-menu-toggle {
        display: block !important;
        position: relative !important;
        z-index: 11 !important;
        margin-left: 0 !important;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        display: none;
        z-index: 9;
    }

    .main-nav.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .search-box {
        flex-direction: column;
        border-radius: 12px;
    }

    .search-btn {
        border-radius: 0 0 12px 12px;
    }

    .section-title {
        font-size: 28px;
    }

    .categories-grid,
    .news-grid {
        grid-template-columns: 1fr !important;
    }

    .businesses-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* Ensure single column for business cards on mobile */
    .business-card {
        width: 100% !important;
        margin: 0 auto !important;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .businesses-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 0 10px !important;
    }

    .business-card {
        width: 100% !important;
        max-width: 100% !important;
    }

    .featured-section {
        padding: 20px 0 !important;
    }
}

/* Medium screens (tablets) */
@media (max-width: 1200px) {
    .businesses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Small tablets */
@media (max-width: 992px) {
    .businesses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Modern Advertisement Styles */
.advertisement-container {
    margin: 40px 0;
    position: relative;
}

/* Gesponsord label removed */

.modern-ad .ad-card {
    /* Styles removed - show only ad content */
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.modern-ad .ad-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 25px;
    align-items: center;
}

.modern-ad .ad-icon {
    width: 80px;
    height: 80px;
    padding: 15px;
    background: linear-gradient(135deg, #FF6B35 0%, #ff8c5e 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

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

.modern-ad .ad-text {
    flex: 1;
}

.modern-ad .ad-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.modern-ad .ad-description {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 12px;
}

.modern-ad .ad-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.modern-ad .ad-features span {
    font-size: 13px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modern-ad .ad-features i {
    color: #22c55e;
    font-size: 12px;
}

.modern-ad .ad-cta {
    background: linear-gradient(135deg, #FF6B35 0%, #ff8c5e 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.modern-ad .ad-cta:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

/* Sidebar Advertisement */
.sidebar-ad-modern .ad-card-vertical {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.sidebar-ad-modern .ad-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.sidebar-ad-modern .ad-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.sidebar-ad-modern h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.sidebar-ad-modern p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 15px;
}

.sidebar-ad-modern .ad-feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.sidebar-ad-modern .ad-feature-list li {
    padding: 8px 0;
    color: #475569;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-ad-modern .ad-feature-list i {
    color: #FF6B35;
    font-size: 14px;
}

.sidebar-ad-modern .ad-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #FF6B35 0%, #ff8c5e 100%);
    color: white;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.sidebar-ad-modern .ad-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

@media (max-width: 768px) {
    .advertisement-container {
        margin: 30px 0;
    }

    .modern-ad .ad-card {
        padding: 0;
    }

    .modern-ad .ad-content {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }

    .modern-ad .ad-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto;
    }

    .modern-ad .ad-title {
        font-size: 20px;
    }

    .modern-ad .ad-features {
        justify-content: center;
        gap: 12px;
    }

    .modern-ad .ad-cta {
        width: 100%;
        justify-content: center;
    }
}


/* Sidebar Advertisement Container */
.page-with-sidebar-ads {
    position: relative;
}

.page-with-sidebar-ads .container {
    position: relative;
}

.sidebar-ad-left,
.sidebar-ad-right {
    position: fixed;
    top: 120px;
    width: 300px;
    z-index: 100;
}

.sidebar-ad-left {
    left: 20px;
}

.sidebar-ad-right {
    right: 20px;
}

.sidebar-ad-left .advertisement-container,
.sidebar-ad-right .advertisement-container {
    margin: 0;
    position: sticky;
    top: 120px;
}

.sidebar-ad-left .ad-image,
.sidebar-ad-right .ad-image {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Hide sidebar ads on smaller screens */
@media (max-width: 1400px) {
    .sidebar-ad-left,
    .sidebar-ad-right {
        display: none;
    }
}

@media (min-width: 1401px) {
    .page-with-sidebar-ads .container {
        max-width: 1200px;
    }
}

/* Language Switcher */
.language-switcher {
    position: relative;
    margin-left: 20px;
}

.lang-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    transition: all 0.3s;
}

.lang-button:hover {
    background: #fff;
    border-color: #FF6B35;
}

.lang-flag {
    font-size: 18px;
}

.lang-name {
    font-weight: 600;
}

.lang-button i {
    font-size: 12px;
    transition: transform 0.3s;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 160px;
    display: none;
    z-index: 1000;
}

.lang-dropdown.show {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #1e293b;
    text-decoration: none;
    transition: background 0.2s;
}

.lang-option:hover {
    background: #f8fafc;
}

.lang-option.active {
    background: #fff7ed;
    color: #FF6B35;
    font-weight: 600;
}

/* Mobile Language Switcher */
@media (max-width: 768px) {
    .language-switcher {
        margin-left: 0;
        margin-top: 12px;
        width: 100%;
    }

    .lang-button {
        width: 100%;
        justify-content: center;
    }

    .lang-dropdown {
        left: 0;
        right: 0;
    }

    /* Hide all advertisements on mobile */
    .advertisement-container,
    .sidebar-ad-left,
    .sidebar-ad-right {
        display: none !important;
    }

    /* Hide footer columns except first on mobile */
    .footer-col:nth-child(2),
    .footer-col:nth-child(3),
    .footer-col:nth-child(4) {
        display: none !important;
    }

    .footer-col:first-child {
        text-align: center;
    }

    /* Business listing image height for mobile */
    .business-image {
        height: 140px;
    }

    /* Footer logo - smaller on mobile */
    .footer-logo-svg {
        height: 40px;
    }
}
