/**
 * World Kosher - Modern Theme CSS
 * עיצוב מודרני ואחיד לכל עמודי האתר
 */

/* ========================================
   BASE & RESET
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --wk-primary: #1e3a8a;
    --wk-primary-dark: #1e40af;
    --wk-primary-light: #3b82f6;
    --wk-accent: #c9a227;
    --wk-accent-light: #f59e0b;
    
    /* Semantic Colors */
    --wk-success: #10b981;
    --wk-success-light: #d1fae5;
    --wk-warning: #f59e0b;
    --wk-warning-light: #fef3c7;
    --wk-error: #ef4444;
    --wk-error-light: #fee2e2;
    --wk-info: #3b82f6;
    --wk-info-light: #dbeafe;
    
    /* Neutrals */
    --wk-white: #ffffff;
    --wk-gray-50: #f8fafc;
    --wk-gray-100: #f1f5f9;
    --wk-gray-200: #e2e8f0;
    --wk-gray-300: #cbd5e1;
    --wk-gray-400: #94a3b8;
    --wk-gray-500: #64748b;
    --wk-gray-600: #475569;
    --wk-gray-700: #334155;
    --wk-gray-800: #1e293b;
    --wk-gray-900: #0f172a;
    
    /* Text */
    --wk-text-primary: #1e293b;
    --wk-text-secondary: #64748b;
    --wk-text-muted: #94a3b8;
    
    /* Typography */
    --wk-font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    --wk-font-size-xs: 0.75rem;
    --wk-font-size-sm: 0.875rem;
    --wk-font-size-base: 1rem;
    --wk-font-size-lg: 1.125rem;
    --wk-font-size-xl: 1.25rem;
    --wk-font-size-2xl: 1.5rem;
    --wk-font-size-3xl: 1.875rem;
    --wk-font-size-4xl: 2.25rem;
    
    /* Spacing */
    --wk-space-1: 0.25rem;
    --wk-space-2: 0.5rem;
    --wk-space-3: 0.75rem;
    --wk-space-4: 1rem;
    --wk-space-5: 1.25rem;
    --wk-space-6: 1.5rem;
    --wk-space-8: 2rem;
    --wk-space-10: 2.5rem;
    --wk-space-12: 3rem;
    --wk-space-16: 4rem;
    --wk-space-20: 5rem;
    
    /* Border Radius */
    --wk-radius-sm: 0.375rem;
    --wk-radius-md: 0.5rem;
    --wk-radius-lg: 0.75rem;
    --wk-radius-xl: 1rem;
    --wk-radius-2xl: 1.5rem;
    --wk-radius-full: 9999px;
    
    /* Shadows */
    --wk-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --wk-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --wk-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --wk-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --wk-transition-fast: 150ms ease-in-out;
    --wk-transition-base: 250ms ease-in-out;
    --wk-transition-slow: 350ms ease-in-out;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--wk-font-family);
    font-size: var(--wk-font-size-base);
    line-height: 1.6;
    color: var(--wk-text-primary);
    background-color: var(--wk-gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   TOP BAR
   ======================================== */
.wk-top-bar {
    background: linear-gradient(135deg, var(--wk-primary) 0%, var(--wk-primary-dark) 100%);
    color: var(--wk-white);
    padding: var(--wk-space-2) 0;
    font-size: var(--wk-font-size-sm);
    position: sticky;
    top: 0;
    z-index: 1001;
    box-shadow: var(--wk-shadow-md);
}

.wk-top-bar .wk-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--wk-space-4);
}

.wk-top-bar a {
    color: var(--wk-white);
    text-decoration: none;
    transition: opacity var(--wk-transition-fast);
}

.wk-top-bar a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.wk-top-bar-left,
.wk-top-bar-right {
    display: flex;
    align-items: center;
    gap: var(--wk-space-4);
}

/* Language Selector */
.wk-lang-selector {
    position: relative;
    cursor: pointer;
}

.wk-lang-selector select {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--wk-white);
    padding: var(--wk-space-1) var(--wk-space-3);
    border-radius: var(--wk-radius-md);
    font-size: var(--wk-font-size-sm);
    cursor: pointer;
    outline: none;
}

.wk-lang-selector select option {
    background: var(--wk-primary);
    color: var(--wk-white);
}

/* ========================================
   CONTAINER
   ======================================== */
.wk-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--wk-space-6);
}

@media (max-width: 768px) {
    .wk-container {
        padding: 0 var(--wk-space-4);
    }
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */
.wk-header {
    background: var(--wk-white);
    padding: var(--wk-space-4) 0;
    box-shadow: var(--wk-shadow-sm);
    position: sticky;
    top: 40px;
    z-index: 1000;
}

.wk-header .wk-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wk-logo {
    display: flex;
    align-items: center;
    gap: var(--wk-space-3);
    text-decoration: none;
    color: var(--wk-text-primary);
}

.wk-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.wk-logo-text {
    display: flex;
    flex-direction: column;
}

.wk-logo-title {
    font-size: var(--wk-font-size-xl);
    font-weight: 700;
    color: var(--wk-primary);
    line-height: 1.2;
}

.wk-logo-tagline {
    font-size: var(--wk-font-size-xs);
    color: var(--wk-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation */
.wk-nav {
    display: flex;
    align-items: center;
    gap: var(--wk-space-4);
    flex-wrap: wrap;
    justify-content: center;
}

.wk-nav-link {
    color: var(--wk-text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--wk-font-size-sm);
    transition: color var(--wk-transition-fast);
    position: relative;
    white-space: nowrap;
}

.wk-nav-link:hover {
    color: var(--wk-primary);
}

.wk-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--wk-accent);
    transition: width var(--wk-transition-base);
}

.wk-nav-link:hover::after {
    width: 100%;
}

.wk-nav-link.wk-active {
    color: var(--wk-primary);
}

.wk-nav-link.wk-active::after {
    width: 100%;
}

/* CTA Button in Nav */
.wk-nav-cta {
    background: linear-gradient(135deg, var(--wk-accent) 0%, var(--wk-accent-light) 100%);
    color: var(--wk-white) !important;
    padding: var(--wk-space-2) var(--wk-space-5);
    border-radius: var(--wk-radius-full);
    font-weight: 600;
    box-shadow: var(--wk-shadow-sm);
    transition: all var(--wk-transition-fast);
}

.wk-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--wk-shadow-md);
}

.wk-nav-cta::after {
    display: none;
}

/* Mobile Menu Toggle */
.wk-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--wk-primary);
    font-size: var(--wk-font-size-2xl);
    cursor: pointer;
}

@media (max-width: 768px) {
    .wk-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--wk-white);
        flex-direction: column;
        padding: var(--wk-space-4);
        box-shadow: var(--wk-shadow-lg);
        gap: var(--wk-space-3);
    }
    
    .wk-nav.wk-open {
        display: flex;
    }
    
    .wk-menu-toggle {
        display: block;
    }
}

/* ========================================
   HERO SECTION
   ======================================== */
.wk-hero {
    background: linear-gradient(135deg, var(--wk-primary) 0%, var(--wk-primary-dark) 50%, var(--wk-primary-light) 100%);
    color: var(--wk-white);
    padding: var(--wk-space-20) 0;
    position: relative;
    overflow: hidden;
}

.wk-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>') repeat;
    background-size: 100px 100px;
    opacity: 0.5;
}

.wk-hero .wk-container {
    position: relative;
    z-index: 1;
}

.wk-hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.wk-hero h1 {
    font-size: var(--wk-font-size-4xl);
    font-weight: 800;
    margin-bottom: var(--wk-space-6);
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wk-hero p {
    font-size: var(--wk-font-size-xl);
    margin-bottom: var(--wk-space-8);
    opacity: 0.95;
    line-height: 1.6;
}

.wk-hero-actions {
    display: flex;
    gap: var(--wk-space-4);
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .wk-hero {
        padding: var(--wk-space-12) 0;
    }
    
    .wk-hero h1 {
        font-size: var(--wk-font-size-3xl);
    }
    
    .wk-hero p {
        font-size: var(--wk-font-size-lg);
    }
}

/* ========================================
   BUTTONS
   ======================================== */
.wk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--wk-space-2);
    padding: var(--wk-space-3) var(--wk-space-6);
    font-size: var(--wk-font-size-base);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--wk-radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--wk-transition-fast);
    box-shadow: var(--wk-shadow-sm);
}

.wk-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--wk-shadow-md);
}

.wk-btn:active {
    transform: translateY(0);
}

/* Button Variants */
.wk-btn-primary {
    background: linear-gradient(135deg, var(--wk-accent) 0%, var(--wk-accent-light) 100%);
    color: var(--wk-white);
}

.wk-btn-secondary {
    background: var(--wk-white);
    color: var(--wk-primary);
}

.wk-btn-outline {
    background: transparent;
    color: var(--wk-white);
    border: 2px solid var(--wk-white);
}

.wk-btn-outline:hover {
    background: var(--wk-white);
    color: var(--wk-primary);
}

.wk-btn-lg {
    padding: var(--wk-space-4) var(--wk-space-8);
    font-size: var(--wk-font-size-lg);
}

/* ========================================
   CARDS
   ======================================== */
.wk-card {
    background: var(--wk-white);
    border-radius: var(--wk-radius-xl);
    padding: var(--wk-space-8);
    box-shadow: var(--wk-shadow-md);
    transition: all var(--wk-transition-base);
    border: 1px solid var(--wk-gray-200);
}

.wk-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--wk-shadow-xl);
}

.wk-card-header {
    margin-bottom: var(--wk-space-4);
}

.wk-card-title {
    font-size: var(--wk-font-size-xl);
    font-weight: 700;
    color: var(--wk-text-primary);
    margin-bottom: var(--wk-space-2);
}

.wk-card-subtitle {
    font-size: var(--wk-font-size-sm);
    color: var(--wk-text-secondary);
}

.wk-card-body {
    color: var(--wk-text-secondary);
    line-height: 1.7;
}

.wk-card-footer {
    margin-top: var(--wk-space-6);
    padding-top: var(--wk-space-4);
    border-top: 1px solid var(--wk-gray-200);
}

/* Feature Card */
.wk-feature-card {
    background: var(--wk-white);
    border-radius: var(--wk-radius-xl);
    padding: var(--wk-space-8);
    box-shadow: var(--wk-shadow-md);
    text-align: center;
    transition: all var(--wk-transition-base);
    border: 1px solid var(--wk-gray-200);
}

.wk-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--wk-shadow-xl);
    border-color: var(--wk-primary-light);
}

.wk-feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--wk-info-light) 0%, var(--wk-white) 100%);
    border-radius: var(--wk-radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--wk-space-4);
    font-size: var(--wk-font-size-2xl);
    color: var(--wk-primary);
}

/* ========================================
   GRID LAYOUTS
   ======================================== */
.wk-grid {
    display: grid;
    gap: var(--wk-space-6);
}

.wk-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.wk-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.wk-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .wk-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .wk-grid-2,
    .wk-grid-3,
    .wk-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   TABLES
   ======================================== */
.wk-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--wk-font-size-sm);
}

.wk-table thead {
    background: var(--wk-gray-100);
}

.wk-table th {
    padding: var(--wk-space-4) var(--wk-space-6);
    text-align: left;
    font-weight: 600;
    color: var(--wk-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: var(--wk-font-size-xs);
    border-bottom: 2px solid var(--wk-gray-200);
}

.wk-table td {
    padding: var(--wk-space-4) var(--wk-space-6);
    border-bottom: 1px solid var(--wk-gray-200);
    color: var(--wk-text-secondary);
}

.wk-table tbody tr {
    transition: background var(--wk-transition-fast);
}

.wk-table tbody tr:hover {
    background: var(--wk-gray-50);
}

.wk-table tbody tr:last-child td {
    border-bottom: none;
}

.wk-table a {
    color: var(--wk-primary);
    text-decoration: none;
    font-weight: 500;
}

.wk-table a:hover {
    text-decoration: underline;
}

/* Status badges in tables */
.wk-table .status-active {
    display: inline-flex;
    align-items: center;
    gap: var(--wk-space-1);
    background: var(--wk-success-light);
    color: #065f46;
    padding: var(--wk-space-1) var(--wk-space-3);
    border-radius: var(--wk-radius-full);
    font-size: var(--wk-font-size-xs);
    font-weight: 600;
}

.wk-table .status-expired {
    display: inline-flex;
    align-items: center;
    gap: var(--wk-space-1);
    background: var(--wk-error-light);
    color: #991b1b;
    padding: var(--wk-space-1) var(--wk-space-3);
    border-radius: var(--wk-radius-full);
    font-size: var(--wk-font-size-xs);
    font-weight: 600;
}

.wk-table .status-pending {
    display: inline-flex;
    align-items: center;
    gap: var(--wk-space-1);
    background: var(--wk-warning-light);
    color: #92400e;
    padding: var(--wk-space-1) var(--wk-space-3);
    border-radius: var(--wk-radius-full);
    font-size: var(--wk-font-size-xs);
    font-weight: 600;
}

@media (max-width: 768px) {
    .wk-table {
        font-size: var(--wk-font-size-xs);
    }
    
    .wk-table th,
    .wk-table td {
        padding: var(--wk-space-3) var(--wk-space-4);
    }
}

/* ========================================
   SECTIONS
   ======================================== */
.wk-section {
    padding: var(--wk-space-20) 0;
}

.wk-section-alt {
    background: var(--wk-gray-100);
}

.wk-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--wk-space-12);
}

.wk-section-label {
    display: inline-block;
    background: var(--wk-info-light);
    color: var(--wk-primary);
    padding: var(--wk-space-1) var(--wk-space-3);
    border-radius: var(--wk-radius-full);
    font-size: var(--wk-font-size-sm);
    font-weight: 600;
    margin-bottom: var(--wk-space-4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wk-section-title {
    font-size: var(--wk-font-size-3xl);
    font-weight: 800;
    color: var(--wk-text-primary);
    margin-bottom: var(--wk-space-4);
    line-height: 1.3;
}

.wk-section-subtitle {
    font-size: var(--wk-font-size-lg);
    color: var(--wk-text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .wk-section {
        padding: var(--wk-space-12) 0;
    }
    
    .wk-section-title {
        font-size: var(--wk-font-size-2xl);
    }
}

/* ========================================
   FORMS
   ======================================== */
.wk-form-group {
    margin-bottom: var(--wk-space-5);
}

.wk-form-label {
    display: block;
    font-size: var(--wk-font-size-sm);
    font-weight: 600;
    color: var(--wk-text-primary);
    margin-bottom: var(--wk-space-2);
}

.wk-form-input,
.wk-form-textarea,
.wk-form-select {
    width: 100%;
    padding: var(--wk-space-3) var(--wk-space-4);
    font-size: var(--wk-font-size-base);
    color: var(--wk-text-primary);
    background: var(--wk-white);
    border: 2px solid var(--wk-gray-200);
    border-radius: var(--wk-radius-lg);
    transition: all var(--wk-transition-fast);
    font-family: inherit;
}

.wk-form-input:focus,
.wk-form-textarea:focus,
.wk-form-select:focus {
    outline: none;
    border-color: var(--wk-primary-light);
    box-shadow: 0 0 0 3px var(--wk-info-light);
}

.wk-form-input::placeholder,
.wk-form-textarea::placeholder {
    color: var(--wk-text-muted);
}

.wk-form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   ALERTS & MESSAGES
   ======================================== */
.wk-alert {
    padding: var(--wk-space-4) var(--wk-space-5);
    border-radius: var(--wk-radius-lg);
    font-size: var(--wk-font-size-sm);
    margin-bottom: var(--wk-space-4);
    display: flex;
    align-items: center;
    gap: var(--wk-space-3);
}

.wk-alert-success {
    background: var(--wk-success-light);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.wk-alert-warning {
    background: var(--wk-warning-light);
    color: #92400e;
    border: 1px solid #fde68a;
}

.wk-alert-error {
    background: var(--wk-error-light);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.wk-alert-info {
    background: var(--wk-info-light);
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ========================================
   FOOTER
   ======================================== */
.wk-footer {
    background: var(--wk-gray-900);
    color: var(--wk-gray-400);
    padding: var(--wk-space-16) 0 var(--wk-space-8);
}

.wk-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--wk-space-10);
    margin-bottom: var(--wk-space-12);
}

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

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

.wk-footer-brand {
    display: flex;
    align-items: center;
    gap: var(--wk-space-3);
    margin-bottom: var(--wk-space-4);
}

.wk-footer-brand img {
    width: 40px;
    height: 40px;
}

.wk-footer-brand span {
    font-size: var(--wk-font-size-lg);
    font-weight: 700;
    color: var(--wk-white);
}

.wk-footer-desc {
    font-size: var(--wk-font-size-sm);
    line-height: 1.7;
    margin-bottom: var(--wk-space-4);
}

.wk-footer-title {
    font-size: var(--wk-font-size-base);
    font-weight: 700;
    color: var(--wk-white);
    margin-bottom: var(--wk-space-4);
}

.wk-footer-links {
    list-style: none;
}

.wk-footer-links li {
    margin-bottom: var(--wk-space-2);
}

.wk-footer-links a {
    color: var(--wk-gray-400);
    text-decoration: none;
    font-size: var(--wk-font-size-sm);
    transition: color var(--wk-transition-fast);
}

.wk-footer-links a:hover {
    color: var(--wk-white);
}

.wk-footer-bottom {
    border-top: 1px solid var(--wk-gray-800);
    padding-top: var(--wk-space-6);
    text-align: center;
    font-size: var(--wk-font-size-sm);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.wk-text-center { text-align: center; }
.wk-text-left { text-align: left; }
.wk-text-right { text-align: right; }

.wk-mb-0 { margin-bottom: 0; }
.wk-mb-1 { margin-bottom: var(--wk-space-1); }
.wk-mb-2 { margin-bottom: var(--wk-space-2); }
.wk-mb-3 { margin-bottom: var(--wk-space-3); }
.wk-mb-4 { margin-bottom: var(--wk-space-4); }
.wk-mb-5 { margin-bottom: var(--wk-space-5); }
.wk-mb-6 { margin-bottom: var(--wk-space-6); }
.wk-mb-8 { margin-bottom: var(--wk-space-8); }

.wk-mt-0 { margin-top: 0; }
.wk-mt-4 { margin-top: var(--wk-space-4); }
.wk-mt-6 { margin-top: var(--wk-space-6); }
.wk-mt-8 { margin-top: var(--wk-space-8); }

.wk-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   FORM MESSAGE UTILITIES (for solicitar-certificacao pages)
   ======================================== */
.wk-sol-msg {
    margin-top: var(--wk-space-4);
    padding: var(--wk-space-4);
    border-radius: var(--wk-radius-lg);
    font-size: var(--wk-font-size-sm);
    display: none;
}

.wk-sol-msg--ok {
    display: block;
    background: var(--wk-success-light);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.wk-sol-msg--err {
    display: block;
    background: var(--wk-error-light);
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Skip link for accessibility */
.wk-sol-skip {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--wk-primary);
    color: var(--wk-white);
    padding: var(--wk-space-2) var(--wk-space-4);
    text-decoration: none;
    z-index: 1002;
    transition: top var(--wk-transition-fast);
}

.wk-sol-skip:focus {
    top: 0;
}

/* Honeypot field */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
}
