/*
Theme Name: PRO GROOMING Сайт
Theme URI: https://progrooming.com.ua
Author: PRO GROOMING
Author URI: https://progrooming.com.ua
Description: WordPress тема для блога PRO GROOMING UNIVERSITY BY ALINA PAPIAN
Version: 1.0
Text Domain: progrooming-blog
*/

/* Font Face Declarations */
/* Fonts are loaded via inline styles in functions.php with correct paths */
/* These declarations are fallback - actual paths are set via PHP */
@font-face {
    font-family: 'FixelDisplay';
    src: url('fonts/FixelDisplay-Font/FixelDisplay-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FixelDisplay';
    src: url('fonts/FixelDisplay-Font/FixelDisplay-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FixelDisplay';
    src: url('fonts/FixelDisplay-Font/FixelDisplay-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FixelDisplay';
    src: url('fonts/FixelDisplay-Font/FixelDisplay-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'FixelDisplay', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #000000;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.no-scroll {
    overflow: hidden;
}

/* Global Link Styles - Remove blue color */
a,
a:link,
a:visited,
a:active {
    color: #e4a8a8 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffffff !important;
}

a:focus {
    color: #e4a8a8 !important;
    outline: 2px solid #e4a8a8;
    outline-offset: 2px;
}

/* Remove any blue links from WordPress default styles */
a[href],
a[href]:link,
a[href]:visited {
    color: #e4a8a8 !important;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header Styles */
.header {
    background: #000000;
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(228, 168, 168, 0.1);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
    margin: 0;
    padding: 0;
    height: 64px;
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    gap: 1rem;
    flex-wrap: nowrap;
    min-height: 64px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
}

.logo img {
    display: block;
    height: clamp(35px, 6vw, 60px);
    width: auto;
    min-height: 35px;
    max-height: 60px;
    object-fit: contain;
}

.nav {
    flex: 1;
    min-width: 0;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: clamp(0.5rem, 1.5vw, 1.5rem);
    flex-wrap: nowrap;
    align-items: center;
    margin: 0;
    padding: 0;
    width: 100%;
}

.nav__item {
    margin: 0;
    white-space: nowrap;
    flex-shrink: 1;
    flex-grow: 0;
    min-width: 0;
}

.nav__link {
    color: #ffffff !important;
    text-decoration: none;
    font-size: clamp(0.75rem, 1.2vw, 0.95rem);
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    white-space: nowrap;
    padding: 0.25rem clamp(0, 0.3vw, 0.5rem);
}

.nav__link:hover {
    color: #e4a8a8 !important;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-menu-toggle--open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle--open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle--open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Main Content */
.site-main {
    padding: calc(64px + 2rem) 0 3rem;
    min-height: 60vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.content-area {
    max-width: 800px;
    margin: 0 auto;
}

/* Post Styles */
.post {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    border: 1px solid #2d2d2d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(228, 168, 168, 0.1);
    border-color: #e4a8a8;
}

.post-header {
    margin-bottom: 1.5rem;
}

.post-title {
    font-size: 2rem;
    font-weight: 700;
    color: #e4a8a8;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-title a {
    color: #e4a8a8 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #ffffff !important;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    color: #b3b3b3;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-meta a {
    color: #e4a8a8 !important;
    text-decoration: none;
}

.post-meta a:hover {
    color: #ffffff !important;
}

.post-meta time {
    color: #e4a8a8 !important;
}

.post-meta .author a {
    color: #e4a8a8 !important;
}

.post-content {
    color: #e6e6e6;
    font-size: 1.05rem;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: #e4a8a8;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content h2 {
    font-size: 1.75rem;
}

.post-content h3 {
    font-size: 1.5rem;
}

.post-content h4 {
    font-size: 1.25rem;
}

.post-content ul,
.post-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
    color: #e6e6e6;
}

.post-content a {
    color: #e4a8a8 !important;
    text-decoration: underline;
}

.post-content a:hover {
    color: #ffffff !important;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Media rendering fixes for portrait/large attachments */
.post-content figure,
.post-thumbnail,
.wp-block-image,
.wp-video,
.wp-block-embed {
    margin: 1.5rem 0;
    text-align: center;
    overflow: hidden;
    border-radius: 10px;
}

.post-content img,
.post-thumbnail img,
.wp-block-image img,
.wp-post-image {
    display: block;
    margin: 0 auto;
    width: auto;
    max-width: 100% !important;
    height: auto !important;
    max-height: 85vh;
    object-fit: contain;
}

.post-content video,
.post-content iframe,
.wp-video-shortcode {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 80vh;
    margin: 0 auto;
    background: #000;
    border-radius: 10px;
}

.post-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #2d2d2d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.post-categories,
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-categories a,
.post-tags a {
    background: #2d2d2d;
    color: #e4a8a8 !important;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.post-categories a:hover,
.post-tags a:hover {
    background: #e4a8a8;
    color: #000000 !important;
}

.read-more {
    color: #e4a8a8 !important;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #ffffff !important;
}

/* Single Post */
.single-post .post {
    max-width: 900px;
    margin: 0 auto;
}

/* Archive Page */
.archive-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.archive-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e4a8a8;
    margin-bottom: 1rem;
}

.archive-description {
    color: #b3b3b3;
    font-size: 1.1rem;
}

/* Post Navigation (Previous/Next) */
.post-navigation {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #2d2d2d;
    border-bottom: 1px solid #2d2d2d;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
    min-width: 200px;
}

.post-navigation a {
    color: #e4a8a8 !important;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.post-navigation a:hover {
    color: #ffffff !important;
}

.post-navigation .nav-subtitle {
    display: block;
    color: #b3b3b3;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.post-navigation .nav-title {
    display: block;
    color: #e4a8a8;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1.25rem;
    background: #1e1e1e;
    color: #e6e6e6 !important;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #2d2d2d;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #e4a8a8;
    color: #000000 !important;
    border-color: #e4a8a8;
}

.pagination .current {
    background: #e4a8a8;
    color: #000000 !important;
    border-color: #e4a8a8;
}

/* Footer */
.footer {
    background: #000000;
    color: white;
    padding: 3rem 0 1rem;
    border-top: 1px solid #1e1e1e;
    margin-top: 4rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__section h3 {
    color: #e4a8a8;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer__section p {
    color: #e6e6e6;
    margin-bottom: 0.5rem;
}

.footer__section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__section ul li {
    margin-bottom: 0.5rem;
    color: #e6e6e6;
}

.footer__section ul li a {
    color: #e6e6e6 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__section ul li a:hover {
    color: #e4a8a8 !important;
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #1e1e1e;
}

.footer__bottom p {
    color: #e6e6e6;
    margin: 0.5rem 0;
}

/* Sidebar */
.sidebar {
    max-width: 300px;
    margin-left: 2rem;
}

.widget {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #2d2d2d;
}

.widget-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e4a8a8;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #2d2d2d;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #2d2d2d;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: #e6e6e6 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget a:hover {
    color: #e4a8a8 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header__content {
        padding: 0 16px;
        min-height: 64px;
    }

    .logo {
        min-width: 100px;
        flex-shrink: 0;
    }

    .logo img {
        height: clamp(30px, 6vw, 45px);
        min-height: 30px;
        max-height: 45px;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 3;
        margin-left: auto;
    }

    .nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        height: calc(100svh - 64px);
        min-height: calc(100vh - 64px);
        overflow-y: auto;
        background: #1e1e1e;
        transform: translateY(-12px);
        display: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
        border-top: 0;
        z-index: 999;
        flex: none;
    }

    .nav--open {
        display: block;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        border-top: 1px solid #2d2d2d;
    }

    .nav__list {
        flex-direction: column;
        padding: 2rem;
        gap: 0.5rem;
        flex-wrap: nowrap;
        align-items: stretch;
    }

    .nav__item {
        width: 100%;
    }

    .nav__link {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #2d2d2d;
        white-space: normal;
        font-size: 1rem;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
    }

    .post {
        padding: 1.5rem;
    }

    .post-title {
        font-size: 1.5rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .post-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .archive-title {
        font-size: 2rem;
    }

    .sidebar {
        margin-left: 0;
        margin-top: 3rem;
    }
}

/* WordPress Core Styles */
.wp-block-image {
    margin: 1.5rem 0;
}

.wp-block-image img {
    border-radius: 8px;
}

.wp-block-quote {
    border-left: 4px solid #e4a8a8;
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: #b3b3b3;
    font-style: italic;
}

.wp-block-code {
    background: #1e1e1e;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #2d2d2d;
    overflow-x: auto;
}

/* Ensure all WordPress content links are styled */
.wp-block-button__link,
.wp-element-button {
    color: #e4a8a8 !important;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
    color: #ffffff !important;
}

    border-bottom: 1px solid #2d2d2d;
}

.page-links a {
    color: #e4a8a8 !important;
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border: 1px solid #2d2d2d;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-links a:hover {
    color: #ffffff !important;
    border-color: #e4a8a8;
}

.page-links > span {
    color: #e4a8a8;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border: 1px solid #e4a8a8;
    border-radius: 4px;
}

/* Comments */
.comments-area {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #2d2d2d;
}

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

.comment {
    background: #1e1e1e;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border: 1px solid #2d2d2d;
}

.comment-author {
    color: #e4a8a8;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.comment-author a {
    color: #e4a8a8 !important;
    text-decoration: none;
}

.comment-author a:hover {
    color: #ffffff !important;
}

.comment-meta {
    color: #b3b3b3;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.comment-meta a {
    color: #e4a8a8 !important;
    text-decoration: none;
}

.comment-meta a:hover {
    color: #ffffff !important;
}

.comment-content {
    color: #e6e6e6;
    line-height: 1.8;
}

.comment-content a {
    color: #e4a8a8 !important;
    text-decoration: underline;
}

.comment-content a:hover {
    color: #ffffff !important;
}

.comment-reply-link {
    color: #e4a8a8 !important;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 1rem;
    display: inline-block;
}

.comment-reply-link:hover {
    color: #ffffff !important;
}


/* Universal video layout (keeps original ratio) */
.post-content .wp-video {
  width: 100% !important;
  max-width: 100% !important;
  margin: 1rem auto !important;
}

.post-content video.wp-video-shortcode {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  background: #000;
}

  aspect-ratio: auto !important;
  object-fit: initial !important;
  position: static !important;
  transform: none !important;
  line-height: normal !important;
}

/* Fix vertical video height for post 367 */
.postid-367 .post-content .wp-video {
  max-width: 520px !important;
  margin: 16px auto !important;
}
.postid-367 .post-content video.wp-video-shortcode {
  width: 100% !important;
  height: auto !important;
  max-height: 60vh !important;
  object-fit: contain !important;
  background: #000 !important;
}


/* FIX post 387: full vertical video, no crop */

/* post 387: vertical video, clean player */


/* post 387: vertical video, clean player */













  background:#000 !important;
}

/* post 387 final layout */
/* синхронизируем все обертки плеера с высотой блока */
  width:49% !important;
  margin:0 2% 16px 0 !important;
  aspect-ratio:9/16 !important;
  background:#000 !important;
  overflow:hidden !important;
}

  max-height:none !important;
  object-fit:contain !important;
  background:#000 !important;
}

/* текст начинается после медиа-ряда */
