/* Platform Styles - pythondict.com */

/* ===== Article Typography ===== */
.wp-block-post-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #333;
}

.wp-block-post-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #306998;
    color: #1a1a1a;
}

.wp-block-post-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: #333;
}

.wp-block-post-content p {
    margin-bottom: 1.2rem;
}

.wp-block-post-content pre {
    background: #1e1e1e !important;
    color: #d4d4d4;
    padding: 1.2rem;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 1.5rem 0;
}

.wp-block-post-content code {
    background: #f0f4f8;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88em;
    color: #306998;
    font-family: 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
}

.wp-block-post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.wp-block-post-content blockquote {
    border-left: 4px solid #306998;
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    color: #555;
}

.wp-block-post-content img {
    border-radius: 8px;
    margin: 1.5rem 0;
    max-width: 100%;
    height: auto;
}

.wp-block-post-content ul,
.wp-block-post-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.wp-block-post-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.wp-block-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.wp-block-post-content th,
.wp-block-post-content td {
    border: 1px solid #e5e5e5;
    padding: 0.75rem 1rem;
    text-align: left;
}

.wp-block-post-content th {
    background: #f5f5f5;
    font-weight: 600;
}

.wp-block-post-content a {
    color: #306998;
    text-decoration: underline;
    text-decoration-color: rgba(48, 105, 152, 0.3);
    text-underline-offset: 2px;
}

.wp-block-post-content a:hover {
    text-decoration-color: #306998;
}

/* ===== Tags ===== */
.wp-block-post-terms a {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f4f8;
    color: #306998;
    border-radius: 20px;
    text-decoration: none !important;
    font-size: 0.85rem;
    transition: all 0.2s;
    margin-bottom: 6px;
}

.wp-block-post-terms a:hover {
    background: #306998;
    color: white;
}

/* ===== Post Cards ===== */
.wp-block-query .wp-block-group[style*="border"] {
    transition: all 0.3s ease;
}

.wp-block-query .wp-block-group[style*="border"]:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* ===== Pagination ===== */
.wp-block-query-pagination {
    gap: 0.5rem;
}

.wp-block-query-pagination a,
.wp-block-query-pagination span {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    color: #306998;
    font-size: 0.9rem;
}

.wp-block-query-pagination a:hover {
    background: #f0f4f8;
}

.wp-block-query-pagination .current {
    background: #306998;
    color: white;
    border-radius: 6px;
}

/* ===== Homepage Navigation ===== */
.nav-links a {
    font-weight: 500;
    transition: color 0.2s;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .wp-block-columns {
        flex-direction: column !important;
    }
    
    .wp-block-column {
        flex-basis: 100% !important;
    }
    
    .wp-block-query .wp-block-post-template {
        grid-template-columns: 1fr !important;
    }
    
    .wp-block-post-content {
        font-size: 1rem;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.wp-block-post-template > * {
    animation: fadeInUp 0.4s ease;
}

.wp-block-post-template > *:nth-child(2) { animation-delay: 0.05s; }
.wp-block-post-template > *:nth-child(3) { animation-delay: 0.1s; }
.wp-block-post-template > *:nth-child(4) { animation-delay: 0.15s; }
.wp-block-post-template > *:nth-child(5) { animation-delay: 0.2s; }
.wp-block-post-template > *:nth-child(6) { animation-delay: 0.25s; }

/* ===== Breadcrumb ===== */
p a[href="/"] {
    color: #306998;
    text-decoration: none;
}

p a[href="/"]:hover {
    text-decoration: underline;
}
