/**
 * Theme Name: MindFit Summit
 * Template: twentytwentyfive
 * Author: Vladimir Vassilev
 * Text Domain: mindfit-summit
 * License: GNU General Public License v2.0 or later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 */


/* Webfont: Lato-BlackItalic */
@font-face {
    font-family: 'Lato';
    src: url('fonts/Lato-BlackItalic.woff2') format('woff2');
    font-style: italic;
    font-weight: 900;
    font-display: swap;
}

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

/* Webfont: Lato-BoldItalic */
@font-face {
    font-family: 'Lato';
    src: url('fonts/Lato-BoldItalic.woff2') format('woff2');
    font-style: italic;
    font-weight: 700;
    font-display: swap;
}

/* Webfont: Lato-Hairline */
@font-face {
    font-family: 'Lato';
    src: url('fonts/Lato-Hairline.woff2') format('woff2');
    font-style: normal;
    font-weight: 100;
    font-display: swap;
}

/* Webfont: Lato-HairlineItalic */
@font-face {
    font-family: 'Lato';
    src: url('fonts/Lato-HairlineItalic.woff2') format('woff2');
    font-style: italic;
    font-weight: 100;
    font-display: swap;
}

/* Webfont: Lato-Heavy */
@font-face {
    font-family: 'Lato';
    src: url('fonts/Lato-Heavy.woff2') format('woff2');
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

/* Webfont: Lato-HeavyItalic */
@font-face {
    font-family: 'Lato';
    src: url('fonts/Lato-HeavyItalic.woff2') format('woff2');
    font-style: italic;
    font-weight: 800;
    font-display: swap;
}

/* Webfont: Lato-Italic */
@font-face {
    font-family: 'Lato';
    src: url('fonts/Lato-Italic.woff2') format('woff2');
    font-style: italic;
    font-weight: 400;
    font-display: swap;
}

/* Webfont: Lato-Light */
@font-face {
    font-family: 'Lato';
    src: url('fonts/Lato-Light.woff2') format('woff2');
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

/* Webfont: Lato-LightItalic */
@font-face {
    font-family: 'Lato';
    src: url('fonts/Lato-LightItalic.woff2') format('woff2');
    font-style: italic;
    font-weight: 300;
    font-display: swap;
}

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

/* Webfont: Lato-MediumItalic */
@font-face {
    font-family: 'Lato';
    src: url('fonts/Lato-MediumItalic.woff2') format('woff2');
    font-style: italic;
    font-weight: 500;
    font-display: swap;
}

/* Webfont: Lato-Regular */
@font-face {
    font-family: 'Lato';
    src: url('fonts/Lato-Regular.woff2') format('woff2');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

/* Webfont: Lato-Semibold */
@font-face {
    font-family: 'Lato';
    src: url('fonts/Lato-Semibold.woff2') format('woff2');
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

/* Webfont: Lato-SemiboldItalic */
@font-face {
    font-family: 'Lato';
    src: url('fonts/Lato-SemiboldItalic.woff2') format('woff2');
    font-style: italic;
    font-weight: 600;
    font-display: swap;
}

/* Webfont: Lato-Thin */
@font-face {
    font-family: 'Lato';
    src: url('fonts/Lato-Thin.woff2') format('woff2');
    font-style: normal;
    font-weight: 200;
    font-display: swap;
}

/* Webfont: Lato-ThinItalic */
@font-face {
    font-family: 'Lato';
    src: url('fonts/Lato-ThinItalic.woff2') format('woff2');
    font-style: italic;
    font-weight: 200;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
}

/* Layout fix */
.wp-site-blocks {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.wp-site-blocks > footer {
    margin-top: auto;
}
body.admin-bar .wp-site-blocks {
    min-height: calc(100vh - 32px);
}
@media screen and (max-width: 782px) {
    body.admin-bar .wp-site-blocks {
        min-height: calc(100vh - 46px);
    }
}

.accent-section {
    background-image: linear-gradient(170deg, #59D5F0 0%, #9341D4 100%);
}

.wp-block-button__link:hover,
.wp-block-button__link:focus {
    background-color: #FF7A59 !important;
    /*color: var(--wp--preset--color--background) !important;*/
}

.wp-block-navigation a:focus {
    outline: 1px dotted #7c60c6;
    outline-offset: 2px;
}
.wp-block-navigation a:hover span {
    color: #917cc7;
}

/* ========================================
   FOCUS СТИЛОВЕ ЗА ДОСТЪПНОСТ
   ======================================== */

/* Основни focus стилове за всички интерактивни елементи */
a:focus,
button:focus,
input[type="submit"]:focus,
input[type="button"]:focus,
select:focus,
textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
.wp-block-button__link:focus,
.wp-element-button:focus {
    outline: 1px dotted #7c60c6 !important;
    outline-offset: 2px !important;
}

/* Focus-visible за модерни браузъри (показва се само при keyboard navigation) */
a:focus-visible,
button:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible,
select:focus-visible,
textarea:focus-visible,
input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
.wp-block-button__link:focus-visible,
.wp-element-button:focus-visible {
    outline: 1px dotted #7c60c6 !important;
    outline-offset: 2px !important;
}

/* Специфични focus стилове за CampTix елементи */
.tix-js input[type="submit"]:focus,
.tix-row-coupon input[type="submit"]:focus,
#tix-coupon-input:focus,
.tix-attendee-form input[type="text"]:focus,
.tix-attendee-form input[type="email"]:focus,
.tix-attendee-form textarea:focus,
.tix-submit select:focus,
.tix-column-quantity select:focus {
    outline: 1px dotted #7c60c6 !important;
    outline-offset: 2px !important;
}

/* Focus за лектори (когато са достъпни чрез keyboard) */
.mindfit-team .uagb-team__content:focus {
    outline: 1px dotted #7c60c6 !important;
    outline-offset: 2px !important;
}

/* Focus за modal close бутон */
.close-modal:focus {
    outline: 1px dotted #7c60c6 !important;
    outline-offset: 2px !important;
}

/* Hero */
.hero-blurred {
    /*background-color: rgba(255, 255, 255, 0.7);
    border-radius: 30px;*/
    backdrop-filter: blur(10px); /* Прилага замъгляване от 10px към фона отдолу */
    -webkit-backdrop-filter: blur(10px); /* За съвместимост с някои браузъри */
}

/* Цените в евро */
.tix-column-price:after {
    content: " / EUR " attr(data-eur-price);
    font-size: 0.85em;
    color: #666;
    display: block;
}

/* Или чрез CSS calc (ако браузърът поддържа) */
.tix-column-price {
    position: relative;
}

.tix-column-price:after {
    content: "EUR " calc(var(--bgn-price) / 1.95583);
    /* Не работи за динамични стойности, но може да се хардкодира */
}


/* CampTix tickets table styling */
.tix_tickets_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
    margin: 2rem 0;
    font-family: inherit;
}

.tix_tickets_table thead {
    display: none; /* скриваме заглавния ред – не е нужен при ticket look */
}

.tix_tickets_table tbody tr {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.tix_tickets_table tbody tr td,
.tix_tickets_table tbody tr th {
    padding: 1rem 1.25rem;
    vertical-align: middle;
}

.tix-column-description {
    text-align: left;
}

.tix-ticket-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--wp--preset--color--primary);
}

.tix-ticket-excerpt {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #666;
}

.tix-column-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
}

.tix-column-price small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8em;
    color: #666;
    font-weight: 400;
}

.tix-column-remaining {
    text-align: center;
    font-size: 0.9rem;
    color: #555;
    display: none !important;
}
.tix-column-remaining:after {
    content: " остават";
    font-size: 0.85em;
    color: #555;
    display: block;
}

.tix-column-quantity select {
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.tix-row-coupon {
    text-align: right;
    font-size: 1.3rem;
    background-color: rgba(89, 213, 240, 0.65) !important;
}

.tix-row-coupon a {
    color: rgba(255, 255, 255, 1);
    text-decoration: underline;
    font-weight: 800;
    display: none;
}

/* контейнерът на купона – подредба + текст преди полето */
#tix-coupon-container {
	display: inline-flex !important;
	align-items: center;
	gap: 12px;
}

#tix-coupon-container::before {
	content: "Имате код за намаление? Въведете го тук. Ако нямате, просто продължете към регистрация.";
	color: #333;
	font-weight: 700;
	font-size: 1rem;
	margin-right: 4px;
}

/* мобилно – текстът отгоре, после полето и бутонът */
@media (max-width: 768px) {
	#tix-coupon-container {
		display: block !important;
		text-align: center;
	}
	#tix-coupon-container::before {
		display: block;
		margin: 0 0 8px 0;
		font-size: 0.95rem;
	}
}

/* Напомняне за купон – показва се само на checkout стъпката */
#tix_checkout_form > h2:first-of-type::after {
	/*content: "Важно: Ако имате код за отстъпка, върнете се на предишната страница „Билети“ и го въведете там. Без добавен код отстъпката няма да се приложи.";*/
	display: block;
	margin: 10px 0 16px;
	padding: 12px 14px;
	border-radius: 8px;
	background: #fff4c4;
	border: 1px solid #e3b341;
	color: #5a4100;
	font-weight: 600;
	line-height: 1.4;
	font-size: 0.95rem;
}
@media (max-width: 768px) {
	#tix_checkout_form[action*="tix_action=checkout"] > h2:first-of-type::after {
		font-size: 0.95rem;
		padding: 10px 12px;
	}
}


.tix-js input[type="submit"] {
    background-color: var(--wp--preset--color--purple-button);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
}
.tix-js input[type="submit"]:hover {
    background-color: var(--wp--preset--color--purple-button-hover);
}

.tix-row-coupon input[type="submit"] {
    background-color: #505050;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}
.tix-row-coupon input[type="submit"]:hover {
    background-color: #333;
}

#tix-coupon-input,
.tix-attendee-form input[type="text"],
.tix-attendee-form input[type="email"] {
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.tix-submit select {
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
}

/* Mobile responsive layout for CampTix table */
@media (max-width: 768px) {
    .tix_tickets_table,
    .tix_tickets_table tbody,
    .tix_tickets_table tr {
        display: block;
        width: 100%;
    }


    .tix_tickets_table td,
    .tix_tickets_table th {
        display: block;
        width: calc(100% - 2rem);
    }

    .tix_tickets_table tbody tr {
        margin-bottom: 1rem;
        border-radius: 12px;
        overflow: hidden;
    }

    .tix_tickets_table tbody tr td,
    .tix_tickets_table tbody tr th {
        text-align: center;
        border: none;
        padding: 1rem 1rem;
    }

    /* Подредба на отделните полета */
    .tix-column-description {
        order: 1;
        text-align: center;
    }

    .tix-column-price {
        order: 2;
        font-size: 1.1rem;
        text-align: center;
        margin-top: 0.25rem;
    }

    .tix-column-remaining {
        order: 3;
        font-size: 0.9rem;
        color: #666;
        margin-top: 0.25rem;
    }

    .tix-column-quantity {
        order: 4;
        margin-top: 0.25rem;
    }

    /* Dropdown ограничен размер */
    .tix-column-quantity select {
        width: auto;
        min-width: 80px;
        max-width: 120px;
        padding: 0.4rem 0.6rem;
    }

    /* Етикети за четимост */
    .tix-column-quantity::before {
        content: "Количество: ";
        display: block;
        font-weight: 500;
        color: #333;
        margin-bottom: 0.25rem;
    }

    #tix-coupon-link1, #tix-coupon-input, #tix-coupon-container, .tix-row-coupon input[type="submit"] {
        display: block;
        text-align: center;
    }

    #tix-coupon-input, .tix-row-coupon input[type="submit"]  {
        margin: 0.5rem auto;
        width: calc(100% - 1rem);
    }
}

/* CampTix Ticket Table Styling */
.tix-ticket-form {
    width: 100%;
    border-collapse: collapse;
    font-family: inherit;
    font-size: 16px;
    color: #2F2F2F;
}

.tix-ticket-form thead th {
    text-align: left;
    padding: 12px 15px;
    background-color: rgba(116, 77, 189, 0.63);
    font-weight: 600;
    color: #fff;
}

.tix-ticket-form tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #959595;
    vertical-align: top;
}

.tix-ticket-form tbody tr:hover {
    background-color: rgba(250, 250, 250, 0.37);
}

.tix-ticket-form a {
    color: #7c60c6;
    text-decoration: none;
    font-weight: 500;
}

.tix-ticket-form a:hover {
    text-decoration: underline;
}


/* Лектори тест */
.mindfit-team img {
    background-color: rgba(116, 77, 189, 0.37);
    width: 250px !important;
    height: 250px !important;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
    border-radius: 50%;
}

.mindfit-team .uagb-team__image-position-above img {
    margin-left: 0;
    margin-right: 0;
}

/* Скриваме заглавието, позицията и описанието по подразбиране */
.mindfit-team .uagb-team__title,
.mindfit-team .uagb-team__prefix,
.mindfit-team .uagb-team__desc {
    display: none;
}

/* Скриваме социалните икони по подразбиране */
.mindfit-team .uagb-team__social-list {
    display: none !important;
}

/* Стилове за контейнера на всеки лектор */
.mindfit-team .uagb-team__content {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 50%;
    width: 250px;
    height: 250px;
    flex-shrink: 0; /* Предотвратява свиване на контейнера */
}

.mindfit-team .uagb-team__content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(116, 77, 189, 0.9), rgba(116, 77, 189, 0.7));
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 2;
    border-radius: 50%;
}

/* Създаваме текст overlay за името */
.mindfit-team .uagb-team__content::after {
    content: attr(data-name);
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    font-weight: bold;
    font-size: 1.3em;
    line-height: 1.2;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 4;
    width: 80%;
    box-sizing: border-box;
}

/* Създаваме overlay за позицията - използваме ::before за второ текстово поле */
.mindfit-team .uagb-team__content .position-overlay {
    content: attr(data-position);
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-weight: normal;
    font-size: 1em;
    line-height: 1.2;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 4;
    width: 80%;
    box-sizing: border-box;
}


/* Hover ефекти */
.mindfit-team .uagb-team__content:hover::before,
.mindfit-team .uagb-team__content:hover::after,
.mindfit-team .uagb-team__content:hover .position-overlay {
    opacity: 1;
    visibility: visible;
}

.mindfit-team .uagb-team__content:hover img {
    transform: scale(1.05);
    filter: brightness(0.8);
}

/* Допълнителни стилове за осигуряване на правилното подравняване */
.mindfit-team .uagb-team__wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 220px;
    height: 220px;
}

/* Премахваме всички margin и padding от контейнерите */
.mindfit-team .uagb-team__content,
.mindfit-team .uagb-team__wrap,
.mindfit-team .uagb-team__image-wrap {
    margin: 0 !important;
    padding: 0 !important;
}

/* Popup модал стилове */
.lecturer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lecturer-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.lecturer-modal.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #333;
}

.modal-lecturer-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    display: block;
    background-color: rgba(116, 77, 189, 0.37);
}

.modal-lecturer-name {
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #333;
}

.modal-lecturer-position {
    text-align: center;
    font-size: 1.2em;
    color: rgba(116, 77, 189, 1);
    margin-bottom: 20px;
    font-weight: 600;
}

.modal-lecturer-description {
    font-size: 1em;
    line-height: 1.6;
    color: #666;
    margin-bottom: 25px;
    text-align: justify;
}

.modal-social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.modal-social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(116, 77, 189, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-social-links a:hover {
    background: rgba(116, 77, 189, 1);
    transform: translateY(-2px);
}

.modal-social-links a svg {
    width: 20px;
    height: 20px;
    fill: rgba(116, 77, 189, 1);
    transition: fill 0.3s ease;
}

.modal-social-links a:hover svg {
    fill: white;
}

.tix-attendee-form .tix-row-question-807 {
    display: none;
}

.tix-attendee-form .tix-row-question-807 textarea {
    height: 100px;
    padding: 8px;
}


/* Responsive дизайн */
/* За мобилни + таблети без hover */
@media (max-width: 767px), (hover: none) and (pointer: coarse) and (min-width: 768px) {
    .modal-content {
        padding: 20px;
        margin: 20px;
    }

    /* По-малки размери */
    .mindfit-team .uagb-team__wrap {
        width: 100% !important;
        height: 100% !important;
    }

    .mindfit-team .uagb-team__content,
    .mindfit-team .uagb-team__content img {
        width: 100% !important;
        height: 100% !important;
    }

    /* Скриваме hover ефектите */
    .mindfit-team .uagb-team__content::before,
    .mindfit-team .uagb-team__content::after,
    .mindfit-team .position-overlay {
        display: none !important;
    }

    /* Показваме името и позицията постоянно */
    .mindfit-team .uagb-team__title,
    .mindfit-team .uagb-team__prefix {
        display: block !important;
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        text-align: center !important;
        width: 90% !important;
        z-index: 5 !important;
        padding: 4px 8px !important;
        border-radius: 12px !important;
    }

    .mindfit-team .uagb-team__title {
        /*top: 70% !important;*/
        bottom: 22% !important; /* вместо top */
        top: auto !important;
        font-size: 1em !important;
        font-weight: bold !important;
        color: white !important;
        background: rgba(0, 0, 0, 0.7) !important;
        line-height: 1.1 !important;
        margin: 0 !important;
    }

    .mindfit-team .uagb-team__prefix {
        /*top: 78% !important;*/
        bottom: 12% !important; /* вместо top */
        top: auto !important;
        font-size: 0.85em !important;
        font-weight: normal !important;
        color: white !important;
        background: rgba(116, 77, 189, 0.8) !important;
        line-height: 1.1 !important;
        margin: 0 !important;
    }


    /* Премахваме hover ефекта за снимката */
    .mindfit-team .uagb-team__content:hover img {
        transform: none !important;
        filter: none !important;
    }
}


/*

@media (max-width: 767px) {
    .modal-content {
        padding: 20px;
        margin: 20px;
    }

    !* По-малки размери за мобилни *!
    .mindfit-team .uagb-team__wrap {
        width: 100% !important;
        height: 100% !important;
    }

    .mindfit-team .uagb-team__content,
    .mindfit-team img {
        width: 100% !important;
        height: 100% !important;
    }

    !* Скриваме hover ефектите на мобилни *!
    .mindfit-team .uagb-team__content::before,
    .mindfit-team .uagb-team__content::after,
    .mindfit-team .position-overlay {
        display: none !important;
    }

    !* Показваме името и позицията постоянно върху снимката *!
    .mindfit-team .uagb-team__title,
    .mindfit-team .uagb-team__prefix {
        display: block !important;
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        text-align: center !important;
        width: 90% !important;
        z-index: 5 !important;
        padding: 4px 8px !important;
        border-radius: 12px !important;
    }

    .mindfit-team .uagb-team__title {
        top: 70% !important;
        font-size: 1em !important;
        font-weight: bold !important;
        color: white !important;
        background: rgba(0, 0, 0, 0.7) !important;
        line-height: 1.1 !important;
        margin: 0 !important;
    }

    .mindfit-team .uagb-team__prefix {
        top: 78% !important;
        font-size: 0.85em !important;
        font-weight: normal !important;
        color: white !important;
        background: rgba(116, 77, 189, 0.8) !important;
        line-height: 1.1 !important;
        margin: 0 !important;
    }

    !* Премахваме hover ефекта за снимката *!
    .mindfit-team .uagb-team__content:hover img {
        transform: none !important;
        filter: none !important;
    }
}*/
