/* http://meyerweb.com/eric/tools/css/reset/
  v2.0 | 20110126
  License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Global Styles */
html {
  scroll-behavior: smooth;
}

:root {
  --primary-color: #2d253c;
  --secondary-color: #e6e6e6;
  --accent-color: #c45525;
  --text-color: #333;
  --spacing-unit: 1rem;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--primary-color);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  scroll-behavior: smooth;
}

main {
  width: 100%;
}

/* Mobile First Sections */
section {
  width: 100%;
  min-height: 100vh;
  padding: 1rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Remove PagePiling-specific styles */

/* Mobile First Container */
.section-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* Card */
.card {
    width: min(90vw, 400px);
    aspect-ratio: 2.5 / 3.5;
    position: relative;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    margin: var(--spacing-unit) auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 4.75% / 3.5%;
}

.front,
.back {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    border-radius: 4.75% / 3.5%;
    overflow: hidden;
}

.back {
    z-index: 2;
    backface-visibility: hidden;
}

.front {
    z-index: 1;
    transform: rotateY(180deg);
}

.container_switch.active .card {
    transform: rotateY(180deg);
}

.container_switch {
    cursor: pointer;
    perspective: 1000px;
    margin: calc(var(--spacing-unit) * 2) auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.front img,
.back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Calendar Section */
iframe {
    min-height: 80vh;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background-color: var(--secondary-color);
}

.calendar-section {
    text-align: center;
    color: var(--secondary-color);
}

.calendar-section span {
    color: var(--accent-color);
}

.calendar-consent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    color: var(--secondary-color);
    margin: 2rem auto;
    max-width: 90vw;
    width: 600px;
}

.calendar-consent p {
    margin: 0;
    text-align: center;
    color: var(--secondary-color);
}

.calendar-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* Additional Sections Styling */
.welcome {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a1625 100%);
}

.welcome-text {
    color: var(--accent-color);
    font-weight: 500;
}

.tagline {
    color: var(--secondary-color);
    font-style: italic;
}

.legal-note {
    font-size: 1rem;
    color: var(--secondary-color);
}

.challenge {
    background: linear-gradient(45deg, #2d253c 0%, #3a3150 100%);
}

h1 {
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 700;
  margin: var(--spacing-unit) 0;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

h2 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 600;
  margin: var(--spacing-unit) 0;
  color: var(--accent-color);
}

p {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  margin: calc(var(--spacing-unit) / 2) 0;
  max-width: 80vw;
}

/* Ensure h3 in welcome, events and calendar are larger and more specific */
.welcome-right h3,
.events-list .event-meta h3,
#calendar-overview {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    font-weight: 700;
    line-height: 1.12;
    margin: 0.75rem 0 0.5rem;
    color: var(--accent-color);
}

/* Global fallback for other h3s */
h3 {
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 600;
    line-height: 1.15;
    margin: 0.75rem 0 0.5rem;
    color: var(--accent-color);
}

/* Make lists in the welcome-right column match paragraph sizing and increase size */
.welcome-right ul {
    margin: 0.5rem 0 0 1rem;
    padding: 0;
}
.welcome-right ul li {
    font-size: clamp(1.3rem, 4vw, 1.6rem);
    margin-bottom: 0.45rem;
    color: #ffffff;
    font-weight: 700;
}

a {
  color: #ffffff !important;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

span {
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin: calc(var(--spacing-unit) / 2) 0;
}

.challenge-text {
    position: relative;
    z-index: 2;
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 500;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    max-width: 80%;
    margin: 0 auto;
}

.mana-symbols {
    margin-top: var(--spacing-unit);
}

.mana-icon {
    width: clamp(100px, 30vw, 200px);
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.mana-icon:hover {
    opacity: 1;
}

.location {
    background: linear-gradient(225deg, var(--primary-color) 0%, #1a1625 100%);
}

.time {
    color: var(--accent-color);
}

.address {
    margin-top: calc(var(--spacing-unit) / 2);
    font-style: italic;
}

.location-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: var(--spacing-unit);
}

.location-link {
    margin-top: var(--spacing-unit);
    padding: calc(var(--spacing-unit) / 2) var(--spacing-unit);
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.location-link:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    text-decoration: none;
}

.social {
    background: linear-gradient(315deg, var(--primary-color) 0%, #1a1625 100%);
}

.social-links {
    margin-top: var(--spacing-unit);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-unit);
}

.social-link {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) / 2);
    padding: calc(var(--spacing-unit) / 2) var(--spacing-unit);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    text-decoration: none;
}

.social-link img {
    filter: invert(1);
}

.button {
    display: inline-block;
    margin-top: var(--spacing-unit);
    padding: calc(var(--spacing-unit) / 2) var(--spacing-unit);
    background-color: var(--accent-color);
    color: var(--secondary-color);
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.button:hover {
    background-color: #d66b3c;
    transform: translateY(-2px);
    text-decoration: none;
}

.community-note {
    margin-top: calc(var(--spacing-unit) * 2);
    font-style: italic;
    opacity: 0.8;
}

/* Community Messages */
.community-message {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    border-radius: 15px;
    transition: all 0.5s ease;
    box-sizing: border-box;
}

.message {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    width: 100%;
    box-sizing: border-box;
}

.message p {
    margin: 1rem auto;
    line-height: 1.8;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    text-align: center;
    max-width: 60ch;
    width: 100%;
}

/* Show message based on theme */
[data-theme="white"] .white-message,
[data-theme="blue"] .blue-message,
[data-theme="black"] .black-message,
[data-theme="red"] .red-message,
[data-theme="green"] .green-message {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Welcome Section Specific */
.welcome .section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    padding: 0;
    margin: 0 auto;
}

.welcome-text,
.welcome h1 {
    width: 100%;
    text-align: center;
    margin: var(--spacing-unit) 0;
}

/* Mobile First Layout */
.welcome .section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    padding: 1rem;
    margin: 0 auto;
}

.welcome-text,
.welcome h1 {
    width: 100%;
    text-align: center;
    margin: var(--spacing-unit) 0;
}

.community-message {
    width: 95%;
    margin: 1rem auto;
    padding: 1rem;
}

.message p {
    font-size: clamp(1rem, 3.5vw, 1.2rem);
    line-height: 1.4;
    margin: 0.8rem auto;
}

.welcome h1 {
    font-size: clamp(2.5rem, 8vw, 3rem);
    margin: 0.5rem 0;
}

.welcome-text {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
}

.section-content {
    padding: 1rem;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 2rem;
}

.calendar-consent {
    width: 95%;
    max-width: none;
    margin: 1rem auto;
    padding: 1.5rem 1rem;
    box-sizing: border-box;
}

.calendar-consent p {
    font-size: 1rem;
    line-height: 1.5;
}

/* Kalender-Sektion mit extra Platz für mobiles Menü */
#calendar {
    padding-bottom: 120px;
    min-height: calc(100vh + 80px);
}

.calendar-container iframe {
    margin-bottom: 80px;
}

/* Theme-specific message styles */
[data-theme="white"] .community-message {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 20px rgba(248, 231, 185, 0.3);
}

[data-theme="blue"] .community-message {
    background: rgba(11, 42, 74, 0.9);
    box-shadow: 0 0 20px rgba(0, 183, 232, 0.3);
}

[data-theme="black"] .community-message {
    background: rgba(26, 22, 37, 0.9);
    box-shadow: 0 0 20px rgba(139, 47, 92, 0.3);
}

[data-theme="red"] .community-message {
    background: rgba(74, 15, 15, 0.9);
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.3);
}

[data-theme="green"] .community-message {
    background: rgba(15, 50, 40, 0.9);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
}

/* Message animations */
@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message p {
    animation: messageIn 0.5s ease-out forwards;
    animation-delay: 0.2s;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.fade-out {
    animation: fadeOut 0.7s ease-out forwards;
}

/* Navigation Dots - Remove PagePiling specific */

/* Mobile First Menu - Desktop styles moved to desktop.css */

/* Mana Menu Mobile First */
.mana-menu.collapsed .mana-symbol:not(.toggle) {
    display: none;
}

.mana-menu .mana-symbol.toggle {
    background: rgba(255, 255, 255, 0.2);
    font-size: 18px;
    color: white;
    font-weight: bold;
}

.mana-menu .mana-symbol.toggle:before {
    content: "⚡";
}

.mana-menu.collapsed .mana-symbol.toggle:before {
    content: "▶";
}

/* Remove desktop media queries - moved to desktop.css */

/* Mobile First Mana Menu */
.mana-menu {
    position: fixed;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 25px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.mana-menu.collapsed {
    padding: 8px;
}

.mana-menu .mana-symbol {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.mana-menu .mana-symbol.toggle {
    background: rgba(255, 255, 255, 0.2);
    font-size: 18px;
    color: white;
    font-weight: bold;
}

.mana-menu .mana-symbol.toggle:before {
    content: "⚡";
}

.mana-menu.collapsed .mana-symbol.toggle:before {
    content: "▶";
}



.mana-menu .mana-symbol::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mana-menu .mana-symbol:hover::after {
    opacity: 1;
}

.mana-menu .mana-symbol:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Enhanced Theme Transitions */
section, h1, h2, p, a, span, .menu, .mana-symbol {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mana Symbol images (separate files per color) */
.mana-symbol {
  width: 55px;
  height: 55px;
  background-repeat: no-repeat;
  background-size: contain;
  display: inline-block;
}

.mana-symbol.white {
  background-image: url('white.webp');
  background-position: center;
}

.mana-symbol.blue {
  background-image: url('blue.webp');
  background-position: center;
}

.mana-symbol.black {
  background-image: url('black.webp');
  background-position: center;
}

.mana-symbol.red {
  background-image: url('red.webp');
  background-position: center;
}

.mana-symbol.green {
  background-image: url('green.webp');
  background-position: center;
}


.floating-mana {
    position: absolute;
    width: 55px;
    height: 55px;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.3;
    animation: floatAround 45s linear infinite;
}

.floating-mana.white {
    background-image: url('white.webp');
    animation-delay: 0s;
    top: 10%;
    left: 5%;
}

.floating-mana.blue {
    background-image: url('blue.webp');
    animation-delay: -9s;
    top: 20%;
    left: 80%;
}

.floating-mana.black {
    background-image: url('black.webp');
    animation-delay: -18s;
    top: 60%;
    left: 10%;
}

.floating-mana.red {
    background-image: url('red.webp');
    animation-delay: -27s;
    top: 70%;
    left: 85%;
}

.floating-mana.green {
    background-image: url('green.webp');
    animation-delay: -36s;
    top: 40%;
    left: 90%;
}

.floating-mana:nth-child(6) {
    background-image: url('white.webp');
    animation-delay: -4.5s;
    top: 80%;
    left: 15%;
    animation-duration: 50s;
}

.floating-mana:nth-child(7) {
    background-image: url('blue.webp');
    animation-delay: -13.5s;
    top: 30%;
    left: 70%;
    animation-duration: 40s;
}

.floating-mana:nth-child(8) {
    background-image: url('black.webp');
    animation-delay: -22.5s;
    top: 90%;
    left: 60%;
    animation-duration: 55s;
}

.floating-mana:nth-child(9) {
    background-image: url('red.webp');
    animation-delay: -31.5s;
    top: 50%;
    left: 5%;
    animation-duration: 35s;
}

.floating-mana:nth-child(10) {
    background-image: url('green.webp');
    animation-delay: -40.5s;
    top: 25%;
    left: 45%;
    animation-duration: 48s;
}

@keyframes floatAround {
    0% {
        transform: translate(0px, 0px) rotate(0deg);
    }
    25% {
        transform: translate(30px, -50px) rotate(90deg);
    }
    50% {
        transform: translate(-20px, -80px) rotate(180deg);
    }
    75% {
        transform: translate(-40px, -30px) rotate(270deg);
    }
    100% {
        transform: translate(0px, 0px) rotate(360deg);
    }
}

/* Theme-based glowing effect for floating mana */
[data-theme="white"] .floating-mana.white {
    opacity: 0.3;
    filter: drop-shadow(0 0 8px rgba(248, 231, 185, 0.6));
}

[data-theme="blue"] .floating-mana.blue {
    opacity: 0.3;
    filter: drop-shadow(0 0 8px rgba(0, 183, 232, 0.6));
}

[data-theme="black"] .floating-mana.black {
    opacity: 0.3;
    filter: drop-shadow(0 0 8px rgba(166, 159, 157, 0.6));
}

[data-theme="red"] .floating-mana.red {
    opacity: 0.3;
    filter: drop-shadow(0 0 8px rgba(244, 67, 54, 0.6));
}

[data-theme="green"] .floating-mana.green {
    opacity: 0.3;
    filter: drop-shadow(0 0 8px rgba(76, 175, 80, 0.6));
}

/* Enhanced Menu Styles - Mobile First */
#menu {
    position: fixed;
    bottom: 0;
    top: auto;
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
    z-index: 100;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#menu ul {
    overflow-x: auto;
    padding: 10px 15px;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    display: flex;
    gap: 8px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

/* Hide scrollbar for Chrome, Safari and Opera */
#menu ul::-webkit-scrollbar {
    display: none;
}

/* Visual hint for horizontal scrolling */
#menu::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.8));
    pointer-events: none;
    z-index: 1;
}

#menu::after {
    content: '⇄';
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    pointer-events: none;
    z-index: 2;
    animation: scrollHint 2s ease-in-out infinite;
}

#menu li {
    margin: 0;
    display: inline-block;
    flex-shrink: 0;
    scroll-snap-align: start;
}

#menu li a {
    color: var(--secondary-color);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    opacity: 0.8;
    white-space: nowrap;
    display: block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#menu li.active a {
    opacity: 1;
    background: var(--accent-color);
    transform: scale(1.05);
}

#menu li:hover a {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

/* Animation for scroll hint */
@keyframes scrollHint {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(-50%) translateX(0);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-50%) translateX(-3px);
    }
}

/* Mobile First Mana Menu is now default */

/* Theme-based Section Backgrounds with WOW Effect */
body {
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

section {
    transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 1.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
    pointer-events: none;
}

/* White Mana Theme - Plains */
[data-theme="white"] section {
    background: linear-gradient(135deg, #f8f7e5 0%, #ffffff 50%, #f0e68c 100%);
    color: #1a1a1a;
}

[data-theme="white"] section::before {
    background: radial-gradient(circle at 30% 20%, rgba(248, 231, 185, 0.3) 0%, transparent 70%),
                radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
    opacity: 1;
}

[data-theme="white"] h1,
[data-theme="white"] h2,
[data-theme="white"] .time,
[data-theme="white"] .welcome-text,
[data-theme="white"] .tagline {
    color: #6b4e3d;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

/* Blue Mana Theme - Islands */
[data-theme="blue"] section {
    background: linear-gradient(135deg, #0b2a4a 0%, #001a33 50%, #00b7e8 100%);
    color: #e6f3ff;
}

[data-theme="blue"] section::before {
    background: radial-gradient(circle at 40% 30%, rgba(0, 183, 232, 0.2) 0%, transparent 70%),
                radial-gradient(circle at 80% 70%, rgba(11, 42, 74, 0.3) 0%, transparent 60%);
    opacity: 1;
}

[data-theme="blue"] h1,
[data-theme="blue"] h2,
[data-theme="blue"] .time,
[data-theme="blue"] .welcome-text,
[data-theme="blue"] .tagline {
    color: #00b7e8;
    text-shadow: 0 2px 8px rgba(0, 183, 232, 0.3);
}

/* Black Mana Theme - Swamps */
[data-theme="black"] section {
    background: linear-gradient(135deg, #1a1625 0%, #0d0d0d 50%, #8b2f5c 100%);
    color: #a69f9d;
}

[data-theme="black"] section::before {
    background: radial-gradient(circle at 20% 60%, rgba(139, 47, 92, 0.2) 0%, transparent 70%),
                radial-gradient(circle at 90% 20%, rgba(26, 22, 37, 0.4) 0%, transparent 80%);
    opacity: 1;
}

[data-theme="black"] h1,
[data-theme="black"] h2,
[data-theme="black"] .time,
[data-theme="black"] .welcome-text,
[data-theme="black"] .tagline {
    color: #8b2f5c;
    text-shadow: 0 2px 8px rgba(139, 47, 92, 0.4);
}

/* Red Mana Theme - Mountains */
[data-theme="red"] section {
    background: linear-gradient(135deg, #4a0f0f 0%, #660000 50%, #f44336 100%);
    color: #ffebee;
}

[data-theme="red"] section::before {
    background: radial-gradient(circle at 60% 40%, rgba(244, 67, 54, 0.2) 0%, transparent 70%),
                radial-gradient(circle at 10% 90%, rgba(74, 15, 15, 0.3) 0%, transparent 60%);
    opacity: 1;
}

[data-theme="red"] h1,
[data-theme="red"] h2,
[data-theme="red"] .time,
[data-theme="red"] .welcome-text,
[data-theme="red"] .tagline {
    color: #f44336;
    text-shadow: 0 2px 8px rgba(244, 67, 54, 0.4);
}

/* Green Mana Theme - Forests */
[data-theme="green"] section {
    background: linear-gradient(135deg, #0f3228 0%, #1b5e20 50%, #4caf50 100%);
    color: #e8f5e8;
}

[data-theme="green"] section::before {
    background: radial-gradient(circle at 50% 20%, rgba(76, 175, 80, 0.2) 0%, transparent 70%),
                radial-gradient(circle at 20% 80%, rgba(15, 50, 40, 0.3) 0%, transparent 60%);
    opacity: 1;
}

[data-theme="green"] h1,
[data-theme="green"] h2,
[data-theme="green"] .time,
[data-theme="green"] .welcome-text,
[data-theme="green"] .tagline {
    color: #4caf50;
    text-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

/* WOW Effect - Transition Animation */
@keyframes themeTransition {
    0% {
        transform: scale(1);
        filter: brightness(1) contrast(1);
    }
    25% {
        transform: scale(1.02);
        filter: brightness(1.1) contrast(1.2);
    }
    50% {
        transform: scale(1.01);
        filter: brightness(1.05) contrast(1.1);
    }
    100% {
        transform: scale(1);
        filter: brightness(1) contrast(1);
    }
}

body[data-theme] section {
    animation: themeTransition 1.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Mana Symbol Glow Effect on Theme Change */
.mana-menu .mana-symbol.active {
    animation: manaGlow 2s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 0 20px currentColor;
}

@keyframes manaGlow {
    0% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px currentColor;
        transform: scale(1.2);
    }
    100% {
        box-shadow: 0 0 15px currentColor;
        transform: scale(1.1);
    }
}

/* Theme-aware Text and Link Colors */
[data-theme="white"] p,
[data-theme="white"] span:not(.welcome-text):not(.time),
[data-theme="white"] .tagline,
[data-theme="white"] .welcome-right ul li {
    color: #1a1a1a;
    font-weight: 500;
}

[data-theme="white"] a {
    color: #6b4e3d !important;
    border-color: #6b4e3d;
    font-weight: 600;
}

[data-theme="white"] .button {
    background-color: #6b4e3d;
    border-color: #6b4e3d;
    color: #ffffff;
}

[data-theme="blue"] p,
[data-theme="blue"] span:not(.welcome-text):not(.time),
[data-theme="blue"] .tagline {
    color: #e6f3ff;
}

[data-theme="blue"] a {
    color: #00b7e8 !important;
    border-color: #00b7e8;
}

[data-theme="blue"] .button {
    background-color: #00b7e8;
    border-color: #00b7e8;
}

[data-theme="black"] p,
[data-theme="black"] span:not(.welcome-text):not(.time),
[data-theme="black"] .tagline {
    color: #a69f9d;
}

[data-theme="black"] a {
    color: #8b2f5c !important;
    border-color: #8b2f5c;
}

[data-theme="black"] .button {
    background-color: #8b2f5c;
    border-color: #8b2f5c;
}

[data-theme="red"] p,
[data-theme="red"] span:not(.welcome-text):not(.time),
[data-theme="red"] .tagline {
    color: #ffebee;
}

[data-theme="red"] a {
    color: #f44336 !important;
    border-color: #f44336;
}

[data-theme="red"] .button {
    background-color: #f44336;
    border-color: #f44336;
}

[data-theme="green"] p,
[data-theme="green"] span:not(.welcome-text):not(.time),
[data-theme="green"] .tagline {
    color: #e8f5e8;
}

[data-theme="green"] a {
    color: #4caf50 !important;
    border-color: #4caf50;
}

[data-theme="green"] .button {
    background-color: #4caf50;
    border-color: #4caf50;
}

/* Enhanced Menu Colors for Themes */
[data-theme="white"] #menu {
    background: rgba(107, 78, 61, 0.9);
}

[data-theme="white"] #menu li a {
    color: #ffffff !important;
}

[data-theme="blue"] #menu {
    background: rgba(11, 42, 74, 0.9);
}

[data-theme="black"] #menu {
    background: rgba(26, 22, 37, 0.9);
}

[data-theme="red"] #menu {
    background: rgba(74, 15, 15, 0.9);
}

[data-theme="green"] #menu {
    background: rgba(15, 50, 40, 0.9);
}

/* Theme-specific Challenge Text Backgrounds */
[data-theme="white"] .challenge-text {
    background: rgba(107, 78, 61, 0.9);
    color: #ffffff;
    border: 2px solid #8b7355;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 30px rgba(107, 78, 61, 0.5);
}

[data-theme="blue"] .challenge-text {
    background: rgba(11, 42, 74, 0.9);
    color: #e6f3ff;
    border: 2px solid #00b7e8;
    text-shadow: 0 2px 8px rgba(0, 183, 232, 0.6);
    box-shadow: 0 0 30px rgba(0, 183, 232, 0.4);
}

[data-theme="black"] .challenge-text {
    background: rgba(26, 22, 37, 0.9);
    color: #a69f9d;
    border: 2px solid #8b2f5c;
    text-shadow: 0 2px 8px rgba(139, 47, 92, 0.6);
    box-shadow: 0 0 30px rgba(139, 47, 92, 0.4);
}

[data-theme="red"] .challenge-text {
    background: rgba(74, 15, 15, 0.9);
    color: #ffebee;
    border: 2px solid #f44336;
    text-shadow: 0 2px 8px rgba(244, 67, 54, 0.6);
    box-shadow: 0 0 30px rgba(244, 67, 54, 0.4);
}

[data-theme="green"] .challenge-text {
    background: rgba(15, 50, 40, 0.9);
    color: #e8f5e8;
    border: 2px solid #4caf50;
    text-shadow: 0 2px 8px rgba(76, 175, 80, 0.6);
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.4);
}

/* Theme-specific Social Links */
[data-theme="white"] .social-link {
    background: rgba(107, 78, 61, 0.8);
    border: 1px solid rgba(139, 115, 85, 0.5);
    color: #ffffff;
}

[data-theme="white"] .social-link:hover {
    background: rgba(107, 78, 61, 1);
    border-color: #8b7355;
    box-shadow: 0 4px 15px rgba(107, 78, 61, 0.4);
}

[data-theme="white"] .social-link img {
    filter: invert(1);
}

[data-theme="blue"] .social-link {
    background: rgba(11, 42, 74, 0.8);
    border: 1px solid rgba(0, 183, 232, 0.5);
    color: #e6f3ff;
}

[data-theme="blue"] .social-link:hover {
    background: rgba(11, 42, 74, 1);
    border-color: #00b7e8;
    box-shadow: 0 4px 15px rgba(0, 183, 232, 0.4);
}

[data-theme="blue"] .social-link img {
    filter: invert(1);
}

[data-theme="black"] .social-link {
    background: rgba(26, 22, 37, 0.8);
    border: 1px solid rgba(139, 47, 92, 0.5);
    color: #a69f9d;
}

[data-theme="black"] .social-link:hover {
    background: rgba(26, 22, 37, 1);
    border-color: #8b2f5c;
    box-shadow: 0 4px 15px rgba(139, 47, 92, 0.4);
}

[data-theme="black"] .social-link img {
    filter: invert(0.8) sepia(1) saturate(1) hue-rotate(280deg);
}

[data-theme="red"] .social-link {
    background: rgba(74, 15, 15, 0.8);
    border: 1px solid rgba(244, 67, 54, 0.5);
    color: #ffebee;
}

[data-theme="red"] .social-link:hover {
    background: rgba(74, 15, 15, 1);
    border-color: #f44336;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
}

[data-theme="red"] .social-link img {
    filter: invert(1);
}

[data-theme="green"] .social-link {
    background: rgba(15, 50, 40, 0.8);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #e8f5e8;
}

[data-theme="green"] .social-link:hover {
    background: rgba(15, 50, 40, 1);
    border-color: #4caf50;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

[data-theme="green"] .social-link img {
    filter: invert(1);
}
