/*
Theme Name: HackPC News Theme
Description: A modern, responsive WordPress theme designed specifically for HackPC.net. Features a clean design optimized for digital news, software reviews, and tech guides. Built with Tailwind CSS and includes social sharing, newsletter integration, reading progress bars, and extensive customization options.
Version: 1.0.0
Author: HackPC Development Team
Author URI: https://hackpc.net
Text Domain: hackpc-theme
Domain Path: /languages
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, news, two-columns, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready, block-styles

HackPC News Theme is a professional WordPress theme built for digital news websites, tech blogs, and software review sites. 
It features a modern design with:
- Responsive mobile-first layout
- Tailwind CSS integration
- Social media sharing
- Reading progress indicators
- Newsletter subscription forms  
- Customizable brand colors
- SEO optimization
- Accessibility features (WCAG 2.1)
- Multiple layout options
- Widget areas
- Custom post formats

Perfect for technology news sites, software reviews, gaming news, and digital content publishers.
*/

/* Import all theme stylesheets */
@import url('./css/style.css');
@import url('./css/responsive.css'); 
@import url('./css/hackpc-theme.css');
@import url('./css/design-fixes.css');

/* WordPress specific styles */
.wp-block-group {
    margin-bottom: 1.5em;
}

.wp-block-group__inner-container > * {
    margin-top: 0;
    margin-bottom: 1em;
}

.wp-block-group__inner-container > *:last-child {
    margin-bottom: 0;
}

/* Alignment classes for Gutenberg blocks */
.alignleft {
    float: left;
    margin: 0.5em 1.5em 0.5em 0;
}

.alignright {
    float: right;
    margin: 0.5em 0 0.5em 1.5em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.alignwide {
    margin-left: calc(25% - 25vw);
    margin-right: calc(25% - 25vw);
    width: auto;
    max-width: 1000%;
}

.alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: auto;
    max-width: 1000%;
}

/* WordPress Captions */
.wp-caption {
    max-width: 100%;
}

.wp-caption img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875em;
    color: #6b7280;
    text-align: center;
    margin-top: 0.5em;
}

/* WordPress Galleries */
.gallery {
    display: grid;
    grid-gap: 1rem;
    margin-bottom: 1.5em;
}

.gallery-columns-1 { grid-template-columns: repeat(1, 1fr); }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }
.gallery-columns-6 { grid-template-columns: repeat(6, 1fr); }
.gallery-columns-7 { grid-template-columns: repeat(7, 1fr); }
.gallery-columns-8 { grid-template-columns: repeat(8, 1fr); }
.gallery-columns-9 { grid-template-columns: repeat(9, 1fr); }

.gallery-item {
    display: block;
}

.gallery-icon img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

/* WordPress Comments */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body {
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.comment-author {
    font-weight: 600;
    color: #1f2937;
}

.comment-meta {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.comment-content p {
    margin-bottom: 0.75rem;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.reply {
    margin-top: 1rem;
}

.comment-reply-link {
    background: #1e73be;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.2s;
}

.comment-reply-link:hover {
    background: #1e40af;
}

/* Form Styles */
.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #1e73be;
    box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.1);
}

.comment-form-submit input[type="submit"] {
    background: #1e73be;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.comment-form-submit input[type="submit"]:hover {
    background: #1e40af;
}

/* Pagination Styles */
.pagination-wrapper {
    margin: 3rem 0;
    text-align: center;
}

.page-numbers {
    display: inline-block;
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
}

.page-numbers:hover,
.page-numbers.current {
    background: #1e73be;
    color: white;
    border-color: #1e73be;
}

.page-numbers.dots {
    border: none;
    background: none;
}

.page-numbers.prev,
.page-numbers.next {
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .alignwide,
    .alignfull {
        margin-left: -1rem;
        margin-right: -1rem;
    }
    
    .gallery-columns-3,
    .gallery-columns-4,
    .gallery-columns-5,
    .gallery-columns-6,
    .gallery-columns-7,
    .gallery-columns-8,
    .gallery-columns-9 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-columns-2,
    .gallery-columns-3,
    .gallery-columns-4,
    .gallery-columns-5,
    .gallery-columns-6,
    .gallery-columns-7,
    .gallery-columns-8,
    .gallery-columns-9 {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Skip links */
.skip-link {
    left: -9999px;
    position: absolute;
    top: -9999px;
}

.skip-link:focus {
    display: block;
    left: 6px;
    top: 7px;
    z-index: 999999;
}