/* ===================================================
   BLOG ARTICLE STYLES - ЕДИНЫЙ СТАНДАРТ AIHERE.RU
   =================================================== */

/* --- BREADCRUMBS --- */
.blog-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
    margin-top: 25px;
    flex-wrap: wrap;
}

.blog-breadcrumbs a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-breadcrumbs a:hover {
    color: #ec4899;
}

.blog-breadcrumbs svg {
    width: 12px;
    height: 12px;
    opacity: 0.5;
    flex-shrink: 0;
}

.blog-breadcrumbs span:last-child {
    color: rgba(255, 255, 255, 0.9);
}

/* --- ARTICLE CONTAINER --- */
.blog-article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    overflow-x: hidden;
}

/* Предотвращение горизонтальной прокрутки на мобильных */
body {
    overflow-x: hidden;
}

/* --- ARTICLE HEADER (вариант без hero-изображения) --- */
.blog-article-header {
    margin-bottom: 2rem;
}

.blog-article-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- HERO IMAGE (превью статьи) --- */
.blog-hero-image {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
}

.blog-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

/* --- SCREENSHOT (скриншоты интерфейса) --- */
.blog-screenshot {
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- ARTICLE HEADER с HERO VIDEO/IMAGE --- */
.blog-hero {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 2rem;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.blog-hero video,
.blog-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
}

.blog-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.blog-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

/* --- ARTICLE META --- */
.blog-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-meta-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* --- ARTICLE CONTENT --- */
.blog-article-content {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.0625rem;
    line-height: 1.8;
}

.blog-article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
    color: white;
}

.blog-article-content p {
    margin-bottom: 1.25rem;
}

.blog-article-content ul,
.blog-article-content ol {
    margin: 1rem 0 1.5rem;
    padding-left: 1.5rem;
}

.blog-article-content li {
    margin-bottom: 0.5rem;
}

.blog-article-content a {
    color: #ec4899;
    text-decoration: none;
    border-bottom: 1px solid rgba(236, 72, 153, 0.3);
    transition: border-color 0.2s ease;
}

.blog-article-content a:hover {
    border-color: #ec4899;
}

.blog-article-content strong {
    color: white;
    font-weight: 600;
}

.blog-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
}

/* --- HIGHLIGHT BOX --- */
.blog-highlight-box {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.15));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.blog-highlight-box p {
    margin: 0;
}

/* --- CTA BLOCK --- */
.blog-cta-block {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.blog-cta-block h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.blog-cta-block p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.25rem;
}

.blog-cta-block .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: white;
    color: #1a1a2e;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-cta-block .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* --- VIDEO PREVIEW GRID --- */
.blog-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.blog-video-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-video-card video {
    width: 100%;
    aspect-ratio: 9/16;
    object-fit: cover;
    display: block;
}

.blog-video-play-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.blog-video-card-content {
    padding: 1rem;
}

.blog-video-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.blog-video-card-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* --- FAQ SECTION --- */
.blog-faq-section {
    margin: 2rem 0;
}

.blog-faq-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.blog-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    color: white;
    transition: background 0.2s ease;
}

.blog-faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.blog-faq-question svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.blog-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.blog-faq-item.active .blog-faq-answer {
    max-height: 500px;
    padding: 0 1.25rem 1rem;
}

.blog-faq-item.active .blog-faq-question svg {
    transform: rotate(180deg);
}

/* --- RELATED ARTICLES --- */
.blog-related-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-related-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.blog-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
}

.blog-related-card {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.blog-related-card:hover {
    transform: translateY(-4px);
    border-color: rgba(236, 72, 153, 0.5);
}

.blog-related-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.blog-related-card-content {
    padding: 1rem;
}

.blog-related-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.blog-related-card span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .blog-article-container {
        padding: 1.5rem 1rem 3rem;
    }
    
    .blog-article-header h1 {
        font-size: 1.75rem;
    }
    
    .blog-hero h1 {
        font-size: 1.5rem;
    }
    
    .blog-hero-overlay {
        padding: 2rem 1rem 1.25rem;
    }
    
    .blog-article-content h2 {
        font-size: 1.25rem;
    }
    
    .blog-video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .blog-cta-block {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .blog-article-header h1 {
        font-size: 1.5rem;
    }
    
    .blog-hero h1 {
        font-size: 1.25rem;
    }
    
    .blog-breadcrumbs {
        font-size: 0.75rem;
    }
    
    .blog-video-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-article-content {
        font-size: 1rem;
    }
}

/* ===================================================
   TEMPLATES SECTION - ШАБЛОНЫ В СТАТЬЯХ
   =================================================== */

.blog-article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.blog-section {
    margin-bottom: 2.5rem;
}

.blog-section.templates-section {
    margin-top: 3rem;
}

.meta-separator {
    opacity: 0.5;
}

/* --- TEMPLATES GRID --- */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.template-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.template-card:hover {
    transform: translateY(-4px);
    border-color: rgba(236, 72, 153, 0.4);
    box-shadow: 0 12px 40px rgba(236, 72, 153, 0.15);
}

.template-preview {
    position: relative;
    display: block;
    aspect-ratio: 9/16;
    overflow: hidden;
    background: #0a0a0f;
}

.template-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.template-card:hover .template-preview video {
    transform: scale(1.02);
}

.template-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.template-card:hover .template-play-overlay {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

.template-info {
    padding: 1.25rem;
}

.template-subtitle {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ec4899;
    margin-bottom: 0.5rem;
}

.template-info h3 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.template-info h3 a {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
}

.template-info h3 a:hover {
    color: #ec4899;
}

.template-info p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.template-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background-clip: padding-box;
    -webkit-background-clip: padding-box;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.template-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.35);
}

/* --- CTA SECTION --- */
.cta-section {
    margin: 3rem 0;
}

.cta-block {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
}

.cta-block h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.cta-block p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background-clip: padding-box;
    -webkit-background-clip: padding-box;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.4);
}

/* --- FAQ SECTION (альтернативный вариант) --- */
.faq-section {
    margin: 3rem 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}

.faq-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
    background: none;
    -webkit-text-fill-color: white;
}

.faq-item p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

/* --- RELATED SECTION --- */
.related-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.related-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.related-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.related-links a {
    display: block;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.related-links a:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(236, 72, 153, 0.4);
    transform: translateX(4px);
}

/* --- TEMPLATES RESPONSIVE --- */
@media (max-width: 768px) {
    .blog-article {
        padding: 1.5rem 1rem 3rem;
    }
    
    .templates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .template-info {
        padding: 1rem;
    }
    
    .template-info h3 {
        font-size: 0.9rem;
    }
    
    .template-info p {
        display: none;
    }
    
    .cta-block {
        padding: 1.5rem;
    }
    
    .cta-block h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .templates-grid {
        grid-template-columns: 1fr;
    }
    
    .template-info p {
        display: block;
    }
}
