/**
 * Fated Quantum Custom Styles
 * Premium effects, animations, and component styles
 *
 * @package Fated_Quantum
 * @since 1.0.0
 */

/* ==========================================================================
   ROOT VARIABLES & CUSTOM PROPERTIES
   ========================================================================== */

:root {
    --fated-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --fated-transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --fated-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --fated-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --fated-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --fated-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --fated-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --fated-glow-gold: 0 0 20px rgba(212, 175, 55, 0.4), 0 0 40px rgba(212, 175, 55, 0.2);
    --fated-glow-blue: 0 0 20px rgba(74, 124, 158, 0.4), 0 0 40px rgba(74, 124, 158, 0.2);
    --fated-glow-gold-strong: 0 0 30px rgba(212, 175, 55, 0.6), 0 0 60px rgba(212, 175, 55, 0.3);
    --fated-glow-blue-strong: 0 0 30px rgba(74, 124, 158, 0.6), 0 0 60px rgba(74, 124, 158, 0.3);
}

/* ==========================================================================
   SMOOTH SCROLLING & BODY SETUP
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ==========================================================================
   METALLIC TEXT EFFECTS
   ========================================================================== */

.has-gold-metallic-text {
    background: linear-gradient(135deg, #f4e4c1 0%, #d4af37 50%, #b8941f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.has-blue-metallic-text {
    background: linear-gradient(135deg, #4a7c9e 0%, #2c5f7f 50%, #1a3a4f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* ==========================================================================
   PREMIUM BUTTON STYLES
   ========================================================================== */

.wp-block-button__link {
    transition: var(--fated-transition);
    position: relative;
    overflow: hidden;
}

.wp-block-button__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.wp-block-button__link:hover::before {
    left: 100%;
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: var(--fated-shadow-lg);
}

/* Gold Outline Button */
.is-style-gold-outline .wp-block-button__link {
    background: transparent !important;
    border: 2px solid var(--wp--preset--color--gold);
    color: var(--wp--preset--color--gold) !important;
}

.is-style-gold-outline .wp-block-button__link:hover {
    background: var(--wp--preset--color--gold) !important;
    color: var(--wp--preset--color--charcoal) !important;
    box-shadow: var(--fated-glow-gold);
}

/* Steel Blue Button */
.is-style-steel-blue .wp-block-button__link {
    background: linear-gradient(135deg, #4a7c9e 0%, #2c5f7f 100%) !important;
    color: var(--wp--preset--color--white) !important;
}

.is-style-steel-blue .wp-block-button__link:hover {
    background: linear-gradient(135deg, #5a8cae 0%, #3c6f8f 100%) !important;
    box-shadow: var(--fated-glow-blue);
}

/* Glass Morphism Button */
.is-style-glass-morphism .wp-block-button__link {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--wp--preset--color--white) !important;
}

.is-style-glass-morphism .wp-block-button__link:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: var(--fated-shadow-lg);
}

/* ==========================================================================
   PREMIUM GROUP & CONTAINER STYLES
   ========================================================================== */

/* Gold Border Group */
.is-style-gold-border {
    border: 2px solid var(--wp--preset--color--gold);
    padding: 2rem;
    border-radius: 8px;
    position: relative;
}

.is-style-gold-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #d4af37, #4a7c9e);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.is-style-gold-border:hover::before {
    opacity: 0.2;
}

/* Gradient Overlay Group */
.is-style-gradient-overlay {
    position: relative;
    overflow: hidden;
}

.is-style-gradient-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(74, 124, 158, 0.1) 100%);
    pointer-events: none;
}

/* Premium Card */
.is-style-premium-card {
    background: rgba(26, 35, 50, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--fated-shadow-xl);
    transition: var(--fated-transition);
}

.is-style-premium-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--fated-shadow-2xl), var(--fated-glow-gold);
    border-color: rgba(212, 175, 55, 0.4);
}

/* ==========================================================================
   COLUMN STYLES
   ========================================================================== */

/* Hover Lift Column */
.is-style-hover-lift {
    transition: var(--fated-transition);
}

.is-style-hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--fated-shadow-xl);
}

/* ==========================================================================
   IMAGE STYLES
   ========================================================================== */

/* Gold Frame Image */
.is-style-gold-frame img {
    border: 4px solid var(--wp--preset--color--gold);
    border-radius: 4px;
    box-shadow: var(--fated-glow-gold);
    transition: var(--fated-transition);
}

.is-style-gold-frame:hover img {
    transform: scale(1.02);
    box-shadow: var(--fated-glow-gold-strong);
}

/* Blue Frame Image */
.is-style-blue-frame img {
    border: 4px solid var(--wp--preset--color--steel-blue);
    border-radius: 4px;
    box-shadow: var(--fated-glow-blue);
    transition: var(--fated-transition);
}

.is-style-blue-frame:hover img {
    transform: scale(1.02);
    box-shadow: var(--fated-glow-blue-strong);
}

/* ==========================================================================
   GLASS MORPHISM UTILITIES
   ========================================================================== */

.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-effect-strong {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   GRADIENT TEXT UTILITIES
   ========================================================================== */

.gradient-text-gold {
    background: linear-gradient(135deg, #f4e4c1 0%, #d4af37 50%, #b8941f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-blue {
    background: linear-gradient(135deg, #4a7c9e 0%, #2c5f7f 50%, #1a3a4f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-premium {
    background: linear-gradient(135deg, #d4af37 0%, #4a7c9e 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: var(--fated-glow-gold);
    }
    50% {
        box-shadow: var(--fated-glow-gold-strong);
    }
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

/* ==========================================================================
   NAVIGATION STYLES
   ========================================================================== */

.wp-block-navigation__container {
    gap: 2rem;
}

.wp-block-navigation-item a {
    position: relative;
    transition: var(--fated-transition);
}

.wp-block-navigation-item a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--wp--preset--color--gold), var(--wp--preset--color--steel-blue));
    transition: width 0.3s ease;
}

.wp-block-navigation-item a:hover::after,
.wp-block-navigation-item.current-menu-item a::after {
    width: 100%;
}

.wp-block-navigation-item.current-menu-item a {
    color: var(--wp--preset--color--gold);
}

/* ==========================================================================
   QUOTE & PULLQUOTE ENHANCEMENTS
   ========================================================================== */

.wp-block-quote {
    position: relative;
}

.wp-block-quote::before {
    content: '\201C';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 4rem;
    color: var(--wp--preset--color--gold);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.wp-block-pullquote {
    position: relative;
}

.wp-block-pullquote cite {
    color: var(--wp--preset--color--gold);
    font-weight: 600;
}

/* ==========================================================================
   CODE BLOCK ENHANCEMENTS
   ========================================================================== */

.wp-block-code {
    position: relative;
    overflow-x: auto;
}

.wp-block-code code {
    display: block;
    line-height: 1.8;
}

/* ==========================================================================
   TABLE STYLES
   ========================================================================== */

.wp-block-table table {
    border-collapse: collapse;
    width: 100%;
}

.wp-block-table th {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(74, 124, 158, 0.2));
    color: var(--wp--preset--color--white);
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid var(--wp--preset--color--gold);
}

.wp-block-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wp-block-table tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

/* ==========================================================================
   SEPARATOR STYLES
   ========================================================================== */

.wp-block-separator {
    opacity: 0.3;
    transition: var(--fated-transition);
}

.wp-block-separator:hover {
    opacity: 1;
    box-shadow: var(--fated-glow-gold);
}

/* ==========================================================================
   RESPONSIVE UTILITIES
   ========================================================================== */

/* Mobile First Approach */
@media (max-width: 782px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 783px) {
    .hide-desktop {
        display: none !important;
    }
}

/* ==========================================================================
   ACCESSIBILITY ENHANCEMENTS
   ========================================================================== */

/* Focus Styles */
*:focus {
    outline: 2px solid var(--wp--preset--color--gold);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    * {
        border-color: currentColor !important;
    }
}

/* ==========================================================================
   CUSTOM SCROLLBAR
   ========================================================================== */

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--wp--preset--color--charcoal);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--wp--preset--color--gold), var(--wp--preset--color--steel-blue));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--wp--preset--color--light-gold), var(--wp--preset--color--accent-blue));
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--wp--preset--color--gold) var(--wp--preset--color--charcoal);
}

/* ==========================================================================
   LAZY LOADING EFFECTS
   ========================================================================== */

img[data-src],
img[data-srcset] {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

img.lazy-loaded {
    opacity: 1;
}

/* ==========================================================================
   PARALLAX EFFECTS
   ========================================================================== */

.has-parallax {
    --parallax-y: 0px;
    transform: translate3d(0, var(--parallax-y), 0);
    will-change: transform;
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wp--preset--color--gold), var(--wp--preset--color--steel-blue));
    color: var(--wp--preset--color--white);
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--fated-shadow-lg);
    font-size: 1.5rem;
    line-height: 1;
    z-index: 9999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--fated-glow-gold-strong);
}

/* ==========================================================================
   HOMEPAGE SPECIFIC STYLES
   ========================================================================== */

/* Hero Section */
.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.features-section {
    position: relative;
}

.features-section .wp-block-columns {
    align-items: stretch;
    justify-content: center;
}

.feature-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: var(--fated-transition);
}

.feature-card-inner:hover {
    transform: translateY(-8px);
    box-shadow: var(--fated-shadow-xl);
}

.feature-icon {
    display: flex;
    justify-content: center;
}

.feature-icon svg {
    transition: var(--fated-transition);
}

.feature-card-inner:hover .feature-icon svg {
    transform: scale(1.1) rotate(5deg);
}

/* Section Backgrounds */
.section-bg-navy {
    background-color: var(--wp--preset--color--dark-navy);
}

.section-bg-charcoal {
    background-color: var(--wp--preset--color--charcoal);
}

.section-bg-slate {
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%);
}

/* Responsive Typography */
@media (max-width: 782px) {
    .hero-title {
        font-size: 2.5rem !important;
    }

    .hero-subtitle {
        font-size: 1.125rem !important;
    }

    .section-title {
        font-size: 2rem !important;
    }

    .feature-card-inner {
        padding: 1.5rem !important;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .no-print,
    .back-to-top {
        display: none !important;
    }

    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    .wp-block-button__link {
        background: transparent !important;
        color: #000 !important;
        border: 1px solid #000 !important;
    }
}
