/**
 * Euro IQ Trade - Premium Visual Styles (Phase 2)
 * ================================================
 * Glassmorphism, premium typography, and enhanced visual effects
 */

/* ===========================================
   GOOGLE FONTS IMPORT
   =========================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ===========================================
   ENHANCED TYPOGRAPHY
   =========================================== */
body {
    font-family: 'Inter', var(--font-family);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', var(--font-family);
    letter-spacing: -0.02em;
}

/* ===========================================
   GLASSMORPHISM EFFECTS
   =========================================== */

/* Glass card base */
.glass-card,
.icon-card.glass,
.stat-card.glass,
.fact-card.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* Dark glass for dark backgrounds */
.glass-dark,
.tm-live-quotes,
.tm-banner-live-quotes .tm-live-quotes {
    background: rgba(10, 15, 26, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Enhanced cards with glassmorphism */
.icon-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-card);
    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal);
}

.icon-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* Plan/pricing cards with ribbon */
.icon-card.edge {
    position: relative;
    overflow: visible;
    border: 1px solid rgba(64, 220, 253, 0.2);
}

.icon-card.edge:hover {
    border-color: rgba(64, 220, 253, 0.4);
}

.icon-card .ribbon {
    position: absolute;
    top: -8px;
    right: 20px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #0ea5e9 100%);
    color: var(--color-primary);
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(64, 220, 253, 0.3);
}

/* ===========================================
   ENHANCED BUTTONS
   =========================================== */

/* Primary button with gradient */
.btn-big.primary,
.btn-normal.primary {
    background: linear-gradient(135deg, #40dcfd 0%, #0ea5e9 50%, #0284c7 100%);
    background-size: 200% 100%;
    background-position: 0% 0%;
    color: #0a0f1a;
    font-weight: var(--font-weight-bold);
    border: none;
    box-shadow:
        0 4px 15px rgba(64, 220, 253, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition:
        background-position var(--transition-normal),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

.btn-big.primary:hover,
.btn-normal.primary:hover {
    background-position: 100% 0%;
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(64, 220, 253, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-big.primary:active,
.btn-normal.primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(64, 220, 253, 0.3);
}

/* White/secondary button */
.btn-big.white,
.btn-normal.white {
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition:
        background var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

.btn-big.white:hover,
.btn-normal.white:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Outlined button */
.btn-rounded.white-line {
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition:
        background var(--transition-fast),
        border-color var(--transition-fast),
        transform var(--transition-fast);
}

.btn-rounded.white-line:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-accent);
    transform: translateY(-1px);
}

/* ===========================================
   ENHANCED SECTIONS
   =========================================== */

/* Banner section with premium overlay */
.tm-main-banner {
    position: relative;
}

.tm-main-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(10, 15, 26, 0.9) 0%,
            rgba(10, 15, 26, 0.7) 50%,
            rgba(10, 15, 26, 0.85) 100%);
    pointer-events: none;
    z-index: 0;
}

.tm-main-banner>* {
    position: relative;
    z-index: 1;
}

/* Section headings with accent */
.tm-section h2 span,
.tm-inner-section h2 span {
    background: linear-gradient(135deg, var(--color-accent) 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* CTA section with premium gradient */
.tm-cta-section {
    background: linear-gradient(135deg,
            #0a0f1a 0%,
            #1a2744 50%,
            #0a0f1a 100%);
    position: relative;
    overflow: hidden;
}

.tm-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%,
            rgba(64, 220, 253, 0.08) 0%,
            transparent 50%);
    pointer-events: none;
}

/* ===========================================
   ENHANCED LIVE QUOTES
   =========================================== */

.tm-live-quotes {
    border-radius: var(--radius-xl);
}

.tm-price-row {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition:
        background var(--transition-fast),
        border-color var(--transition-fast);
}

.tm-price-row:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(64, 220, 253, 0.2);
}

/* Price labels with glow */
.tm-price-row label.up {
    color: var(--color-success);
    text-shadow: 0 0 12px rgba(193, 254, 133, 0.5);
}

.tm-price-row label.down {
    color: var(--color-warning);
    text-shadow: 0 0 12px rgba(245, 178, 137, 0.5);
}

/* ===========================================
   ENHANCED PRODUCT CARDS
   =========================================== */

.tm-card-wrapper>div>.icon-card {
    position: relative;
    overflow: hidden;
}

.tm-card-wrapper>div>.icon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.15),
            transparent);
    transition: left 0.5s ease;
}

.tm-card-wrapper>div>.icon-card:hover::before {
    left: 100%;
}

/* ===========================================
   SUBTLE ANIMATIONS
   =========================================== */

/* Floating animation for decorative elements */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Pulse glow for accent elements */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(64, 220, 253, 0.4);
    }

    50% {
        box-shadow: 0 0 20px 5px rgba(64, 220, 253, 0.2);
    }
}

/* Apply floating to banner images */
.tm-banner-img img {
    animation: float 6s ease-in-out infinite;
}

/* ===========================================
   RESPONSIVE REFINEMENTS
   =========================================== */

@media (max-width: 1023px) {

    .glass-card,
    .tm-live-quotes {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

@media (max-width: 767px) {

    /* Reduce visual effects on mobile for performance */
    .glass-card,
    .icon-card,
    .tm-live-quotes {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .tm-banner-img img {
        animation: none;
    }
}