/* 
 * Responsive CSS Dosyası
 * SonmezSo Panel Elektrikci Teması
 */

/* Large Desktop (1400px ve üzeri) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Desktop (1200px - 1399px) */
@media (max-width: 1399.98px) {
    .container {
        max-width: 1140px;
    }
}

/* Small Desktop (992px - 1199px) */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .primary-menu {
        gap: 20px;
    }
    
    .slide-content h2 {
        font-size: 2.2rem;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    /* Navigation for Tablet */
    .main-navigation {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .primary-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--box-shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }
    
    .primary-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        top: calc(100% - 1px);
    }
    
    .primary-menu > li {
        width: 100%;
    }
    
    .primary-menu > li > a {
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .primary-menu > li:last-child > a {
        border-bottom: none;
    }
    
    .menu-arrow {
        transition: var(--transition);
    }
    
    .primary-menu > li.menu-item-has-children.active .menu-arrow {
        transform: rotate(180deg);
    }
    
    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--light-color);
        border-radius: var(--border-radius);
        margin-top: 10px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .primary-menu > li.menu-item-has-children.active .sub-menu {
        max-height: 500px;
        padding: 10px 0;
    }
    
    .sub-menu a {
        padding: 10px 20px;
        padding-left: 30px;
    }
    
    /* Hero Slider */
    .hero-slider {
        height: 350px;
    }
    
    .slide-content {
        padding: 30px;
        max-width: 500px;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    /* Emergency Banner */
    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .banner-text {
        text-align: center;
    }
    
    /* Section Titles */
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    /* Services Grid */
    .services-grid,
    .why-choose-grid,
    .professional-services-grid,
    .blog-grid,
    .expertise-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    /* Footer Widgets */
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .copyright-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-links-menu {
        justify-content: center;
    }
}

/* Mobile Landscape (576px - 767px) */
@media (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }
    
    /* Top Bar */
    .top-bar-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .emergency-call {
        justify-content: center;
    }
    
    /* Hero Slider */
    .hero-slider {
        height: 300px;
        margin-bottom: 30px;
    }
    
    .slide-content {
        padding: 20px;
        max-width: 100%;
        text-align: center;
    }
    
    .slide-content h2 {
        font-size: 1.75rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .slide-buttons {
        justify-content: center;
    }
    
    /* Sections */
    .services-section,
    .why-choose-section,
    .professional-services-section,
    .blog-section,
    .expertise-section,
    .testimonials-section {
        padding: 60px 0;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    /* Grids */
    .services-grid,
    .why-choose-grid,
    .professional-services-grid,
    .blog-grid,
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Cards */
    .service-card,
    .feature-card,
    .professional-card,
    .blog-card {
        padding: 25px;
    }
    
    .professional-content,
    .blog-content {
        padding: 25px;
    }
    
    /* Footer */
    .site-footer {
        padding: 60px 0 0;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        margin-top: 40px;
        padding: 25px 0;
    }
    
    /* Floating Buttons */
    .floating-buttons {
        right: 15px;
        bottom: 15px;
    }
    
    .floating-whatsapp,
    .back-to-top {
        width: 50px;
        height: 50px;
    }
}

/* Mobile Portrait (575px ve altı) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 15px;
    }
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    /* Buttons */
    .btn, .button, button {
        padding: 10px 25px;
        font-size: 0.9375rem;
    }
    
    .slide-buttons,
    .banner-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .slide-buttons .btn,
    .banner-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Hero Slider */
    .hero-slider {
        height: 250px;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    /* Emergency Banner */
    .emergency-banner {
        margin: 30px 0;
        padding: 25px 0;
    }
    
    .banner-text h3 {
        font-size: 1.5rem;
    }
    
    .banner-text p {
        font-size: 1rem;
    }
    
    /* Entry Meta */
    .entry-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    /* Floating Buttons */
    .floating-buttons {
        right: 10px;
        bottom: 10px;
    }
    
    .floating-whatsapp,
    .back-to-top {
        width: 45px;
        height: 45px;
    }
    
    .floating-whatsapp i,
    .back-to-top i {
        font-size: 1.25rem;
    }
}

/* Very Small Devices (400px ve altı) */
@media (max-width: 400px) {
    .site-branding {
        flex: 0 0 150px;
    }
    
    .logo img {
        max-height: 50px;
    }
    
    .site-title {
        font-size: 1.25rem;
    }
    
    .service-card,
    .feature-card,
    .professional-card,
    .blog-card {
        padding: 20px;
    }
    
    .professional-content,
    .blog-content {
        padding: 20px;
    }
    
    .footer-widgets {
        gap: 30px;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .floating-buttons,
    .emergency-banner,
    .banner-buttons,
    .btn,
    .button,
    .read-more,
    .footer-bottom {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
    
    .site-footer {
        padding: 20px 0 0;
        background: none;
        color: #000;
    }
    
    .widget-title {
        color: #000;
    }
    
    .widget-title:after {
        background-color: #000;
    }
}