/*!
Theme Name: Sex-czech Blog
Theme URI: https://them.es/starter
Author: Radek Jekel
Author URI: https://them.es/
Description: Template for sex-czech blog
Version: 2.4.4
Requires at least: 5.0
Tested up to: 5.7
Requires PHP: 7.2
License: GPL version 2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0
Tags: custom-background, custom-colors, featured-images, flexible-header, microformats, post-formats, rtl-language-support, theme-options, translation-ready, accessibility-ready
Text Domain: sex-czech-blog
*/

/* Don't overwrite this file. Compile "/assets/main.(less|scss)" to "/assets/css/main.css" */


/* From http://codex.wordpress.org/CSS */

.container {
	max-width: 1440px;
}

.alignnone {
	margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
	display: block;
	margin: 5px auto 5px auto;
}

.alignright {
	float: right;
	margin: 5px 0 20px 20px;
}

.alignleft {
	float: left;
	margin: 5px 20px 20px 0;
}

a img.alignright {
	float: right;
	margin: 5px 0 20px 20px;
}

a img.alignnone {
	margin: 5px 20px 20px 0;
}

a img.alignleft {
	float: left;
	margin: 5px 20px 20px 0;
}

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

.wp-caption {
	max-width: 96%; /* Image does not overflow the content area */
	padding: 5px 3px 10px;
	text-align: center;
}
.wp-caption.alignnone {
	margin: 5px 20px 20px 0;
}
.wp-caption.alignleft {
	margin: 5px 20px 20px 0;
}
.wp-caption.alignright {
	margin: 5px 0 20px 20px;
}
.wp-caption img {
	border: 0 none;
	height: auto;
	margin: 0;
	max-width: 98.5%;
	padding: 0;
	width: auto;
}
.wp-caption p.wp-caption-text {
	font-size: 11px;
	line-height: 17px;
	margin: 0;
	padding: 0 4px 5px;
}

.gallery-item {
	display: inline-block;
	text-align: left;
	vertical-align: top;
	width: 50%;
}

.gallery-item a,
.gallery-item a:hover,
.gallery-item a:focus {
	-webkit-box-shadow: none;
	box-shadow: none;
	background: none;
	display: inline-block;
	max-width: 100%;
}

.gallery-item a img {
	display: block;
	-webkit-transition: -webkit-filter 0.2s ease-in;
	transition: -webkit-filter 0.2s ease-in;
	transition: filter 0.2s ease-in;
	transition: filter 0.2s ease-in, -webkit-filter 0.2s ease-in;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.gallery-item a:hover img,
.gallery-item a:focus img {
	-webkit-filter: opacity(60%);
	filter: opacity(60%);
}

.gallery-caption {
	display: block;
	text-align: left;
	padding: 0 10px 0 0;
	margin-bottom: 0;
}

.gallery-columns-1 .gallery-item {
	max-width: 100%;
}

.gallery-columns-2 .gallery-item {
	max-width: 50%;
}

.gallery-columns-3 .gallery-item {
	max-width: 33%;
}

.gallery-columns-4 .gallery-item {
	max-width: 25%;
}

.gallery-columns-5 .gallery-item {
	max-width: 20%;
}

.gallery-columns-6 .gallery-item {
	max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
	max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
	max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
	max-width: 11.11%;
}

.gallery-columns-6 .gallery-caption,
.gallery-columns-7 .gallery-caption,
.gallery-columns-8 .gallery-caption,
.gallery-columns-9 .gallery-caption {
	display: none;
}

.bypostauthor {
	font-weight: bold;
}

/* Text meant only for screen readers. */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.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;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar. */
}

/* card */

.hover-card {
    position: relative !important;
    border-radius: .5rem !important;
    overflow: hidden !important;
}

.hover-card .card-info {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: transparent !important;
    background: linear-gradient(225deg, rgba(255, 255, 255, 0) 40%, rgba(0, 0, 0, 1) 100%) !important;
    height: 350px !important;
    color: white !important;
    border-radius: .5rem !important;
}

.thumb-detail-card {
    height: 350px !important;
    object-fit: cover !important;
    border: 0 !important;
    border-radius: .5rem !important;
}

.thumb-detail-card img {
    height: 350px !important;
    width: 100% !important;
    object-fit: cover !important;
    border-radius: .5rem !important;
}

.thumb-detail-card .card-title a {
    text-decoration: none !important;
    color: #d10058 !important;
}

.thumb-detail-card img {
    height: 350px !important;
    width: 100% !important;
    object-fit: cover !important;
    border-radius: .5rem !important;
    transition: transform 0.5s ease !important;
}

/* Efekt zoom při hoveru */
.hover-card:hover img {
    transform: scale(1.1) !important;
}

/* end */

.nav-tabs .nav-link:focus, .nav-tabs .nav-link:hover {
    isolation: isolate !important;
    border-color: #d10058 !important;
}

.text-muted {
    color: rgba(255, 255, 255, .5) !important;
}

/* gallery */

.gallery-item-col img {
    width: 100% !important;
    height: 240px !important;
    object-fit: cover !important;
    border-radius: .5rem !important;
}

/* end */

/* tabs */

.tab-content {
    border: 0px solid #d10058 !important;
    border-top: none !important;
    padding: 0rem !important;
    /* Možná zde chcete nějaký padding, např. 1rem, pokud obsah tabu začíná hned u okraje */
    border-radius: 0 0 0.375rem 0.375rem !important;
}

.nav-tabs .nav-link {
    color: #fff !important;
    display: flex !important;
    /* Přidáno pro zarovnání obsahu (ikona + text) */
    align-items: center !important;
    /* Vertikální zarovnání obsahu na střed */
    justify-content: center !important;
    /* Horizontální zarovnání obsahu na střed (volitelné) */
    height: 100% !important;
    /* Zajistí, že odkaz vyplní celou výšku .nav-item */
    white-space: nowrap !important;
    /* Zabrání zalamování textu v tlačítku, pokud je to žádoucí */
}

.nav-tabs .nav-item {
    /* Přidáno */
    display: flex !important;
    /* Umožní .nav-link vyplnit výšku */
}

.nav-tabs .nav-link.active {
    color: #fff !important;
    border-color: #d10058 !important;
    /* Bootstrap se o toto stará, ale pro jistotu */
    background: #d10058 !important;
}

.section-title-tab {
    font-size: 1.3rem !important;
    font-weight: 500 !important;
    color: #343a40 !important;
    /* Tuto barvu možná chcete změnit, aby ladila s bílým textem na tmavém pozadí */
    margin-top: 1.5rem !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 1px solid #d10058 !important;
}

.section-title-tab:first-child {
    margin-top: 0 !important;
}

.nav-tabs-scrollable-container {
    overflow-x: auto !important;
    /* Změna z 'scroll' na 'auto' - scrollbar se ukáže jen když je potřeba */
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    /* Vráceno pro plynulejší scrolling na iOS */
    /* Pro jistotu můžeme přidat i vlastnosti, které by mohly ovlivnit vertikální scroll */
    overscroll-behavior-y: contain !important;
    /* Zabrání "scroll chaining" na ose Y */
}

.nav-tabs-scrollable-container .nav-tabs.flex-nowrap {
    padding-right: 1rem !important;
    /* Zajistíme, že samotný ul.nav-tabs nezpůsobí vertikální scroll */
    display: flex !important;
    /* Již by mělo být, ale pro jistotu */
    flex-wrap: nowrap !important;
    /* Již by mělo být */
    align-items: stretch !important;
    /* Zajistí, že položky .nav-item se roztáhnou na výšku kontejneru ul */
    padding-bottom: 0px !important;
    /* Malý trik, aby se spodní border-bottom od .nav-link.active správně vykreslil a nepřekrýval se s případným scrollbarem kontejneru */
}

.nav-tabs .nav-link {
	background: transparent !important;
}

/* end */

.ad-main-image {
    cursor: pointer !important;
}

img.ad-main-image {
    width: 100% !important;
    height: 420px !important;
    object-fit: cover !important;
    border-radius: .5em !important;
}

.btn-primary {
    background-color: #d10058 !important;
    border-color: #d10058 !important;
}

.btn-primary:hover {
    background-color: #d10058 !important;
    border-color: #d10058 !important;
}

dd {
    margin-bottom: 1rem !important;
}

.border-bottom-pink {
    border-bottom: 1px solid #d10058 !important;
}

.text-primary-pink {
    color: #d10058 !important;
}

/* ========================================
   Fixed Share Panels - Vyjížděcí panely
   ======================================== */

.share-panels-container {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-panel {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 8px 0 0 8px;
    transform: translateX(calc(100% - 50px));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    color: #fff !important;
}

.share-panel:hover {
    transform: translateX(0);
    box-shadow: -4px 4px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: #fff !important;
}

.share-panel-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-panel-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.share-panel-text {
    margin-left: 12px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease 0.1s;
}

.share-panel:hover .share-panel-text {
    opacity: 1;
}

/* WhatsApp panel */
.share-panel-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.share-panel-whatsapp:hover {
    background: linear-gradient(135deg, #2EE370 0%, #159B8D 100%);
}

/* Reddit panel */
.share-panel-reddit {
    background: linear-gradient(135deg, #FF4500 0%, #FF5722 100%);
}

.share-panel-reddit:hover {
    background: linear-gradient(135deg, #FF5722 0%, #FF6D3A 100%);
}

/* X (Twitter) panel */
.share-panel-x {
    background: linear-gradient(135deg, #000000 0%, #14171A 100%);
}

.share-panel-x:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2d31 100%);
}

/* ========================================
   Fixed Phone Button - Mobil
   ======================================== */

.phone-call-button {
    display: none; /* Skryto na desktopu */
}

@media (max-width: 768px) {
    /* Phone button - levý dolní roh na mobilu */
    .phone-call-button {
        display: flex;
        position: fixed;
        left: 16px;
        bottom: 16px;
        z-index: 9999;
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: linear-gradient(135deg, #d10058 0%, #a30046 100%);
        color: #fff !important;
        text-decoration: none;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(209, 0, 88, 0.4);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .phone-call-button:hover,
    .phone-call-button:active {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(209, 0, 88, 0.5);
        color: #fff !important;
    }

    .phone-call-button svg {
        width: 24px;
        height: 24px;
        fill: currentColor;
    }

    /* Share panely na mobilu - pod inzerátem, 100% width, pod sebou */
    .share-panels-container {
        position: static;
        transform: none;
        flex-direction: column;
        gap: 10px;
        margin: 30px 0;
        padding: 0;
        background: transparent;
        border-radius: 0;
    }

    .share-panel {
        transform: none;
        border-radius: 10px;
        padding: 14px 20px;
        min-width: 100%;
        width: 100%;
        height: auto;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        justify-content: center;
    }

    .share-panel:hover,
    .share-panel:active {
        transform: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .share-panel-text {
        display: inline;
        opacity: 1;
        margin-left: 10px;
        font-size: 14px;
    }

    .share-panel-icon {
        width: 22px;
        height: 22px;
    }

    .share-panel-icon svg {
        width: 22px;
        height: 22px;
    }
}