/* CPUden News - Additional Custom Styles */

/* CSS Custom Properties */
:root {
    --cpuden-accent: #2563eb;
    --cpuden-cpu: #2563eb;
    --cpuden-gpu: #16a34a;
    --cpuden-ai: #d97706;
}

/* Enhanced typography for news content */
.wp-block-post-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.wp-block-post-content p {
    margin-bottom: 1.5em;
}

.wp-block-post-content h2 {
    font-size: 1.5rem;
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.wp-block-post-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

/* Featured image styling */
.wp-block-post-featured-image {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.wp-block-post-featured-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.wp-block-post:hover .wp-block-post-featured-image img {
    transform: scale(1.02);
}

/* Post meta styling */
.wp-block-post-date {
    color: #6b7280;
    font-size: 0.875rem;
}

.wp-block-post-author-name {
    color: #6b7280;
    font-size: 0.875rem;
}

.wp-block-post-author-name a {
    color: #6b7280;
    text-decoration: none;
}

.wp-block-post-author-name a:hover {
    color: var(--cpuden-accent);
}

/* Pagination styling */
.wp-block-query-pagination {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.wp-block-query-pagination a {
    color: var(--cpuden-accent);
    text-decoration: none;
}

.wp-block-query-pagination a:hover {
    text-decoration: underline;
}

/* Search block styling */
.wp-block-search__input {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}

.wp-block-search__button {
    padding: 0.75rem 1.5rem;
    background: var(--cpuden-accent);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease;
}

.wp-block-search__button:hover {
    opacity: 0.9;
}

/* Categories block styling */
.wp-block-categories {
    list-style: none;
    padding: 0;
}

.wp-block-categories li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.wp-block-categories li:last-child {
    border-bottom: none;
}

.wp-block-categories a {
    color: #374151;
    text-decoration: none;
}

.wp-block-categories a:hover {
    color: var(--cpuden-accent);
}

/* Recent posts block styling */
.wp-block-latest-posts {
    list-style: none;
    padding: 0;
}

.wp-block-latest-posts li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.wp-block-latest-posts li:last-child {
    border-bottom: none;
}

.wp-block-latest-posts a {
    color: #374151;
    text-decoration: none;
}

.wp-block-latest-posts a:hover {
    color: var(--cpuden-accent);
}

/* Comments styling */
.wp-block-comments {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

/* Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--cpuden-accent);
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wp-block-post-content {
        font-size: 1rem;
    }

    .wp-block-post-content h2 {
        font-size: 1.25rem;
    }

    .wp-block-post-content h3 {
        font-size: 1.125rem;
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
    }

    .author-bio .avatar {
        margin: 0 auto;
    }
}
