/*
Theme Name:   CPUden News
Theme URI:    https://cpuden.com
Description:  Child theme of Twenty Twenty-Four for CPUden.com — tech news covering CPUs, GPUs, and AI.
Author:       CPUden
Author URI:   https://cpuden.com
Template:     twentytwentyfour
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  cpuden
*/

/* CPUden News - Child Theme Styles */

/* Category badges */
.entry-categories {
    margin-bottom: 1rem;
}

.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    text-decoration: none;
    margin-right: 0.5rem;
    color: #ffffff;
}

.category-badge:hover {
    opacity: 0.9;
    text-decoration: none;
    color: #ffffff;
}

/* News list styling for homepage */
.home .wp-block-post {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.home .wp-block-post:last-child {
    border-bottom: none;
}

/* Post title links */
.wp-block-post-title a {
    color: #111827;
    text-decoration: none;
}

.wp-block-post-title a:hover {
    color: var(--cpuden-accent, #2563eb);
}

/* Read more links */
.wp-block-read-more {
    display: inline-block;
    font-weight: 500;
    text-decoration: none;
}

.wp-block-read-more:hover {
    text-decoration: underline;
}

/* Author bio styling */
.author-bio {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
}

.author-bio .avatar {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.author-bio .author-name {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
}

.author-bio .author-description {
    margin: 0;
    color: #4b5563;
    font-size: 0.9375rem;
}

/* Tags styling */
.wp-block-post-terms {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.wp-block-post-terms a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin: 0 0.25rem 0.5rem 0;
    background: #f3f4f6;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #4b5563;
    text-decoration: none;
}

.wp-block-post-terms a:hover {
    background: #e5e7eb;
    color: #111827;
}

/* Custom accent color overrides */
.has-cpuden-accent-color {
    color: var(--cpuden-accent, #2563eb);
}

.has-cpuden-accent-background-color {
    background-color: var(--cpuden-accent, #2563eb);
}

/* Print styles */
@media print {
    .wp-block-post-terms,
    .author-bio {
        display: none;
    }
}
