/*
Theme Name: Bimmerhead
Theme URI: https://example.com/bimmerhead
Author: Your Name
Author URI: https://example.com
Description: A modern WordPress theme based on iPlay structure
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bimmerhead
Tags: custom-logo, custom-menu, featured-images, responsive-layout
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --primary-color: #0066cc;
    --secondary-color: #1a1a2e;
    --accent-color: #e94560;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-dark: #0f0f23;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.site-content {
    flex: 1;
}

/* Layout variations */
.layout-two-right .site-grid {
    grid-template-columns: 1fr 300px;
}

.layout-two-left .site-grid {
    grid-template-columns: 300px 1fr;
}

.layout-three .site-grid {
    grid-template-columns: 250px 1fr 250px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background: var(--secondary-color);
    color: #fff;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.site-header.header-fixed {
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo img {
    height: 40px;
    width: auto;
}

.header-center {
    flex: 1;
    max-width: 500px;
    margin: 0 2rem;
}

.search-form {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    overflow: hidden;
}

.search-form input[type="text"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1rem;
}

.search-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-form button {
    padding: 0.75rem 1rem;
    border: none;
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    background: var(--accent-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: var(--transition);
}

.icon-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.login-btn {
    padding: 0.5rem 1.5rem;
    background: var(--primary-color);
    color: #fff;
    border-radius: var(--radius);
    font-weight: 600;
}

.login-btn:hover {
    background: var(--accent-color);
    color: #fff;
}

/* Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: #fff;
    transition: var(--transition);
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    width: 250px;
    height: calc(100vh - 60px);
    background: var(--bg-dark);
    padding: 1rem;
    overflow-y: auto;
    transition: var(--transition);
    z-index: 999;
}

.hide-menu .sidebar {
    transform: translateX(-100%);
}

.menu-list {
    list-style: none;
}

.menu-list li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius);
    transition: var(--transition);
}

.menu-list li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.menu-list li a i {
    width: 20px;
    text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--secondary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    text-align: center;
}

.site-footer a {
    color: #fff;
}

/* ==========================================================================
   Widgets
   ========================================================================== */
.widget {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {

    .layout-two-right .site-grid,
    .layout-two-left .site-grid {
        grid-template-columns: 1fr;
    }

    .layout-three .site-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-center {
        display: none;
    }

    .site-grid {
        padding: 1rem;
    }
}