/* ===================================
   ENHANCED INTERACTION SYSTEM
   ohana360 - Subtle, Professional UX
   =================================== */

/* ===================================
   CUSTOM CURSOR RING
   =================================== */
.cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 107, 53, 0.4);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease-out, height 0.2s ease-out, opacity 0.2s ease-out;
    opacity: 0;
    z-index: 9999;
    mix-blend-mode: normal;
}

.cursor-ring.active {
    opacity: 1;
    width: 50px;
    height: 50px;
}

/* Hide on touch devices */
@media (hover: none) and (pointer: coarse) {
    .cursor-ring {
        display: none;
    }
}

/* ===================================
   ENHANCED LINK HOVERS
   =================================== */

/* Navigation Links */
.nav-link {
    position: relative;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease-out;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Footer Links */
.footer-links a {
    position: relative;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-primary);
    transition: width 0.25s ease-out;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-links a:hover {
    transform: translateX(3px);
}

/* In-Article Links */
.article-content a {
    position: relative;
    transition: color 0.2s ease;
}

.article-content a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-primary);
    transition: width 0.25s ease-out;
}

.article-content a:hover::after {
    width: 100%;
}

/* ===================================
   ENHANCED BUTTON HOVERS
   =================================== */
.btn-primary {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.btn-primary:hover {
    transform: scale(1.03) translateY(-1px);
    box-shadow: 0 12px 28px rgba(255, 107, 53, 0.35);
    background: linear-gradient(135deg, #E65728 0%, #FF6B35 100%);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    transform: scale(1.03) translateY(-1px);
    background: var(--color-primary-alpha-10);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.15);
}

/* ===================================
   ENHANCED CARD HOVERS
   =================================== */

/* Service Cards */
.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 107, 53, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Solution Items */
.solution-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.solution-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 107, 53, 0.4);
}

/* Blog Cards */
.blog-card,
.blog-post-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:not(.blog-post-placeholder):hover,
.blog-post-card:not(.blog-post-placeholder):hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 107, 53, 0.35);
}

/* Contact Methods */
.contact-method {
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateX(6px) translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 107, 53, 0.5);
}

/* Feature Items */
.feature-item {
    transition: all 0.25s ease;
}

.feature-item:hover {
    transform: translateX(6px);
    background: var(--color-primary-alpha-10);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.1);
}

/* Stats Cards */
.stat-card-item {
    transition: all 0.3s ease;
}

.stat-card-item:hover {
    transform: scale(1.06) rotate(-1deg);
    background: var(--color-primary-alpha-10);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.15);
}

/* ===================================
   SOCIAL LINKS ENHANCED
   =================================== */
.social-link,
.footer-social-link {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover,
.footer-social-link:hover {
    transform: translateY(-4px) scale(1.1);
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
}

/* ===================================
   HERO SECTION PARALLAX
   =================================== */
.hero-background,
.blog-hero,
.article-hero {
    position: relative;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 107, 53, 0.15) 0%,
            transparent 60%);
    pointer-events: none;
    transition: opacity 0.3s ease;
    will-change: background;
}

/* ===================================
   DASHBOARD MOCKUP INTERACTION
   =================================== */
.dashboard-mockup {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-mockup:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.2);
}

.dashboard-card {
    transition: all 0.25s ease;
}

.dashboard-card:hover {
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ===================================
   BREADCRUMB INTERACTION
   =================================== */
.breadcrumb a {
    transition: all 0.2s ease;
    position: relative;
}

.breadcrumb a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-primary);
    transition: width 0.25s ease-out;
}

.breadcrumb a:hover::after {
    width: 100%;
}

/* ===================================
   LOGO INTERACTION
   =================================== */
.logo {
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo svg {
    transition: all 0.3s ease;
}

.logo:hover svg circle:first-child {
    fill-opacity: 0.2;
}

/* ===================================
   HAMBURGER MENU INTERACTION
   =================================== */
.hamburger {
    transition: transform 0.2s ease;
}

.hamburger:hover {
    transform: scale(1.1);
}

.hamburger span {
    transition: all 0.3s ease;
}

.hamburger:hover span {
    background: var(--color-primary);
}

/* ===================================
   BACK TO TOP BUTTON
   =================================== */
.back-to-top {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 12px 24px rgba(255, 107, 53, 0.4);
}

.back-to-top svg {
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: translateY(-3px);
}

/* ===================================
   FORM INPUT INTERACTIONS
   =================================== */
.form-input {
    transition: all 0.25s ease;
}

.form-input:hover:not(:focus) {
    border-color: rgba(255, 107, 53, 0.3);
    transform: translateY(-1px);
}

.newsletter-input {
    transition: all 0.25s ease;
}

.newsletter-input:hover:not(:focus) {
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.1);
}

/* ===================================
   PAGINATION BUTTONS
   =================================== */
.pagination-btn:not(:disabled) {
    transition: all 0.25s ease;
}

.pagination-btn:not(:disabled):hover {
    transform: scale(1.08);
    background: var(--gradient-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.3);
}

/* ===================================
   ARTICLE CTA
   =================================== */
.article-cta-content {
    transition: all 0.3s ease;
}

.article-cta-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}

.article-cta-button {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-cta-button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 16px 32px rgba(255, 107, 53, 0.45);
}

/* ===================================
   PRO TIP CALLOUT
   =================================== */
.pro-tip-callout {
    transition: all 0.3s ease;
}

.pro-tip-callout:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.12);
    border-left-width: 6px;
}

/* ===================================
   TABLE ROWS
   =================================== */
.comparison-table tbody tr {
    transition: all 0.2s ease;
}

.comparison-table tbody tr:hover {
    background: rgba(255, 107, 53, 0.05);
    transform: scale(1.01);
}

/* ===================================
   PERFORMANCE OPTIMIZATIONS
   =================================== */

/* Disable complex animations on mobile/tablet */
@media (max-width: 1024px) {
    .parallax-layer {
        display: none;
    }

    .cursor-ring {
        display: none;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .cursor-ring,
    .parallax-layer {
        display: none;
    }
}

/* GPU acceleration for smooth animations */
.service-card,
.solution-item,
.blog-card,
.blog-post-card,
.dashboard-mockup,
.btn-primary,
.btn-secondary {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
}

/* Remove will-change after interaction completes */
.service-card:not(:hover),
.solution-item:not(:hover),
.blog-card:not(:hover),
.blog-post-card:not(:hover) {
    will-change: auto;
}

/* ===================================
   FOCUS STATES FOR ACCESSIBILITY
   =================================== */
.btn:focus-visible,
.nav-link:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Enhanced keyboard navigation visibility */
body.keyboard-nav *:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}