/**
 * File: assets/css/common-styles.css
 * Description: Frequently used styles including text shadows, container effects, buttons, and grid zoom effects.
 * Version: 1.0.1
 */

/* ===========================================
 * Table of Contents:
 * ===========================================
 * 1. Text Shadows
 * 2. Container Shadows
 * 3. Button Hover Effects
 * 4. Container Block Zoom Effects
 * 5. Grid Container Zoom Effects
 * 6. Rounded Buttons and Input Fields
 * 7. Box Shadows
 * 8. Links
 * 9. Responsive Video Embed Styling
 */

/* ===========================================
 * 1. Text Shadows
 * =========================================== */

/*
 * Text Shadows
 * Use the following custom classes:
 * - text-shadow
 * - text-shadow-glow
 * - text-shadow-strong
 * - text-shadow-glow-dark
 * - text-shadow-multiple
 */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); /* X, Y, blur radius, color */
    color: #333; /* Default text color */
}

.text-shadow-glow {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.text-shadow-glow-dark {
    text-shadow: 0 0 10px rgba(150, 150, 150, 0.8); /* Darker and more subtle glow */
}

.text-shadow-strong {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
}

.text-shadow-multiple {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5),
                 -2px -2px 4px rgba(255, 255, 255, 0.5);
}

/* ===========================================
 * 2. Container Shadows
 * =========================================== */

/*
 * Container Shadows
 * Use the custom class: container-shadow
 */
.container-shadow {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* X, Y, blur radius, spread, color */
    border-radius: 8px; /* Optional: rounded corners */
    background-color: #fff; /* Ensure background for visibility */
    padding: 16px; /* Optional: Inner spacing */
}

/* ===========================================
 * 3. Button Hover Effects
 * =========================================== */

/**
 * Button Hover Effect
 * Use the custom class: button-effect
 */
.button, .button-effect {
    border-radius: 4px;
    box-shadow: 0 12px 20px -10px rgba(0, 0, 0, 0.3);
    -webkit-transition: all 500ms ease-in-out !important;
    transition: all 500ms ease-in-out !important;
}

.button:hover, .button-effect:hover {
    box-shadow: 0 30px 20px -20px rgba(0, 0, 0, 0.3);
    -webkit-transform: translate3d(0, -4px, 0);
    transform: translate3d(0, -4px, 0);
}

/* ===========================================
 * 4. Container Block Zoom Effects
 * =========================================== */

/**
 * Container Block Zoom Effect
 * Use the custom class: add-zoom-effect
 */
.gb-container.add-zoom-effect {
    overflow: hidden;
}

.gb-container.add-zoom-effect img:hover {
    transform: scale(1.1);
}

.gb-container.add-zoom-effect img {
    transition: 0.5s ease-in;
}

/* ===========================================
 * 5. Grid Container Zoom Effects
 * =========================================== */

/**
 * Grid Container Zoom Effect
 * Use the custom class: gb-zoom
 */
.gb-zoom .gb-grid-column > .gb-container:before {
    transform: scale(1);
    transition: transform 0.3s ease-in-out;
}

.gb-zoom .gb-grid-column:hover > .gb-container:before {
    transform: scale(1.2);
    transition: transform 0.3s ease-in-out;
}

/* ===========================================
 * 6. Rounded Buttons and Input Fields
 * =========================================== */

/**
 * Rounded buttons and fields site-wide
 */
button,
html input[type="button"],
input[type="reset"],
input[type="submit"],
a.button,
a.button:visited,
a.wp-block-button__link:not(.has-background) {
    border-radius: 12px;
}

/* Input (email) field styling - rounded borders */
input[type="email"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="url"],
select,
textarea {
    border-radius: 12px;
}

/* ===========================================
 * 7. Box Shadows
 * =========================================== */
/**
 * Light box shadow effect
 * Use the custom class: light-box-shadow
 */
.light-box-shadow {
    -webkit-box-shadow: 0px 0px 21px -4px rgba(0,0,0,0.2);
    -moz-box-shadow: 0px 0px 21px -4px rgba(0,0,0,0.2);
    box-shadow: 0px 0px 21px -4px rgba(0,0,0,0.2);
}

/* ===========================================
 * 8. Links
 * =========================================== */
/**
 * Underlined links
 * Use the custom class: underline-links
 */
.underline-links a {
    text-decoration: underline;
}

/**
 * Custom Underlined Links Styling
 * To apply, use the custom class: custom-underline-links
 * - Link color: var(--accent)
 * - Hover color: var(--accent-7)
 */
.custom-underline-links a {
    text-decoration: underline !important;
    color: var(--accent) !important;
}

.custom-underline-links a:hover {
    color: var(--accent-7) !important;
}

/* ===========================================
 * 9. Responsive Video Embed Styling
 * =========================================== */
/*
 * Responsive Video Embed Styling
 * Ensures embedded videos scale proportionally within their containers.
 * Usage Example:
 * <div class="videoWrapper">
 *     <iframe width="560" height="315" src="https://www.youtube.com/embed/example" frameborder="0" allowfullscreen></iframe>
 * </div>
 * Error: www.youtube.com refused to connect
 * See: https://developers.google.com/youtube/player_parameters
 * Use: https://www.youtube.com/embed/VIDEO_ID
 */

.videoWrapper {
    position: relative;
    padding-bottom: 56.25%; /* Aspect ratio for 16:9 */
    height: 0;
    overflow: hidden; /* Prevents content overflow */
}

.videoWrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
