/**
 * Theme Name: Gamivo Style
 * Theme URI: https://sonikgames.ru
 * Author: Your Name
 * Description: Тема для магазина игр на основе логотипа с градиентом #11D5F4 → #0D86E4
 * Version: 1.0
 */

/* ========== COLOR VARIABLES ========== */
:root {
    --color-primary: #0D86E4;
    --color-primary-light: #11D5F4;
    --color-primary-gradient: linear-gradient(135deg, #0D86E4, #11D5F4);
    --color-bg-dark: #0d0d0d;
    --color-bg-card: #2f2f2f;
    --color-bg-card-hover: #3b3b3b;
    --color-text-primary: #e5e5e5;
    --color-text-secondary: #a7a7a7;
    --color-text-muted: #737373;
    --color-border: #2a2a2a;
    --color-success: #139a1e;
    --color-error: #fe1504;
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #1e1e1e;
    color: var(--color-text-primary);
    line-height: 1.5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-content {
    min-height: 500px;
    padding: 20px 0;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    color: var(--color-primary-light);
}

/* ========== HEADER ========== */
.gm-header {
    background: var(--color-bg-dark);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.gm-header__top {
    padding: 12px 0;
}

.gm-header__top-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Logo */
.gm-header__logo {
    flex-shrink: 0;
}

.gm-header__logo-text {
    font-size: 20px;
    font-weight: 700;
    color: white;
    background: var(--color-primary-gradient);
    padding: 10px 18px;
    border-radius: 8px;
}

.gm-header__logo-img {
    height: 40px;
    width: auto;
    display: block;
}

/* Search */
.gm-header__search {
    flex: 1;
    position: relative;
}

.gm-search-form {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gm-search-form__input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    outline: none;
    font-size: 15px;
    background: #fff;
    color: #1e1e1e;
    height: 52px;
}

.gm-search-form__input::placeholder {
    color: #999;
    font-size: 15px;
}

.gm-search-form__button {
    background: var(--color-primary-gradient);
    border: none;
    padding: 0 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.gm-search-form__button:hover {
    opacity: 0.9;
}

.gm-search-form__button svg {
    width: 22px;
    height: 22px;
}

/* Header Actions */
.gm-header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.gm-header__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--color-text-primary);
    font-size: 11px;
    transition: color 0.2s;
}

.gm-header__action:hover {
    color: var(--color-primary-light);
}

.gm-header__action-icon {
    font-size: 20px;
    color: white;
}

.gm-header__action:hover .gm-header__action-icon {
    color: var(--color-primary-light); /* при наведении становятся светло-голубыми */
}

/* Navigation Menu */
.gm-header__nav {
    background: #181818;
    border-top: 1px solid var(--color-border);
}

.gm-header__nav-inner {
    padding: 0;
}

.gm-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 28px;
    overflow-x: auto;
}

.gm-nav-menu li {
    padding: 12px 0;
}

.gm-nav-menu a {
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    white-space: nowrap;
}

.gm-nav-menu a:hover {
    color: var(--color-primary-light);
}

.gm-nav-menu__smart {
    background: var(--color-primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

/* ========== SEARCH RESULTS ========== */
.gm-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-card);
    border-radius: 12px;
    margin-top: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.gm-search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #3b3b3b;
    text-decoration: none;
    color: var(--color-text-primary);
    transition: background 0.2s;
}

.gm-search-result-item:hover {
    background: var(--color-bg-card-hover);
}

.gm-search-result-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
}

.gm-search-result-item__title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
}

.gm-search-result-item__price {
    font-size: 13px;
    color: var(--color-primary);
    font-weight: 700;
}

.gm-search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--color-text-secondary);
}

/* ========== FOOTER ========== */
.gm-footer {
    background: #181818;
    border-top: 1px solid var(--color-border);
    margin-top: 60px;
    padding: 40px 0 20px;
}

.gm-footer__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 40px;
}

.gm-footer__logo a {
    font-size: 20px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    background: var(--color-primary-gradient);
    padding: 8px 16px;
    border-radius: 8px;
}

.gm-newsletter-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.gm-newsletter-form__input {
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #3b3b3b;
    background: var(--color-bg-card);
    color: var(--color-text-primary);
    width: 280px;
}

.gm-newsletter-form__input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.gm-newsletter-form__button {
    padding: 12px 24px;
    background: var(--color-primary-gradient);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.gm-newsletter-form__button:hover {
    opacity: 0.9;
}

.gm-footer__nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.gm-footer__col h5 {
    color: var(--color-text-primary);
    margin-bottom: 16px;
    font-size: 16px;
}

.gm-footer__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gm-footer__col li {
    margin-bottom: 10px;
}

.gm-footer__col a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.gm-footer__col a:hover {
    color: var(--color-primary-light);
}

.gm-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    font-size: 12px;
    color: var(--color-text-secondary);
}

.gm-footer__legal {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.gm-footer__legal a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.gm-footer__legal a:hover {
    color: var(--color-primary-light);
}

/* ========== BUTTONS (для плагина) ========== */
.gm-btn,
.gm-product-card__btn,
.gm-actions__add-to-cart {
    background: var(--color-primary-gradient) !important;
    transition: opacity 0.2s !important;
}

.gm-btn:hover,
.gm-product-card__btn:hover,
.gm-actions__add-to-cart:hover {
    opacity: 0.9 !important;
    background: var(--color-primary-gradient) !important;
}

.gm-price-tile--active {
    border-color: var(--color-primary) !important;
}

.gm-price-tile__price--smart,
.gm-price-tile__badge--smart {
    color: var(--color-primary) !important;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .gm-header__top-inner {
        flex-wrap: wrap;
    }
    
    .gm-header__search {
        order: 3;
        width: 100%;
        flex: auto;
    }
    
    .gm-header__actions {
        order: 2;
    }
    
    .gm-header__logo {
        order: 1;
    }
    
    .gm-footer__top {
        flex-direction: column;
        text-align: center;
    }
    
    .gm-footer__bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .gm-footer__legal {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .gm-header__actions {
        gap: 16px;
    }
    
    .gm-header__action-label {
        display: none;
    }
    
    .gm-header__action-icon {
        font-size: 22px;
    }
    
    .gm-nav-menu {
        gap: 16px;
    }
    
    .gm-nav-menu a {
        font-size: 11px;
    }
    
    .gm-search-form__input {
        height: 48px;
        padding: 10px 16px;
    }
    
    .gm-search-form__button {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .gm-header__logo-text {
        font-size: 16px;
        padding: 6px 12px;
    }
    
    .gm-header__logo-img {
        height: 32px;
    }
    
    .gm-header__actions {
        gap: 12px;
    }
    
    .gm-newsletter-form {
        flex-direction: column;
        width: 100%;
    }
    
    .gm-newsletter-form__input {
        width: 100%;
    }
    
    .gm-footer__nav {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .gm-footer__legal {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

/* Header Actions с иконками Font Awesome */
.gm-header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.gm-header__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: white;
    font-size: 11px;
    transition: color 0.2s;
}

.gm-header__action-icon {
    font-size: 22px;
    color: white;
}

.gm-header__action:hover {
    color: var(--color-primary-light);
}

.gm-header__action:hover .gm-header__action-icon {
    color: var(--color-primary-light);
}

.gm-header__action-label {
    font-size: 11px;
    color: white;
}

.gm-header__action:hover .gm-header__action-label {
    color: var(--color-primary-light);
}