/* =============================================
   ADVANCED THEME ENHANCEMENTS
   Additional sophisticated effects for all themes
============================================= */

/* =============================================
   CHERRY BLOSSOM ENHANCEMENTS
============================================= */

html[data-theme="cherry-blossom"] body {
    background: linear-gradient(180deg, #fff5f7 0%, #ffe8ed 100%);
    background-attachment: fixed;
}

html[data-theme="cherry-blossom"] .glass-card::after,
html[data-theme="cherry-blossom"] .card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b9d, #ff8fb4, #ffc4d6, #ff8fb4, #ff6b9d);
    background-size: 200% 100%;
    animation: cherryShimmer 3s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes cherryShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

html[data-theme="cherry-blossom"] .btn::before,
html[data-theme="cherry-blossom"] .btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

html[data-theme="cherry-blossom"] .btn:hover::before {
    width: 300px;
    height: 300px;
}

/* =============================================
   SILVER METALLIC - Ultra Modern Chrome Design
============================================= */
html[data-theme="silver-metallic"],
:root[data-theme="silver-metallic"] {
    --color-background: #e8ecf1;
    --color-surface: #f5f7fa;
    --color-surface-subtle: #dfe4ea;
    --color-surface-elevated: #ffffff;

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-tertiary: #64748b;

  --border-light: #cbd5e1;
    --border-medium: #94a3b8;
    --border-dark: #64748b;

    --google-blue: #0ea5e9;
    --google-blue-light: #38bdf8;
    --google-blue-dark: #0284c7;
    --google-blue-subtle: rgba(14, 165, 233, 0.1);

    --google-red: #ef4444;
    --google-yellow: #f59e0b;
    --google-green: #10b981;

    --theme-radius-md: 16px;
    --theme-radius-lg: 24px;
    --theme-border-width: 1px;
    --theme-shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    --theme-shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
}

html[data-theme="silver-metallic"] body {
    background: radial-gradient(circle at top right, #f0f4f8 0%, #e8ecf1 50%, #dfe4ea 100%);
    background-attachment: fixed;
    color: #0f172a;
}

html[data-theme="silver-metallic"] .glass-card,
html[data-theme="silver-metallic"] .card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
 border: 1px solid rgba(203, 213, 225, 0.6);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 
      0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 1),
 inset 0 -1px 0 rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #0f172a;
}

/* Reflective shine effect */
html[data-theme="silver-metallic"] .glass-card::before,
html[data-theme="silver-metallic"] .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
 transparent, 
        rgba(255, 255, 255, 0.7), 
        transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

/* Animated metallic gradient on top */
html[data-theme="silver-metallic"] .glass-card::after,
html[data-theme="silver-metallic"] .card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
   #38bdf8,
        #0ea5e9,
      #38bdf8,
      transparent);
    background-size: 200% 100%;
    animation: silverChrome 4s linear infinite;
}

@keyframes silverChrome {
    0%, 100% { background-position: 0% 50%; opacity: 0.4; }
    50% { background-position: 100% 50%; opacity: 1; }
}

html[data-theme="silver-metallic"] .glass-card:hover::before,
html[data-theme="silver-metallic"] .card:hover::before {
    left: 100%;
}

html[data-theme="silver-metallic"] .glass-card:hover,
html[data-theme="silver-metallic"] .card:hover {
border-color: rgba(148, 163, 184, 0.8);
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.1), 
    0 4px 16px rgba(14, 165, 233, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 1),
 inset 0 -1px 0 rgba(0, 0, 0, 0.03);
    transform: translateY(-6px) scale(1.01);
}

html[data-theme="silver-metallic"] h1,
html[data-theme="silver-metallic"] h2,
html[data-theme="silver-metallic"] h3,
html[data-theme="silver-metallic"] h4,
html[data-theme="silver-metallic"] h5,
html[data-theme="silver-metallic"] h6 {
    color: #0f172a;
    background: linear-gradient(135deg, #334155, #0f172a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

html[data-theme="silver-metallic"] .btn,
html[data-theme="silver-metallic"] .btn-primary,
html[data-theme="silver-metallic"] button:not(.pill-nav__item):not(.pill-nav__toggle):not(.theme-card) {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    color: #0f172a;
    padding: 0.875rem 1.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 
        inset 0 1px 0 rgba(255, 255, 255, 1),
   inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

/* Reflective top layer */
html[data-theme="silver-metallic"] .btn::after,
html[data-theme="silver-metallic"] .btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent);
 border-radius: 16px 16px 0 0;
    pointer-events: none;
}

html[data-theme="silver-metallic"] .btn:hover,
html[data-theme="silver-metallic"] .btn-primary:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-color: #94a3b8;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 
             0 2px 8px rgba(14, 165, 233, 0.15),
           inset 0 1px 0 rgba(255, 255, 255, 1),
           inset 0 -1px 0 rgba(0, 0, 0, 0.08);
    transform: translateY(-2px) scale(1.02);
}

html[data-theme="silver-metallic"] .btn:active,
html[data-theme="silver-metallic"] .btn-primary:active {
    box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.12),
                inset 0 -1px 0 rgba(255, 255, 255, 0.5);
    transform: translateY(0) scale(0.98);
}

html[data-theme="silver-metallic"] .pill-nav {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(203, 213, 225, 0.6);
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04), 
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

html[data-theme="silver-metallic"] .pill-nav__item {
    color: #334155;
    border-radius: 18px;
    transition: all 0.3s ease;
 position: relative;
}

html[data-theme="silver-metallic"] .pill-nav__item:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

html[data-theme="silver-metallic"] .pill-nav__item.active {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3),
inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

html[data-theme="silver-metallic"] input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="silver-metallic"] select,
html[data-theme="silver-metallic"] textarea {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 0.75rem 1rem;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.04),
       inset 0 -1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    color: #0f172a;
}

html[data-theme="silver-metallic"] input:focus,
html[data-theme="silver-metallic"] select:focus,
html[data-theme="silver-metallic"] textarea:focus {
    border-color: #0ea5e9;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.04), 
     0 0 0 4px rgba(14, 165, 233, 0.1);
    outline: none;
}

/* =============================================
   GOLD METALLIC ENHANCEMENTS
============================================= */

html[data-theme="gold-metallic"] .glass-card::before,
html[data-theme="gold-metallic"] .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
  height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, #ffd700, #d4af37, transparent);
    background-size: 200% 100%;
    animation: goldShine 3s ease-in-out infinite;
}

@keyframes goldShine {
    0%, 100% { background-position: 0% 50%; opacity: 0.6; }
    50% { background-position: 100% 50%; opacity: 1; }
}

html[data-theme="gold-metallic"] h1,
html[data-theme="gold-metallic"] h2,
html[data-theme="gold-metallic"] h3 {
    background: linear-gradient(135deg, #f0d98f, #d4af37, #b8941e, #d4af37, #f0d98f);
    background-size: 200% 200%;
    -webkit-background-clip: text;
  background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldTextShine 4s ease-in-out infinite;
}

@keyframes goldTextShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

html[data-theme="gold-metallic"] .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

html[data-theme="gold-metallic"] .btn:hover::before {
    left: 100%;
}

/* =============================================
   GLASS LIQUID: Enhanced Readability (FIXED)
============================================= */
html[data-theme="glass-liquid"],
:root[data-theme="glass-liquid"] {
  --color-background: #0a0e1a;
    --color-surface: rgba(255, 255, 255, 0.18);
  --color-surface-subtle: rgba(255, 255, 255, 0.12);
    --color-surface-elevated: rgba(255, 255, 255, 0.25);

    --text-primary: #ffffff;
 --text-secondary: #f1f5f9;
    --text-tertiary: #e2e8f0;

    --border-light: rgba(255, 255, 255, 0.25);
    --border-medium: rgba(255, 255, 255, 0.35);
    --border-dark: rgba(255, 255, 255, 0.5);

    --google-blue: #38bdf8;
 --google-blue-light: #7dd3fc;
    --google-blue-dark: #0ea5e9;
    --google-blue-subtle: rgba(56, 189, 248, 0.15);

    --google-red: #f87171;
    --google-yellow: #fbbf24;
    --google-green: #34d399;

    --theme-radius-md: 16px;
    --theme-radius-lg: 24px;
    --theme-border-width: 1px;
    --theme-shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.3);
    --theme-shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
}

html[data-theme="glass-liquid"] body {
    background: #0a0e1a;
    color: #ffffff;
}

html[data-theme="glass-liquid"] .glass-card,
html[data-theme="glass-liquid"] .card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
 rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
           0 2px 8px rgba(0, 0, 0, 0.3),
   inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    color: #ffffff;
}

html[data-theme="glass-liquid"] .glass-card::before,
html[data-theme="glass-liquid"] .card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, 
        rgba(56, 189, 248, 0.3), 
   rgba(129, 140, 248, 0.3), 
        rgba(56, 189, 248, 0.3));
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: liquidBorderFlow 4s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

@keyframes liquidBorderFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

html[data-theme="glass-liquid"] .glass-card:hover::before,
html[data-theme="glass-liquid"] .card:hover::before {
    opacity: 1;
}

html[data-theme="glass-liquid"] .glass-card:hover,
html[data-theme="glass-liquid"] .card:hover {
  background: linear-gradient(135deg, 
  rgba(255, 255, 255, 0.25) 0%, 
        rgba(255, 255, 255, 0.2) 100%);
    border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.6),
      0 4px 16px rgba(56, 189, 248, 0.2),
     inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-6px) scale(1.01);
}

html[data-theme="glass-liquid"] h1,
html[data-theme="glass-liquid"] h2,
html[data-theme="glass-liquid"] h3,
html[data-theme="glass-liquid"] h4,
html[data-theme="glass-liquid"] h5,
html[data-theme="glass-liquid"] h6 {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5),
      0 1px 2px rgba(0, 0, 0, 0.3);
}

html[data-theme="glass-liquid"] .btn,
html[data-theme="glass-liquid"] .btn-primary,
html[data-theme="glass-liquid"] button:not(.pill-nav__item):not(.pill-nav__toggle):not(.theme-card) {
    background: rgba(56, 189, 248, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(56, 189, 248, 0.5);
    color: #ffffff;
    border-radius: 16px;
    padding: 0.875rem 1.75rem;
 box-shadow: 0 4px 16px rgba(56, 189, 248, 0.25),
     inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
 position: relative;
    overflow: hidden;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

html[data-theme="glass-liquid"] .btn::before,
html[data-theme="glass-liquid"] .btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

html[data-theme="glass-liquid"] .btn:hover::before,
html[data-theme="glass-liquid"] .btn-primary:hover::before {
    width: 300px;
height: 300px;
}

html[data-theme="glass-liquid"] .btn:hover,
html[data-theme="glass-liquid"] .btn-primary:hover {
    background: rgba(56, 189, 248, 0.4);
    border-color: rgba(56, 189, 248, 0.7);
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.4),
  0 0 20px rgba(56, 189, 248, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    border-radius: 20px;
}

html[data-theme="glass-liquid"] .pill-nav {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
     inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

html[data-theme="glass-liquid"] .pill-nav__item {
    border-radius: 16px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    color: #f1f5f9;
    position: relative;
}

html[data-theme="glass-liquid"] .pill-nav__item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

html[data-theme="glass-liquid"] .pill-nav__item:hover::before {
    opacity: 1;
}

html[data-theme="glass-liquid"] .pill-nav__item:hover {
    background: rgba(56, 189, 248, 0.18);
    backdrop-filter: blur(12px);
  border-radius: 18px;
    transform: scale(1.05);
}

html[data-theme="glass-liquid"] .pill-nav__item.active {
    background: rgba(56, 189, 248, 0.3);
    backdrop-filter: blur(12px);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transform: scale(1.05);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

html[data-theme="glass-liquid"] input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="glass-liquid"] select,
html[data-theme="glass-liquid"] textarea {
    background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
  color: #ffffff;
    padding: 0.75rem 1rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

html[data-theme="glass-liquid"] input::placeholder,
html[data-theme="glass-liquid"] textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

html[data-theme="glass-liquid"] input:focus,
html[data-theme="glass-liquid"] select:focus,
html[data-theme="glass-liquid"] textarea:focus {
    background: rgba(255, 255, 255, 0.2);
border-color: var(--google-blue);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    outline: none;
}

/* Ensure ALL text is visible with strong shadows */
html[data-theme="glass-liquid"] label,
html[data-theme="glass-liquid"] p,
html[data-theme="glass-liquid"] span,
html[data-theme="glass-liquid"] td,
html[data-theme="glass-liquid"] th,
html[data-theme="glass-liquid"] li,
html[data-theme="glass-liquid"] a {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

html[data-theme="glass-liquid"] .text-muted,
html[data-theme="glass-liquid"] .text-secondary {
    color: #e2e8f0 !important;
}

/* Tables */
html[data-theme="glass-liquid"] table {
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.12);
}

html[data-theme="glass-liquid"] th {
    background: rgba(56, 189, 248, 0.25);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border-bottom: 1px solid rgba(56, 189, 248, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

html[data-theme="glass-liquid"] tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

html[data-theme="glass-liquid"] tr:hover {
    background: rgba(56, 189, 248, 0.15);
    backdrop-filter: blur(10px);
}

html[data-theme="glass-liquid"] td {
    color: #ffffff;
}
