/*
Theme Name: Know Kuwait
Theme URI: https://knowkuwait.com
Description: A modern block theme for Kuwait directory website with full RTL support and Arabic localization.
Author: Know Kuwait Team
Author URI: https://knowkuwait.com
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: know-kuwait
Domain Path: /languages
Tags: block-theme, rtl-language-support, arabic, directory, events, news, responsive, accessibility-ready
*/

/* Reset and Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-family: Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #ffffff;
    color: #333;
}

/* Remove WordPress default content */
.wp-block-post-content p:first-child {
    display: none !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: Arial, sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #333;
}

p {
    font-family: Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1rem;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .wp-block-navigation__container {
    flex-direction: row-reverse;
}

/* Layout */
.wp-block-group {
    padding: 0;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Header */
    header div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    /* Mobile Hero */
    section[style*="min-height: 85vh"] div[style*="grid-template-columns: 1fr 400px"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
    }
    
    section[style*="min-height: 85vh"] h1 {
        font-size: 3rem !important;
    }
    
    section[style*="min-height: 85vh"] p {
        font-size: 1.4rem !important;
    }
    
    /* Mobile Event Categories */
    div[style*="display: flex; align-items: center; gap: 4rem"] {
        flex-direction: column !important;
        gap: 2rem !important;
        text-align: center !important;
    }
    
    div[style*="display: flex; gap: 1.2rem; flex-wrap: wrap"] {
        justify-content: center !important;
    }
    
    /* Mobile Event Schedule */
    div[style*="grid-template-columns: 350px 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* Mobile Popular Places */
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
    }
    
    div[style*="grid-column: 1 / 3"],
    div[style*="grid-column: 2 / 4"] {
        grid-column: 1 !important;
    }
    
    /* Mobile Articles */
    div[style*="grid-template-columns: 200px 1fr auto"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        text-align: center !important;
    }
    
    /* Mobile Footer */
    footer div[style*="grid-template-columns: 1fr 1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    section[style*="min-height: 85vh"] h1 {
        font-size: 2.5rem !important;
    }
    
    section[style*="min-height: 85vh"] p {
        font-size: 1.2rem !important;
    }
    
    button[style*="padding: 1.2rem 2.5rem"] {
        padding: 1rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
}

/* Clean Button Styles */
button, .wp-block-button__link, a[class*="button"] {
    font-family: Arial, sans-serif;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

button:hover, .wp-block-button__link:hover, a[class*="button"]:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Focus States */
*:focus {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Hide WordPress admin bar for clean look */
.admin-bar {
    margin-top: -32px !important;
}

/* Remove default WordPress styling */
.wp-block-post-title {
    display: none !important;
}

.wp-block-post-date {
    display: none !important;
}

.wp-block-post-author {
    display: none !important;
}

/* Ensure full width */
.wp-site-blocks {
    padding: 0 !important;
}

.wp-block-group__inner-container {
    max-width: none !important;
}

/* Clean up any WordPress defaults */
.entry-content > p:first-child {
    display: none !important;
}

.wp-block-post-content > p:first-child {
    display: none !important;
}

