/*
Theme Name: Figure Media
Theme URI: https://figure.media
Author: Your Name
Author URI: https://figure.media
Description: Custom theme for Figure Media
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: figure
*/

/* Import Tailwind CSS */
@import 'https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css';

/* Import Inter font */
@import 'https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap';

/* Import Font Awesome */
@import 'https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.0.0/css/all.min.css';

/* Custom styles */
body {
    font-family: 'Inter', sans-serif;
    color: #333;
    background-color: #fff;
}

.category-btn {
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
    cursor: pointer;
}

.news-item {
    border-left: 3px solid;
    padding-left: 16px;
    margin-bottom: 24px;
    position: relative;
}

.news-time {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.news-tag {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 12px;
}

.more-link {
    color: #1a73e8;
    font-size: 14px;
    display: inline-block;
    margin-top: 8px;
    text-decoration: none;
}

.article-card {
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.article-image {
    height: 160px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-tag {
    padding: 4px 10px;
    border-radius: 16px;
    color: white;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 8px;
}

.read-time {
    color: #888;
    font-size: 12px;
    margin-left: 8px;
}

.arrow-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Category colors */
.btn-select { background-color: #ff5c5c; }
.btn-promote { background-color: #5c6aff; }
.btn-develop { background-color: #41c486; }
.btn-analyze { background-color: #ffcd3c; }
.btn-sell { background-color: #ff5c8f; }
.btn-neural { background-color: #8657ff; }

/* News cards */
.news-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Category tabs */
.category-tabs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.category-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.tab {
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 14px;
    margin-right: 10px;
    cursor: pointer;
    white-space: nowrap;
    background-color: #f0f0f0;
    color: #666;
    transition: all 0.3s ease;
}

.tab:hover {
    background-color: #e0e0e0;
}

.tab.active {
    background-color: var(--category-color, #8657ff);
    color: white;
}

.news-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-2px);
}

.news-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    background-color: var(--category-color, #6B46C1);
    color: white;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.news-tag:hover {
    opacity: 0.9;
}

.read-more {
    color: var(--category-color, #5c6aff);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--category-color-hover, #4a5bd9);
}

.placeholder-img {
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    border-radius: 8px;
}

/* Пагинация */
.page-numbers {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-numbers li {
    margin: 0 5px;
}

.page-numbers a,
.page-numbers span {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-numbers a:hover {
    background-color: #e0e0e0;
}

.page-numbers .current {
    background-color: var(--category-color, #8657ff);
    color: white;
}

/* Takt news items */
.taktnews-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.taktnews-time {
    color: #aaa;
    font-size: 12px;
    margin-bottom: 5px;
}

/* Subscribe form */
.subscribe-form {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.input-email {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
}

.btn-subscribe {
    width: 100%;
    background-color: #8657ff;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

/* Drag and drop styles */
.sortable-ghost {
    opacity: 0.5;
    background: #f0f0f0;
}

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

.category-item {
    cursor: move;
    transition: transform 0.2s ease;
}

.category-item:hover {
    transform: translateY(-5px);
}

/* Responsive styles */
@media (max-width: 768px) {
    .category-btn {
        margin-bottom: 8px;
    }

    .article-card {
        margin-bottom: 16px;
    }

    .news-item {
        margin-bottom: 16px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .category-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab {
        flex: 0 0 auto;
    }
}

/* Слайдер статей */
.articles-slider {
    position: relative;
    overflow: hidden;
    margin: 0;
}

.swiper-wrapper {
    display: flex;
    gap: 24px;
}

.swiper-slide {
    width: calc(33.333% - 16px) !important;
    margin-right: 0 !important;
}

.article-card {
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}

/* Стили для кнопок слайдера */
.swiper-button-prev,
.swiper-button-next {
    position: static !important;
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    margin-left: 5px !important;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    display: none;
}

.swiper-button-prev i,
.swiper-button-next i {
    color: #000;
    font-size: 14px;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: #e5e5e5;
    transform: scale(1.05);
}

.swiper-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Адаптивность для слайдера */
@media (max-width: 1024px) {
    .swiper-slide {
        width: calc(50% - 12px) !important;
    }
}

@media (max-width: 640px) {
    .swiper-slide {
        width: 100% !important;
    }
}

/* WooCommerce Price Styles */
.woocommerce-Price-currencySymbol {
    margin-left: 4px;
}

/* Discount Badge */
.discount-badge {
    display: inline-block;
    background-color: #ff5c5c;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

.price {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Category Page Styles */
.category-header-gradient {
    /* Empty class, background removed */
}

.category-header-gradient .flex.items-center.mb-4 {
    color: var(--category-gradient-start, #8b5cf6);
}

.category-header-gradient .flex.items-center.mb-4 i {
    color: var(--category-gradient-start, #8b5cf6);
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.category-header-gradient .flex.items-center.mb-4 h1 {
    color: var(--category-gradient-start, #8b5cf6);
    font-size: 1.875rem;
    font-weight: 700;
}

/* Category filter buttons */
.category-filter-button {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.category-filter-button.active {
    background-color: #7c3aed;
    color: #ffffff;
}

.category-filter-button:not(.active) {
    background-color: #e5e7eb;
    color: #374151;
}

.category-filter-button:not(.active):hover {
    background-color: #d1d5db;
}

/* Article card styles */
.bg-white.rounded-lg.shadow-sm.border.hover-lift.p-6 {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bg-white.rounded-lg.shadow-sm.border.hover-lift.p-6:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Стили для тегов в сайдбаре */
.sidebar .news-tag {
    font-size: 11px;
    padding: 2px 8px;
}

/* Стили для тегов в карточках новостей */
.news-card .news-tag {
    margin-bottom: 8px;
}

/* Стили для тегов в списке новостей */
.news-item .news-tag {
    position: absolute;
    right: 0;
    top: 0;
    background: none;
    color: var(--category-color, #6B46C1);
    padding: 0;
}

/* Кнопка Подписка в хедере */
.btn-subscribe-header {
    background: #8b5cf6;
    color: #fff;
    border-radius: 24px;
    padding: 8px 22px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 2px 8px rgba(139,92,246,0.07);
    display: inline-block;
}
.btn-subscribe-header:hover {
    background: #7c3aed;
    color: #fff;
}

/* Меню в хедере */
header nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
header nav ul li a {
    color: #23272f;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.2s;
}
header nav ul li a:hover {
    color: #8b5cf6;
}

/* Хедер: три колонки, центр, кнопки, иконки */
header .flex.items-center.gap-4 a,
header .flex.items-center.gap-5 a {
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
header .flex.items-center.gap-4 a:hover,
header .flex.items-center.gap-5 a:hover {
    color: #8b5cf6;
}
header .text-gray-700 { color: #374151; }
header .text-gray-500 { color: #6b7280; }
header .text-2xl { font-size: 2rem; }
header .font-bold { font-weight: 700; }
header .tracking-tight { letter-spacing: -0.01em; }
header .leading-tight { line-height: 1.1; }
header .text-sm { font-size: 0.95rem; }
header .mt-1 { margin-top: 0.25rem; }
header .text-xl { font-size: 1.35rem; }
header .flex.flex-col.items-center.text-center.flex-1 { min-width: 0; }
@media (max-width: 900px) {
    header .text-2xl { font-size: 1.3rem; }
    header .btn-subscribe-header { padding: 6px 14px; font-size: 14px; }
    header .text-sm { font-size: 0.85rem; }
    header .text-xl { font-size: 1.1rem; }
}

/* Категории-плашки под хедером */
.category-pill {
    padding: 8px 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 15px;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: background 0.18s, box-shadow 0.18s, opacity 0.18s;
    cursor: pointer;
}
.category-pill i { color: #fff !important; font-size: 1.1em; }
.category-pill:hover {
    opacity: 0.9;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
@media (max-width: 600px) {
    .category-pill {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* Такт: строка новости с цветной обводкой и категорией справа */
.takt-news-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 18px;
    padding: 16px 22px 16px 0;
    min-height: 64px;
    position: relative;
    transition: box-shadow 0.18s;
}
.takt-news-row:hover {
    box-shadow: 0 4px 16px rgba(139,92,246,0.10);
}
.takt-news-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
    padding-left: 24px;
}
.takt-news-category {
    margin-left: 24px;
    color: #fff;
    border-radius: 12px;
    padding: 6px 18px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    white-space: nowrap;
    min-width: 90px;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.takt-news-category span { color: #fff; font-weight: 600; }
@media (max-width: 700px) {
    .takt-news-row { flex-direction: column; align-items: stretch; padding: 12px 8px 12px 0; }
    .takt-news-main { padding-left: 14px; }
    .takt-news-category { margin: 12px 0 0 0; min-width: 0; width: 100%; justify-content: flex-start; }
}

@media (min-width: 1600px) {
  .max-w-7xl,.max-w-6xl,
  .container {
    max-width: 80%!important;
    width: 80% !important;
  }
}
@import url('/wp-content/themes/figure/ultimate-member/templates/ultimate.css');