/*
Theme Name: Winday
Theme URI: https://winday.co/
Author: Winday
Author URI: https://winday.co/
Description: Winday 2.0 marketing site theme. Static marketing pages with per-template EN/UA text arrays, fully dynamic blog.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: winday
*/

/* Main styles are enqueued from css/styles.css. Below: WordPress-specific additions only. */

/* --- Fixed nav below the WP admin bar for logged-in users --- */
body.admin-bar .wd-nav { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .wd-nav { top: 46px; }
}

/* --- Blog pagination (wp the_posts_pagination) --- */
.wd-pagination { margin-top: 40px; }
.wd-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.wd-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid hsl(228 25% 90%);
  background: #fff;
  color: hsl(228 15% 30%);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.wd-pagination .page-numbers:hover { border-color: #498CFF; color: #498CFF; }
.wd-pagination .page-numbers.current {
  background: linear-gradient(135deg, #498CFF, #493BFF);
  border-color: transparent;
  color: #fff;
}
.wd-pagination .page-numbers.dots { border: none; background: none; }

/* --- Post content: core image/caption blocks inside .wd-post-content --- */
.wd-post-content img { max-width: 100%; height: auto; border-radius: 16px; }
.wd-post-content .wp-caption { max-width: 100%; }
.wd-post-content .wp-caption-text,
.wd-post-content figcaption { font-size: 14px; color: hsl(225 15% 50%); margin-top: 8px; }
.wd-post-content .alignleft { float: left; margin: 0 20px 12px 0; }
.wd-post-content .alignright { float: right; margin: 0 0 12px 20px; }
.wd-post-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* --- [add_podcast] Spotify embed --- */
.wd-podcast { margin: 28px 0; }
.wd-podcast iframe { display: block; border: 0; }

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

iframe{
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
}
