/*
Theme Name: Neuropersona
Author: spvik
Version: 1.0
*/

:root {
    --primary: #0088CC;
    --secondary: #5AC8FA;
    --success: #34C759;
    --text: #000000;
    --text-secondary: #666666;
    --bg: #FFFFFF;
    --bg-secondary: #F5F5F5;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
}

.hero-bg {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.05) 0%, rgba(90, 200, 250, 0.05) 100%);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 136, 204, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 136, 204, 0.3);
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.animate-pulse-slow {
    animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.problem-card {
    opacity: 0;
    transform: translateY(30px);
    min-width: 280px;
    flex-shrink: 0;
}

.problem-card.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.counter {
    font-variant-numeric: tabular-nums;
}

.dialog-bubble {
    position: relative;
    background: white;
    border-radius: 18px;
    padding: 12px 16px;
    margin: 6px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    line-height: 1.4;
}

.dialog-bubble.user {
    background: var(--primary);
    color: white;
    margin-left: 20%;
}

.dialog-bubble.ai {
    background: #F5F5F5;
    margin-right: 20%;
}

.splide__arrow {
    background: var(--primary) !important;
    opacity: 0.8;
}

.splide__arrow:hover {
    opacity: 1;
}

.chart-container {
    height: 300px;
}

.gif-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 2rem 0;
}

.icon-feature {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.horizontal-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scrollbar-color: var(--primary) transparent;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

  @media (min-width: 768px) {
    /* На планшетах и выше — центрируем, отключаем прокрутку */
    .horizontal-scroll {
      overflow-x: hidden;
      justify-content: center;
      flex-wrap: wrap; /* если нужно переносить карточки на узких планшетах */
    }
  }

.problem-card {
    min-width: 300px;
    max-width: 350px;
    flex-shrink: 0;
}

.problem-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 136, 204, 0.15);
}

.scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    color: var(--primary);
    font-size: 0.875rem;
}

.scroll-indicator svg {
    animation: scroll-hint 2s ease-in-out infinite;
}

@keyframes scroll-hint {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.dialog-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(0, 136, 204, 0.05);
}

@media (max-width: 768px) {
    .dialog-bubble.user, .dialog-bubble.ai {
        margin-left: 10%;
        margin-right: 10%;
    }
    
    .chart-container {
        height: 250px;
    }
}



.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 136, 204, 0.3);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    color: var(--text);
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
    color: var(--text);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul, .article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    background: rgba(0, 136, 204, 0.05);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.article-content code {
    background: #f5f5f5;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.article-content pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    z-index: 100;
    transition: width 0.1s ease;
}

.table-of-contents {
    background: rgba(0, 136, 204, 0.05);
    border: 1px solid rgba(0, 136, 204, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.table-of-contents h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.table-of-contents ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.table-of-contents a:hover {
    color: var(--secondary);
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    margin: 2rem 0;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.share-twitter {
    background: #1da1f2;
}

.share-facebook {
    background: #1877f2;
}

.share-linkedin {
    background: #0077b5;
}

.share-telegram {
    background: #0088cc;
}

.related-articles {
    background: #f5f5f5;
    border-radius: 16px;
    padding: 2rem;
    margin: 3rem 0;
}

.author-bio {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    margin: 3rem 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    flex-shrink: 0;
}

.gif-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .article-content {
        font-size: 1rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
}