/*
Theme Name: WordPress Support
Description: Профессиональная тема для услуг поддержки WordPress сайтов, основанная на дизайне Google NotebookLM
Author: WordPress Support Team
Version: 1.0.0
Text Domain: wpsupport
Tags: business, one-column, two-columns, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* Main styles are loaded via functions.php - this file contains only WordPress-specific overrides */

/* WordPress specific fixes */
.wp-block-group {
    margin: 0;
}

/* WordPress admin bar compatibility */
.admin-bar .header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .header {
        top: 46px;
    }
}

/* WordPress content styling */
.entry-content {
    line-height: 1.6;
}

.entry-content p {
    margin-bottom: 1em;
}

/* Fix WordPress default margins and paddings */
.site-main {
    margin: 0;
    padding: 0;
}

/* WordPress blocks compatibility */
.wp-block-image {
    margin: 0;
}

.wp-block-group__inner-container {
    margin: 0;
    padding: 0;
}

/* WordPress navigation menu fixes */
.site-header .header__nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header .header__nav-menu li {
    margin: 0;
}

.site-header .header__nav-menu a {
    color: var(--color-on-surface);
    text-decoration: none;
    font-size: var(--text-body-large);
    font-weight: var(--font-weight-medium);
    transition: color 0.2s ease;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--shape-corner-small);
    font-family: var(--font-display, 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif);
}

.site-header .header__nav-menu a:hover {
    color: var(--color-on-surface);
    background-color: rgba(0, 0, 0, 0.04);
}

/* Mobile navigation styles */
.header__mobile-toggle {
    display: none;
    position: relative;
    z-index: 10000;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
    height: 18px;
}

.hamburger-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--color-on-surface);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.header__mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--color-surface);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}

.header__mobile-nav.open {
    left: 0;
}

.header__mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6);
    border-bottom: 1px solid var(--color-outline-variant);
}

.header__mobile-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: var(--shape-corner-small);
}

.header__mobile-nav-content {
    flex: 1;
    padding: var(--space-8) 0;
    display: flex;
    flex-direction: column;
}

.header__mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.header__mobile-nav-menu a,
.header__mobile-nav-link {
    display: block;
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-title-medium);
    font-weight: var(--font-weight-medium);
    color: var(--color-on-surface);
    text-decoration: none;
    border-bottom: 1px solid var(--color-outline-variant);
    font-family: var(--font-display, 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif);
}

.header__mobile-actions {
    padding: var(--space-6);
    border-top: 1px solid var(--color-outline-variant);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.btn--mobile {
    width: 100%;
    justify-content: center;
}

/* Services grid fix - 3 columns on desktop */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

@media (max-width: 991px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
}

@media (max-width: 767px) {
    .services__grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .header__nav {
        display: none;
    }
    
    .header__actions {
        display: none;
    }
    
    .header__mobile-toggle {
        display: block;
    }
}

/* Hero button hover fix */
.hero .btn--primary:hover {
  background-color: #ce3f01 !important;
  color: var(--color-on-primary) !important;
  transform: none !important;
}

/* Mobile advantage items spacing fix */
@media (max-width: 767px) {
  .advantage-item {
    gap: var(--space-6) !important;
    padding: var(--space-4) !important;
    margin-bottom: var(--space-8) !important;
  }
  
  .advantage-item__content {
    flex: 1 !important;
  }
  
  .advantage-item__title {
    margin-bottom: var(--space-3) !important;
  }
  
  .advantage-item__description {
    margin: 0 !important;
    line-height: 1.5 !important;
  }
}

/* WordPress customizer live preview fixes */
.customize-partial-edit-shortcut {
    position: relative;
}
