/*
Theme Name: Notifal Theme
Theme URI: https://notifal.com/
Author: Hossein Alehabib
Description: Custom theme built for notifal website.
Version: 1.3.0
Text Domain: notifal-theme
*/

/* Base Variables */
:root {
	--notifal-auth-purple: #7B2CBF;
	--notifal-auth-purple-hover: #572087;
	--notifal-auth-gray-light: #F3F4F6;
	--notifal-auth-gray-medium: #6B7280;
	--notifal-auth-gray-dark: #374151;
	--notifal-auth-white: #FFFFFF;
	--notifal-auth-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--notifal-auth-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	--notifal-auth-border-radius: 8px;
	--notifal-auth-transition: all 0.2s ease-in-out;
}

:where(h1, h2, h3, h4, h5, h6) span{
    font-weight: 500;
}
p{
    margin-top: unset;
}

/***** Start - Notifal Mobile Menu *****/

.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.menu-visible {
    transform: translateX(0);
    box-shadow: 100px 0px 100px 100px rgba(0, 0, 0, 0.5);
}

.mobile-menu.menu-hidden {
    transform: translateX(-100%);
}

/***** End - Notifal Mobile Menu *****/

/***** Start - Notifal Header Sticky *****/

.notifal-theme-scroll-header {
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.notifal-theme-scroll-header.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
/***** End - Notifal Header Sticky *****/




/***** Start - Notifal Buttons *****/
.notifal-btn-animate a span.elementor-button-content-wrapper{
    position: relative;
    top: 1px;
}
.notifal-btn-animate a{
    transform: translate(0, -2px);
    transition: 0.2s;
    transition-timing-function: linear;
}
.notifal-btn-animate a:active {
    transform: translate(0, 0);
    border-bottom-width: 1px;
    margin-top: 1px;
}
.notifal-btn-1 a{
    background-image: linear-gradient(#7B2CBF, #5A189A);
    border: 1px solid #F8EBFF;
    box-shadow: 0px 7px 30px 0px #F8EBFF40;
}
.notifal-btn-2 a{
    background-image: linear-gradient(#7B2CBF, #5A189A);
    border: 1px solid #240046;
    box-shadow: 0px 7px 30px 0px #7B2CBF40;
}
.notifal-btn-3 a{
    background-image: linear-gradient(#2C7DA0, #00518C);
    border: 1px solid #F8EBFF;
    box-shadow: 0px 7px 30px 0px #F8EBFF40;
}

.notifal-btn-1 a,
.notifal-btn-2 a,
.notifal-btn-3 a{
    padding: 14px 24px;
    border-radius: 16px;
    cursor: pointer;
    color: #F8EBFF;
    border-bottom-width: 3px;
}
.notifal-btn-4 a{
    background: unset;
    color: #10002b;
    padding: unset;
    font-size: 16px;
    font-weight: 500;
    display: flex;
}
.notifal-btn-4 a:hover{
    color: unset !important;
}
.notifal-btn-4 a::after{
    content: url('/wp-content/uploads/2025/07/arrow.svg');
    margin-left: 6px;
    position: relative;
    top: 3px;
}
/***** End - Notifal Buttons *****/


/***** Start - Notifal Box *****/
.notifal-theme-hero-section-box{
    background: linear-gradient(180deg, #240046 0%, #5800AC 100%);
}
.notifal-theme-green-hero-section-box{
    background: linear-gradient(#013A63, #2C7DA0);
}
.notifal-theme-hero-section-box::before,
.notifal-theme-green-hero-section-box::before {
    content: "";
    background-image: url('/wp-content/uploads/2025/06/Dark-Backgrounds-Pattern.png');
    opacity: 0.05;
}

.notifal-theme-box-1{
    background: linear-gradient(180deg,rgba(248, 235, 255, 0.1) 0%, rgba(248, 235, 255, 1) 100%);
    border: solid #7B2CBF;
}
.notifal-theme-box-1-green{
    background: linear-gradient(180deg,rgba(44, 125, 160, 0.01) 0%, rgba(44, 125, 160, 0.15) 100%);
    border: solid #2C7DA0;
}
.notifal-theme-box-1,
.notifal-theme-box-1-green{
    border-width: 1px 1px 3px 1px;
    border-radius: 16px;
    padding: 19px 29px;
}

.notifal-theme-box-2 {
    background: linear-gradient(180deg, #7B2CBF 0%, #391559 100%);
}

.notifal-theme-box-2::before,
.notifal-theme-box-3::before,
.notifal-theme-box-4::before,
.notifal-theme-box-5::before,
.notifal-theme-box-6::before,
.notifal-theme-box-7::before{
    content: "";
    background-image: url('/wp-content/uploads/2025/06/Dark-Backgrounds-Pattern.png');
    opacity: 0.1;
}
.notifal-theme-box-3,
.notifal-theme-box-4,
.notifal-theme-box-5,
.notifal-theme-box-6,
.notifal-theme-box-7{
    border-radius: 16px;
    padding: 29px 42px;
}
.notifal-theme-box-3 {
    background: linear-gradient(180deg, #7B2CBF 0%, #391559 100%);
}
.notifal-theme-box-4 {
    background: linear-gradient(180deg, #52B788 0%, #2D6A4F 100%);
}
.notifal-theme-box-5 {
    background: linear-gradient(180deg, #2C7DA0 0%, #013A63 100%);
}
.notifal-theme-box-6 {
    background: linear-gradient(180deg, #F8EBFF 0%, #ECC8FF 100%);
}
.notifal-theme-box-6::before{
    opacity: 0.05 !important;
    filter: invert(1);
}
.notifal-theme-box-7 {
    background: linear-gradient(180deg, #2C7DA0 0%, #013A63 100%);
}
/***** End - Notifal Box *****/



/***** Start - Notifal Accordion *****/
.e-n-accordion{
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.e-n-accordion details{
    border: 1px solid #7b2cbf;
    border-bottom-width: 3px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(248, 235, 255, 0.1) 0%, rgba(248, 235, 255, 1) 100%);
}
.e-n-accordion details summary{
    border: unset !important;
    padding: 16px !important;
    gap: 16px !important;
    color: #10002b !important;
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    justify-content: space-between !important;
}
.e-n-accordion summary .e-n-accordion-item-title-icon{
    order: 2;
}
.e-n-accordion summary .e-n-accordion-item-title-icon svg{
    fill: #ECC8FF !important;
}
.e-n-accordion summary .e-n-accordion-item-title-header::before{
    content: "Q";
    margin-right: 16px;
    color: #ECC8FF;
}
.e-n-accordion details > div{
    border: unset;
    padding: 16px;
    padding-top: 0;
    color: #10002b !important;
    font-family: "roboto", sans-serif;
}
.e-n-accordion details > div > div::before{
    content: "A";
    color: #ECC8FF;
    font-family: "Raleway", sans-serif;
    font-weight: 700;
}
.e-n-accordion details > div > div{
    display: flex !important;
    flex-direction: row !important;
}
/***** End - Notifal Accordion *****/

/***** Start - Notifal Posts Card *****/
.notifal-theme-posts-card .elementor-post__card{
    box-shadow: unset !important;
    background-color: unset !important;
}
.notifal-theme-posts-card .elementor-post__thumbnail{
    padding-bottom: unset !important;
}
.notifal-theme-posts-card .elementor-post__thumbnail img{
    position: unset !important;
    transform: unset !important;
    width: 100% !important;
}
.notifal-theme-posts-card .elementor-post__thumbnail__link{
    border-radius: 16px !important;
    overflow: hidden;
    border: 1px solid #7b2cbf;
    border-bottom-width: 3px;
    margin-bottom: unset !important;
}
.notifal-theme-posts-card .elementor-post__text{
    margin-top: 8px !important;
    border-bottom: 1px solid #F8EBFF;
    position: relative;
}
.notifal-theme-posts-card .elementor-post__text h3{
    margin-bottom: 90px !important;
}
.notifal-theme-posts-card a, .notifal-theme-posts-card span{
    color: #10002b;
    font-family: "raleway", Sans-serif;
    line-height: 31px;
}
.notifal-theme-posts-card .elementor-post__read-more{
    display: block !important;
    text-align: right;
    width: 50%;
    margin-left: auto;
    position: absolute;
    right: 30px;
    bottom: 2%;
}
.notifal-theme-posts-card .elementor-post__read-more::after{
    content: url('/wp-content/uploads/2025/07/arrow.svg');
    margin-left: 2px;
    position: relative;
    top: 1px;
}
.notifal-theme-posts-card .elementor-post__avatar{
    width: 50%;
    position: absolute;
    top: unset !important;
    bottom: 2%;
    height: 61px;
}
.notifal-theme-posts-card .elementor-post__avatar img{
    width: 30px;
    transform: translateY(50%) !important;
}
.notifal-theme-posts-card .elementor-post__meta-data{
    width: 50%;
    position: absolute;
    bottom: 7px;
    border-top: unset !important;
    padding-left: 67px !important;
}
.notifal-theme-posts-card .elementor-pagination {
    margin-top: 50px;
}
.notifal-theme-posts-card span.prev,
.notifal-theme-posts-card span.next {
    padding: 10px;
    border-radius: 7px;
    background-color: #F8EBFF;
}
.notifal-theme-posts-card a.prev,
.notifal-theme-posts-card a.next{
    padding: 10px;
    color: #F8EBFF;
    background-color: #7b2cbf;
    border-radius: 7px;
}
.notifal-theme-posts-card span.current{
    padding: 10px;
    color: #F8EBFF;
    background-color: #7b2cbf;
    border-radius: 7px;
    padding-top: 6px;
}
/***** End - Notifal Posts Card *****/


/***** Start - Gravity Forms Customize *****/
.gform_wrapper {
    font-family: 'raleway', sans-serif;
}
.gform_fields{
    row-gap: 16px !important;
}

.gform_fields select,
.gform_fields input,
.gform_fields textarea {
    height: 56px !important;
    border-radius: 16px !important;
    padding: 9px 16px !important;
    font-size: 16px !important;
    border: 1px solid #7b2cbf !important;
    background-color: #FDF8FF !important;
    font-weight: 600 !important;
}
.gform_fields select{
    border-bottom-width: 3px !important;
}
.gform_fields :where(select, input, textarea):focus{
    box-shadow: 0 0 0 3px #ECC8FF !important;
}
.gform_fields :where(input, textarea)::placeholder{
    color: #DFA5FF;
}
.gform_wrapper input[type=submit]{
    padding: 14px 24px !important;
    border-radius: 16px !important;
    color: #F8EBFF !important;
    background-image: linear-gradient(#7B2CBF, #5A189A);
    border: 1px solid #240046 !important;
    box-shadow: 0px 7px 30px 0px #7B2CBF40 !important;
    border-bottom-width: 3px !important;
    font-weight: 600 !important;
    transform: translate(0, -2px);
    transition: 0.2s !important;
    transition-timing-function: linear !important;
}
.gform_wrapper input[type=submit]:active{
    transform: translate(0, 0) !important;
    border-bottom-width: 1px !important;
    margin-top: 1px;
}

/***** End - Gravity Forms Customize *****/


/***** Start - Elementor Popup Costomize *****/

.elementor-popup-modal{
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.elementor-popup-modal .dialog-widget-content{
    border-radius: 16px;
    padding: 20px;
    background-color: #F8EBFF !important;
}

/***** End - Elementor Popup Costomize *****/


/***** Start - Notifal Docs Cards *****/

.notifal-theme-docs-cards a, .notifal-theme-docs-cards p{
    color: #10002b !important;
}
.notifal-theme-docs-card img{
    display: none;
}

.notifal-theme-docs-cards .elementor-posts-container{
    gap: 16px;
}
.notifal-theme-docs-cards article{
    background: linear-gradient(180deg, rgba(248, 235, 255, 0.1) 0%, rgba(248, 235, 255, 1) 100%);
    border: solid #7B2CBF;
    border-width: 1px 1px 3px 1px;
    border-radius: 16px;
    padding: 19px 29px !important;
}
.notifal-theme-docs-cards h5{
    font-size: 20px !important;
}
.notifal-theme-docs-cards span{
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    color: #10002b;
    margin-top: 8px;
    display: block;
    margin-bottom: 35px !important;
}
.notifal-theme-docs-cards a{
    font-family: 'Raleway', sans-serif;
    font-size: 16px !important;
}
.notifal-theme-docs-cards article a.elementor-post__read-more::after{
    content: url(/wp-content/uploads/2025/07/arrow.svg);
    margin-left: 6px;
}
.notifal-theme-docs-cards .elementor-button-wrapper a{
    background-image: linear-gradient(#7B2CBF, #5A189A);
    border: 1px solid #240046;
    box-shadow: 0px 7px 30px 0px #7B2CBF40;
    padding: 14px 24px;
    border-radius: 16px;
    cursor: pointer;
    border-bottom-width: 3px;
    transform: translate(0, -2px);
    transition: 0.2s;
    transition-timing-function: linear;
}
.notifal-theme-docs-cards .elementor-button-wrapper a:active {
    transform: translate(0, 0);
    border-bottom-width: 1px;
    margin-top: 1px;
}
.notifal-theme-docs-cards .elementor-button-wrapper span{
    color: #F8EBFF;
    font-size: 16px;
    font-weight: 600;
    margin: unset !important;
}
.notifal-theme-docs-cards .elementor-post__text{
    display: flex;
    justify-content: space-between;
}
/***** End - Notifal Docs Cards *****/


/***** Start - Notifal User Authentication Menu *****/



/* Main Container */
.notifal-auth-menu {
	position: relative;
	display: inline-block;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Guest User - Login Link */
.notifal-auth-menu--guest .notifal-auth-menu__login-link {
	color: var(--notifal-auth-white);
	text-decoration: none;
	font-size: 16px;
	font-weight: 600;
	padding: 8px 0;
	transition: var(--notifal-auth-transition);
	border: none;
	background: none;
	cursor: pointer;
    position: relative;
    bottom: 3px;
    right: 10px;
}


/* User Menu - Trigger Button */
.notifal-auth-menu--user .notifal-auth-menu__trigger {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border: none;
	background: none;
	cursor: pointer;
	border-radius: var(--notifal-auth-border-radius);
	transition: var(--notifal-auth-transition);
	font-size: 14px;
	font-weight: 500;
	color: var(--notifal-auth-white);
}


/* Avatar */
.notifal-auth-menu__avatar {
	width: 32px;
	height: 32px !important;
	border-radius: 50% !important;
	object-fit: cover;
	flex-shrink: 0;
}

/* Username */
.notifal-auth-menu__username {
	max-width: 120px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Dropdown Icon */
.notifal-auth-menu__dropdown-icon {
	flex-shrink: 0;
	transition: transform 0.2s ease-in-out;
	color: var(--notifal-auth-white);
}

.notifal-auth-menu--user .notifal-auth-menu__trigger[aria-expanded="true"] .notifal-auth-menu__dropdown-icon {
	transform: rotate(180deg);
}

/* Dropdown Menu */
.notifal-auth-menu__dropdown {
	position: absolute;
	top: 100%;
	z-index: 1000;
	min-width: 200px;
	background: var(--notifal-auth-white);
	border-radius: var(--notifal-auth-border-radius);
	box-shadow: var(--notifal-auth-shadow-hover);
	border: 1px solid #E5E7EB;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: var(--notifal-auth-transition);
	margin-top: 4px;
}

.notifal-auth-menu__dropdown[aria-hidden="false"] {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Dropdown Positions */
.notifal-auth-menu[data-dropdown-position="left"] .notifal-auth-menu__dropdown {
	right: 0;
	left: auto;
}

.notifal-auth-menu[data-dropdown-position="right"] .notifal-auth-menu__dropdown {
	left: 0;
	right: auto;
}

/* Menu Items */
.notifal-auth-menu__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	text-decoration: none;
	color: var(--notifal-auth-gray-medium) !important;
	transition: var(--notifal-auth-transition);
	border: none;
	background: none;
	width: 100%;
	text-align: left;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.notifal-auth-menu__item:hover {
	background-color: var(--notifal-auth-gray-light);
	color: var(--notifal-auth-gray-dark);
}

.notifal-auth-menu__item:focus {
	outline: 2px solid var(--notifal-auth-purple);
	outline-offset: -2px;
}

/* Active Menu Item */
.notifal-auth-menu__item--active {
	background-color: var(--notifal-auth-purple);
	color: var(--notifal-auth-white) !important;
	font-weight: 600;
}

.notifal-auth-menu__item--active:hover {
	background-color: var(--notifal-auth-purple-hover);
	color: var(--notifal-auth-white);
}

.notifal-auth-menu__item--active .notifal-auth-menu__item-icon {
	color: var(--notifal-auth-white);
}

/* Item Icons */
.notifal-auth-menu__item-icon {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: inherit;
}

.notifal-auth-menu__item-icon svg {
	width: 100%;
	height: 100%;
}

/* Item Text */
.notifal-auth-menu__item-text {
	flex: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
	.notifal-auth-menu__dropdown {
		position: fixed;
		top: auto;
		bottom: 20px;
		left: 20px;
		right: 20px;
		min-width: auto;
		max-width: calc(100vw - 40px);
		box-shadow: var(--notifal-auth-shadow-hover);
	}

	.notifal-auth-menu[data-dropdown-position] .notifal-auth-menu__dropdown {
		right: 20px;
		left: 20px;
	}

	.notifal-auth-menu__username {
		max-width: 100px;
	}

	.notifal-auth-menu--user .notifal-auth-menu__trigger {
		padding: 6px 8px;
		font-size: 13px;
	}
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
	.notifal-auth-menu__dropdown,
	.notifal-auth-menu__trigger,
	.notifal-auth-menu__item,
	.notifal-auth-menu__dropdown-icon {
		transition: none;
	}
}

/* Focus Management */
.notifal-auth-menu__dropdown[aria-hidden="false"] .notifal-auth-menu__item:first-child {
	border-top-left-radius: var(--notifal-auth-border-radius);
	border-top-right-radius: var(--notifal-auth-border-radius);
}

.notifal-auth-menu__dropdown[aria-hidden="false"] .notifal-auth-menu__item:last-child {
	border-bottom-left-radius: var(--notifal-auth-border-radius);
	border-bottom-right-radius: var(--notifal-auth-border-radius);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
	.notifal-auth-menu__item--active {
		border: 2px solid var(--notifal-auth-white);
	}

	.notifal-auth-menu--user .notifal-auth-menu__trigger:focus {
		border: 2px solid var(--notifal-auth-purple);
	}
}

/* Print Styles */
@media print {
	.notifal-auth-menu {
		display: none !important;
	}
}

/***** End - Notifal User Authentication Menu *****/


/***** Start - Notifal Pro Price Shortcode *****/

/* Main container for the price display */
.notifal-pro-price-container {
    display: inline-block;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

/* Sale price styling - prominent display */
.notifal-price-sale {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 4px;
}

.notifal-sale-price {
    font-size: 24px;
    font-weight: 700;
    -webkit-background-clip: text;
    background-clip: text;
}

/* Regular price with diagonal strikethrough when on sale */
.notifal-regular-price-crossed {
    font-size: 16px;
    position: relative;
    opacity: 0.7;
    display: inline-block;
}

.notifal-regular-price-crossed::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
    transform: rotate(-12deg);
    transform-origin: center;
    pointer-events: none;
}

/* Regular price styling when not on sale */
.notifal-price-regular {
    display: inline-block;
}

.notifal-regular-price {
    font-size: 24px;
    font-weight: 700;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Error state styling */
.notifal-price-error {
    font-size: 16px;
    color: #DC2626;
    font-weight: 500;
    background-color: #FEF2F2;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #FECACA;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .notifal-sale-price,
    .notifal-regular-price {
        font-size: 20px;
    }

    .notifal-regular-price-crossed {
        font-size: 14px;
    }
}

/***** End - Notifal Pro Price Shortcode *****/
