/*
Theme Name: Ways4You Solana
Theme URI: https://ways4you.ru
Description: Профессиональная тема для Solana экосистемы с Tailwind CSS
Version: 2.0
Author: Ways4You Team
*/

/* Minimal custom styles - Tailwind handles most styling */

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Fix white strip at bottom */
body {
    overflow-x: hidden;
}

html, body {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

/* =====================
   Post Cards — главная
   ===================== */

.post-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(153, 69, 255, 0.18);
}

.post-card .card-img a {
    display: block;
    overflow: hidden;
}

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

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

.post-card .card-body {
    padding: 1.25rem;
}

.post-card .card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.post-card .card-cat {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.6rem;
    background: #f3e8ff;
    color: #9945ff;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
}

.post-card .card-date {
    font-size: 0.75rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    transition: color 0.2s;
}

.post-card h3 a {
    color: inherit;
    text-decoration: none;
}

.post-card:hover h3 {
    color: #9945ff;
}

.post-card .card-excerpt {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #888;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.post-card .card-views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-card .card-read {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #9945ff, #14f195);
    color: #fff !important;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: opacity 0.2s, transform 0.2s;
}

.post-card .card-read:hover {
    opacity: 0.9;
    transform: translateX(2px);
}

/* =====================
   Prose — контент статьи
   ===================== */

.prose {
    color: #1a1a1a;
    font-size: 1.05rem;
    line-height: 1.85;
}

.prose h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0a0a1a;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #9945ff;
    line-height: 1.2;
}

.prose h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0a0a1a;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-left: 0.875rem;
    border-left: 4px solid #9945ff;
    padding-bottom: 0.25rem;
}

.prose h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #9945ff;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.prose h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.prose p {
    margin-bottom: 1.25rem;
}

.prose a {
    color: #9945ff;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: color 0.2s;
}

.prose a:hover {
    color: #14f195;
}

.prose strong {
    color: #0a0a1a;
    font-weight: 700;
}

/* Списки */
.prose ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.25rem;
}

.prose ul li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.6rem;
}

.prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #9945ff, #14f195);
    border-radius: 50%;
}

.prose ul ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
}

.prose ul ul li::before {
    width: 6px;
    height: 6px;
    background: transparent;
    border: 2px solid #9945ff;
    top: 0.6em;
}

.prose ul ul ul {
    padding-left: 1rem;
}

.prose ul ul ul li::before {
    width: 5px;
    height: 5px;
    background: rgba(153, 69, 255, 0.4);
    border: none;
}

.prose ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
    list-style: decimal;
}

.prose ol li {
    margin-bottom: 0.6rem;
    padding-left: 0.25rem;
}

.prose ol li::marker {
    color: #9945ff;
    font-weight: 700;
}

.prose li > p {
    margin-bottom: 0.25rem;
}

/* Таблица */
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(153, 69, 255, 0.1);
}

.prose th {
    background: linear-gradient(135deg, #9945ff, #14f195);
    color: #ffffff !important;
    font-weight: 700;
    padding: 0.875rem 1rem;
    text-align: left;
    border: none;
}

.prose td {
    padding: 0.75rem 1rem;
    border: none;
    border-bottom: 1px solid #f0e8ff;
    color: #1a1a1a;
}

.prose tr:nth-child(even) td {
    background: #faf5ff;
}

.prose tr:hover td {
    background: #f3e8ff;
    transition: background 0.15s ease;
}

/* Цитата */
.prose blockquote {
    border-left: 4px solid #9945ff;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: #faf5ff;
    border-radius: 0 12px 12px 0;
    color: #444;
    font-style: italic;
}

/* Код */
.prose code {
    background: #f3e8ff;
    color: #7c3aed;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.875em;
    font-family: 'Courier New', monospace;
}

.prose pre {
    background: #0a0a1a;
    color: #14f195;
    padding: 1.25rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.9em;
}

.prose pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.prose img {
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(153, 69, 255, 0.15);
}
