/*
Theme Name:   Divi AI SaaS
Theme URI:    https://ai-sass.divimint.com/
Description:  Divi 5 child theme for AI SaaS, software and app websites. The design lives in Divi Global Colors, presets and design variables; this file holds only the few effects Divi cannot express natively, each with its reason.
Author:       DiviMint
Author URI:   https://divimint.com/
Template:     Divi
Version:      1.0.0
Requires at least: 6.3
Requires PHP: 7.4
Tested up to: 7.1
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  divi-ai-saas
*/

/* 1. Accent word
 * Reason: the Heading module colours the whole title; there is no setting for one word.
 * Used as <span class="dx-accent">word</span> inside a heading. Colour comes from the Primary global colour.
 */
.dx-accent {
	color: var(--gcid-primary-color, #7c3aed);
}

/* 2. Floating cards
 * Reason: Divi animations run once or loop as an entrance effect; there is no gentle up-and-down loop.
 * Set the class dx-float-1, dx-float-2 or dx-float-3 in a module's Attributes.
 */
@keyframes dx-bob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}
.dx-float-1 { animation: dx-bob 6s ease-in-out infinite 0.6s; }
.dx-float-2 { animation: dx-bob 5s ease-in-out infinite 1.2s; }
.dx-float-3 { animation: dx-bob 6.5s ease-in-out infinite 0.9s; }
.dx-float-1:hover,
.dx-float-2:hover,
.dx-float-3:hover {
	animation-play-state: paused;
}

/* 3. Browser bar dots on the dashboard mockup
 * Reason: three coloured dots are decoration only; adding three empty modules would add markup with no content.
 */
.dx-browser::before {
	content: "";
	display: block;
	width: 46px;
	height: 10px;
	margin-bottom: 4px;
	background:
		radial-gradient(circle at 5px 5px, #f87171 5px, transparent 5.5px),
		radial-gradient(circle at 23px 5px, #f59e0b 5px, transparent 5.5px),
		radial-gradient(circle at 41px 5px, #34d399 5px, transparent 5.5px);
}

/* 4. Motion safety
 * Reason: honour the visitor's reduced-motion setting for the effects above.
 */
@media (prefers-reduced-motion: reduce) {
	.dx-float-1,
	.dx-float-2,
	.dx-float-3 {
		animation: none;
	}
}
