/*
Theme Name: Mobil Lastik Servis Theme
Theme URI: http://mobillastikservis.local
Author: Antigravity
Author URI: http://mobillastikservis.local
Description: A custom premium dark-mode theme for Mobil Lastik Servis.
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    --primary-color: #ffb703;
    /* Mustard Yellow */
    --secondary-color: #023047;
    /* Dark Blue */
    --accent-color: #219ebc;
    /* Light Blue */
    --bg-color: #0f1012;
    /* Very Dark Grey */
    --surface-color: #1e1e24;
    /* Dark Surface */
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --font-main: 'Inter', sans-serif;
    --spacing-unit: 1rem;
    --border-radius: 12px;
    --header-height-mobile: 70px;
    --bottom-nav-height: 70px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    padding-bottom: var(--bottom-nav-height);
    /* Space for bottom nav */
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* Header Styles */
.site-header {
    background-color: rgba(30, 30, 36, 0.95);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Mobile Header */
.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-logo {
    background: var(--primary-color);
    color: #000;
    font-weight: 900;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.2rem;
}

.site-identity h1 {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.2;
    color: #fff;
}

.site-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* Emergency Button */
.emergency-btn {
    background: #e63946;
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.emergency-btn .icon {
    font-size: 1.2rem;
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(230, 57, 70, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0);
    }
}

.pulsing {
    animation: pulse 2s infinite;
}

/* Desktop Header */
.desktop-header {
    display: none;
    /* Hidden on mobile by default */
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.desktop-header .site-title a {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* Desktop Custom Nav */
.desktop-app-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.desktop-app-nav .nav-item {
    display: flex;
    flex-direction: row;
    /* Horizontal on desktop */
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.desktop-app-nav .nav-item:hover {
    color: var(--primary-color);
}

.desktop-app-nav .icon {
    font-size: 1.2rem;
}

/* Specific Call Button Style for Desktop */
.desktop-app-nav .highlight-btn {
    background-color: var(--primary-color);
    color: #000;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
}

.desktop-app-nav .highlight-btn:hover {
    background-color: #fff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 183, 3, 0.4);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(30, 30, 36, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: var(--bottom-nav-height);
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    flex: 1;
}

.nav-item.active,
.nav-item:hover {
    color: var(--primary-color);
}

.nav-item .icon {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.call-btn {
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(255, 183, 3, 0.4);
    margin-bottom: 20px;
    /* Floating effect */
    border: 4px solid var(--bg-color);
}

.center-item {
    position: relative;
    top: -10px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), url('https://source.unsplash.com/1600x900/?car,mechanic');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
    line-height: 1.2;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: #000;
    font-weight: bold;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.btn-full {
    width: 100%;
    margin-top: 1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: flex-end;
    /* Bottom sheet effect on mobile */
}

.modal-content {
    background-color: var(--surface-color);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 20px 20px 0 0;
    animation: slideUp 0.3s ease;
    height: 80vh;
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.close-modal {
    float: right;
    font-size: 2rem;
    cursor: pointer;
    margin-bottom: 1rem;
}

#service-map {
    width: 100%;
    flex: 1;
    /* Fill remaining height */
    border-radius: 8px;
}

/* Responsive Logic */
@media (min-width: 769px) {

    .mobile-header,
    .bottom-nav {
        display: none !important;
    }

    .desktop-header {
        display: flex;
    }

    .modal-content {
        border-radius: 20px;
        height: 600px;
        align-self: center;
    }

    body {
        padding-bottom: 0;
    }
}

/* Modern Grid Layout (CSS Grid) */
.section-title {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-color);
    padding-left: 0.5rem;
    border-left: 4px solid var(--primary-color);
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Mobile: 2 cols */
    gap: 1rem;
    align-items: start;
}

/* Tablet */
@media (min-width: 768px) {
    .masonry-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .masonry-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.masonry-item {
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    width: 100%;
}

.masonry-item:hover {
    transform: translateY(-5px);
    z-index: 10;
}

.masonry-link {
    display: block;
    color: inherit;
    position: relative;
    height: 100%;
}

.masonry-item .post-thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    /* Force square for uniform grid */
}

/* Title Overlay */
.entry-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    pointer-events: none;
}

.entry-title {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.2;
    color: #fff;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Hide legacy elements if present */
.entry-wrapper,
.entry-content,
.entry-footer,
.btn-outline {
    display: none;
}