/*
Theme Name: Shifton Theme
Theme URI: https://shifton.com
Author: Shifton
Author URI: https://shifton.com
Description: Базовая тема WordPress от Shifton
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shifton
Tags: blog, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(147, 51, 234, 0.1) 0%, 
        rgba(255, 255, 255, 0) 35%,
        rgba(255, 255, 255, 0) 65%,
        rgba(59, 130, 246, 0.1) 100%
    );
    pointer-events: none;
    z-index: 0;
}

#page {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
.site-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px 0;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo img {
    display: block;
    height: 44px;
    width: auto;
}

.site-logo .custom-logo {
    height: 44px;
    width: auto;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}

.site-description {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 10px 22px;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.main-navigation a:hover {
    color: #0073aa;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switcher {
    position: relative;
}

.lang-switcher-button {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lang-switcher-list {
    list-style: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: max-content;
    min-width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.2s ease;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
}

.lang-switcher:hover .lang-switcher-list,
.lang-switcher:focus-within .lang-switcher-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-switcher-list a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: #1f2937;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-flag {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    flex: 0 0 auto;
}

.lang-switcher-list a:hover {
    background: #f3f4f6;
}

.header-cta {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 8px;
}

/* Main content */
.site-main {
    padding: 40px 0;
}

/* Post styles */
.post {
    margin-bottom: 40px;
}

.post-title {
    font-size: 32px;
    margin-bottom: 10px;
}

.post-title a {
    text-decoration: none;
    color: #333;
}

.post-title a:hover {
    color: #0073aa;
}

.post-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.post-content {
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 15px;
}

/* Footer */
.site-footer {
    background-color: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    padding: 30px 0;
    margin-top: 60px;
    text-align: center;
    color: #666;
}

/* Hero Section */
.hero-section {
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-trusted {
    text-align: center;
    margin-bottom: 60px;
}

.trusted-avatars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: -8px;
    margin-bottom: 15px;
}

.trusted-avatars .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid #fff;
    margin-left: -8px;
    display: inline-block;
}

.trusted-avatars .avatar:first-child {
    margin-left: 0;
}

.trusted-avatars .avatar:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.trusted-avatars .avatar:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.trusted-avatars .avatar:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.trusted-avatars .avatar:nth-child(5) {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.trusted-text {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.4;
    color: #4a5568;
    margin-bottom: 25px;
}

.hero-title-accent {
    color: #e65c33;
    display: inline;
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #e65c33;
    color: #fff;
}

.btn-primary:hover {
    background-color: #d14a1f;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(230, 92, 51, 0.3);
}

.btn-secondary {
    background-color: #3b82f6;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* Feature Cards */
.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon-purple {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    color: #fff;
}

.feature-icon-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.feature-icon-orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.feature-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Blog Section */
.blog-section {
    padding: 80px 0;
    background-color: #fafafa;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 50px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.post-card .post-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.post-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-card .entry-header {
    padding: 25px;
}

.post-card .post-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.post-card .post-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.post-card .post-title a:hover {
    color: #3b82f6;
}

.post-card .post-content {
    padding: 0 25px 25px;
}

/* Page Content Section */
.page-content-section {
    padding: 60px 0;
}

.page-content-section .entry-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-content-section .entry-content h1,
.page-content-section .entry-content h2,
.page-content-section .entry-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-content-section .entry-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Fullwidth Page Template */
.page-fullwidth {
    width: 100%;
}

.post-thumbnail-fullwidth {
    width: 100%;
    margin: 0;
}

.post-thumbnail-fullwidth img {
    width: 100%;
    height: auto;
    display: block;
}

.page-content-fullwidth {
    padding: 60px 0;
}

/* Page with Sidebar Template */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.primary-content {
    min-width: 0;
}

@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
}

/* AI Partners Section */
.ai-partners-section {
    padding: 40px 0;
    background: #fff;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ai-partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.ai-partner-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px 20px;
    text-align: center;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
}

.ai-partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.ai-partner-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.ai-partner-card:hover .ai-partner-logo {
    background: #f0f9ff;
    border-color: #3b82f6;
    transform: scale(1.1);
}

.ai-partner-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.ai-partner-logo-placeholder {
    width: 48px;
    height: 48px;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-partner-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

/* Products Section */
.products-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 50px;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.1);
}

.product-icon {
    width: 100%;
    min-height: 240px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.product-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.product-icon-placeholder {
    color: #3b82f6;
    opacity: 0.6;
}

.product-badge {
    position: absolute;
    top: -8px;
    right: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.product-badge-free {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.product-badge-pro {
    background: linear-gradient(135deg, #e65c33 0%, #d14a1f 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(230, 92, 51, 0.3);
}

.product-badge-both {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.product-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.3;
}

.product-description {
    font-size: 15px;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 24px;
    min-height: 60px;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
}

.product-link:hover {
    color: #2563eb;
    gap: 10px;
}

.product-link span {
    transition: transform 0.2s ease;
}

.product-link:hover span {
    transform: translateX(4px);
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-products p {
    margin-bottom: 12px;
}

.no-products small {
    color: #999;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-actions {
        justify-content: center;
        width: 100%;
    }

    .hero-title {
        font-size: 40px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
    }
    
    .ai-partners-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
}
