/* 
 * websodi Haber - main.css
 * Additional styles loaded via wp_enqueue_style
 */


/* ===== PRINT STYLES ===== */
@media print {
  .site-header, .site-footer, .sidebar, .top-bar,
  .related-posts, .comment-section, .entry-share, #back-to-top,
  .ad-container, .ad-slot-728x90, .ad-slot-300x250, .ad-slot-300x600,
  .ad-slot-responsive, .pagination { display: none !important; }
  body { background: #fff; color: #000; }
  .entry-content { font-size: 12pt; line-height: 1.6; }
  a::after { content: " (" attr(href) ")"; font-size: 10pt; }
}

/* ===== WP CORE CLASSES ===== */
.aligncenter { display: block; margin: 20px auto; text-align: center; }
.alignleft { float: left; margin: 0 20px 16px 0; }
.alignright { float: right; margin: 0 0 16px 20px; }
.alignwide { max-width: 100%; }
.alignfull { width: 100vw; margin-left: calc(-50vw + 50%); max-width: 100vw; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: #666; text-align: center; margin-top: 6px; }

/* ===== GALLERY ===== */
.gallery { display: grid; grid-template-columns: repeat(var(--gallery-cols, 3), 1fr); gap: 8px; margin: 16px 0; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.gallery-columns-1 { --gallery-cols: 1; }
.gallery-columns-2 { --gallery-cols: 2; }
.gallery-columns-4 { --gallery-cols: 4; }
@media (max-width: 600px) { .gallery { --gallery-cols: 2 !important; } }

/* ===== SCREEN READER ===== */
.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; width: 1px; word-wrap: normal !important;
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute; top: -40px; left: 0; background: #e31010;
  color: #fff; padding: 8px 16px; z-index: 9999; transition: top .2s;
  border-radius: 0 0 4px 0;
}
.skip-link:focus { top: 0; }

/* ===== STICKY POST ===== */
.sticky .post-card { border: 2px solid #e31010; }
.sticky .post-card::after { content: '📌'; position: absolute; top: 8px; left: 8px; font-size: 14px; }

/* ===== PAGE TEMPLATE ===== */
.page-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; padding: 20px 0 40px; }
@media (max-width: 768px) { .page-layout { grid-template-columns: 1fr; } }

/* ===== SEARCH RESULTS ===== */
.search-results-info { padding: 12px 0; font-size: 14px; color: #666; margin-bottom: 16px; }

/* ===== ADMIN BAR OFFSET ===== */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }