/*
Theme Name: MyLine Mercedes
Theme URI: https://myline-mercedes.com
Author: MyLine Team
Author URI: https://myline-mercedes.com
Description: MyLine Mercedes Özel Servis için özel WordPress teması
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: myline-mercedes
*/

/* Ana stiller */
:root {
    --primary-color: #000000;
    --secondary-color: #ff0000;
    --text-color: #333333;
    --light-bg: #f8f8f8;
    --white: #ffffff;
    --gray: #666666;
    --light-gray: #cccccc;
    --dark-gray: #1a1a1a;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.site-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    padding: 10px 0;
}

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

.site-branding h1 {
    font-size: 24px;
    font-weight: 600;
}

.site-branding h1 a {
    color: var(--white);
    text-decoration: none;
}

.site-branding span {
    color: var(--secondary-color);
}

.custom-logo {
    max-height: 50px;
    width: auto;
}

/* Navigation */
.main-navigation ul {
    display: flex;
    list-style: none;
}

.main-navigation ul li {
    margin-left: 25px;
    position: relative;
}

.main-navigation ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

.main-navigation ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s;
}

.main-navigation ul li a:hover::after {
    width: 100%;
}

.main-navigation ul li a:hover {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('assets/images/hero-bg.jpg') no-repeat center center/cover;
    height: 600px;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

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

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

.btn-primary:hover {
    background: transparent;
    color: var(--secondary-color);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: var(--secondary-color);
}

.section-header p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

/* Services Section */
.services-section {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    padding: 30px;
    position: relative;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--secondary-color);
    z-index: -1;
    transition: height 0.3s;
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    color: var(--white);
}

.service-card:hover h3,
.service-card:hover .service-icon {
    color: var(--white);
}

.service-icon {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    transition: color 0.3s;
}

.service-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.service-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    transition: color 0.3s;
}

/* Video Section */
.video-section {
    background: var(--light-bg);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.video-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.video-item:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
}

.video-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 30px;
    background: var(--secondary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
    opacity: 0.9;
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

.video-info {
    padding: 15px;
    background: var(--white);
}

.video-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* Blog Section */
.blog-section {
    background: var(--white);
}

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

.blog-card {
    background: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 20px;
}

.blog-date {
    color: var(--secondary-color);
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

.blog-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.blog-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-content h3 a:hover {
    color: var(--secondary-color);
}

.blog-excerpt {
    margin-bottom: 15px;
    color: var(--gray);
}

.read-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.read-more:hover i {
    transform: translateX(5px);
}

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

/* Testimonials Section */
.testimonials-section {
    background: linear-gradient(to right, var(--primary-color), var(--dark-gray));
    color: var(--white);
}

.testimonials-section .section-header h2 {
    color: var(--white);
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin: 20px;
    backdrop-filter: blur(10px);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid var(--secondary-color);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--secondary-color);
}

/* Contact Section */
.contact-section {
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-icon {
    font-size: 24px;
    color: var(--secondary-color);
    min-width: 30px;
}

.info-details h4 {
    margin-bottom: 5px;
    font-size: 18px;
}

.contact-form {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

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

.form-group input.error,
.form-group textarea.error {
    border-color: #ff0000;
}

.form-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}

/* Footer */
.site-footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 50px 0 20px;
}

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

.footer-widget h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-widget p,
.footer-widget li {
    margin-bottom: 10px;
}

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

.footer-widget ul li a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-widget ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #333;
    color: var(--white);
    border-radius: 50%;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Back to top button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
    }
    
    .main-navigation ul.show {
        display: flex;
    }
    
    .main-navigation ul li {
        margin: 10px 0;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .section-padding {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .services-grid,
    .video-grid,
    .blog-grid,
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .hero-section {
        height: 500px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* WordPress specific styles */
.alignwide {
    margin-left: -80px;
    margin-right: -80px;
}

.alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
}

.wp-block-image img {
    height: auto;
    max-width: 100%;
}

.wp-block-gallery {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
}

/* Comments */
.comment-list {
    list-style: none;
}

.comment-body {
    border-bottom: 1px solid var(--light-gray);
    padding: 20px 0;
}

.comment-meta {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author .avatar {
    border-radius: 50%;
    margin-right: 10px;
}

.comment-metadata {
    font-size: 0.9em;
    color: var(--gray);
}

.comment-reply-link {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
}

.comment-respond {
    margin-top: 30px;
}

/* Widgets */
.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 5px 0;
    border-bottom: 1px solid var(--light-gray);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.widget a:hover {
    color: var(--secondary-color);
}

/* Search form */
.search-form {
    display: flex;
}

.search-form label {
    flex-grow: 1;
    margin-right: 10px;
}

.search-form input[type="search"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
}

.search-form input[type="submit"] {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-form input[type="submit"]:hover {
    background: var(--primary-color);
}
/* Single Post Styles */
.single .entry-header {
    margin-bottom: 30px;
}

.single .entry-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.single .entry-meta {
    margin-bottom: 20px;
    color: var(--gray);
    font-size: 14px;
}

.single .entry-meta span {
    margin-right: 15px;
}

.single .entry-thumbnail {
    margin-bottom: 30px;
}

.single .entry-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.single .entry-content {
    margin-bottom: 40px;
}

.single .entry-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.single .entry-content h2,
.single .entry-content h3,
.single .entry-content h4 {
    margin: 30px 0 15px;
    color: var(--primary-color);
}

.single .entry-content ul,
.single .entry-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.single .entry-content li {
    margin-bottom: 8px;
}

/* Related Content */
.related-services,
.related-team {
    margin: 50px 0;
    padding: 30px;
    background: var(--light-bg);
    border-radius: 8px;
}

.related-services h3,
.related-team h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--primary-color);
    text-align: center;
}

/* Archive Styles */
.archive .page-header {
    margin-bottom: 40px;
    text-align: center;
}

.archive .page-title {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.archive .archive-description {
    font-size: 18px;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

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

/* Navigation */
.post-navigation {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
}

.nav-links {
    display: flex;
    justify-content: space-between;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

.nav-subtitle {
    display: block;
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 5px;
}

.nav-title {
    font-weight: 600;
    color: var(--primary-color);
}

/* Comments */
.comments-area {
    margin-top: 50px;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--light-gray);
}

.comment-body {
    display: flex;
}

.comment-author {
    margin-right: 15px;
}

.comment-author .avatar {
    border-radius: 50%;
    width: 60px;
    height: 60px;
}

.comment-content {
    flex: 1;
}

.comment-metadata {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 10px;
}

.comment-reply-link {
    color: var(--secondary-color);
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .single .entry-title {
        font-size: 28px;
    }
    
    .archive .page-title {
        font-size: 28px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .comment-body {
        flex-direction: column;
    }
    
    .comment-author {
        margin-bottom: 15px;
    }
}


