/**
 * Main theme styles for Chem Prom Snab
 * Note: Most styles are now in styles.css (from HTML mockups)
 * This file contains only WordPress-specific styles
 */

/* Reset and base styles - minimal, let Tailwind handle the rest */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* WordPress generated classes */
.alignleft {
    float: left;
    margin-right: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
}

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

/* WordPress captions */
.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5em;
}

.wp-caption img {
    display: block;
    margin: 0 auto;
}

.wp-caption-text {
    font-size: 14px;
    color: #666;
    padding: 8px 0;
    text-align: center;
}

/* WordPress gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 1.5em;
}

.gallery-item {
    margin: 0;
}

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

.gallery-caption {
    font-size: 12px;
    color: #666;
    padding: 4px 0;
}

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

.comment {
    padding: 20px;
    margin-bottom: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 8px;
}

.comment-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.comment-content {
    line-height: 1.8;
}

.comment-reply-link {
    display: inline-block;
    padding: 4px 12px;
    background: #1a365d;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

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

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.page-numbers.current {
    background: #1a365d;
    color: #fff;
    border-color: #1a365d;
}

.page-numbers:hover:not(.current) {
    background: #f0f0f0;
}

/* Search form */
.search-form {
    display: flex;
    gap: 8px;
}

.search-field {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-submit {
    padding: 8px 20px;
    background: #1a365d;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-submit:hover {
    background: #002045;
}

/* 404 page */
.error-404 {
    text-align: center;
    padding: 60px 20px;
}

.error-404 .page-title {
    font-size: 48px;
    margin-bottom: 20px;
}

/* Post navigation */
.post-navigation {
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin: 40px 0;
}

.navigation,
.nav-links {
    margin-top: 25px;
    display: flex;
    gap: 10px;
}

.nav-previous,
.nav-next {
    max-width: 45%;
}

.nav-previous a,
.nav-next a {
    color: #1a365d;
    text-decoration: none;
}

.nav-previous a:hover,
.nav-next a:hover {
    color: #002045;
}

/* Sticky post */
.sticky {
    border-left: 4px solid #1a365d;
    padding-left: 20px;
}

/* WordPress block editor styles */
.wp-block-quote {
    border-left: 4px solid #1a365d;
    padding-left: 20px;
    margin: 20px 0;
}

.wp-block-pullquote {
    border-top: 4px solid #1a365d;
    border-bottom: 4px solid #1a365d;
    padding: 20px 0;
    text-align: center;
}

/* Responsive embeds */
.wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.header-logo {
    max-width: 120px!important;
}
