/* ===================================
   MTNT WARS - Shared Styles
   Landing · Payment · Success
   =================================== */

/* ── Reset ── */
* { box-sizing: border-box; }
html { overflow-x: hidden; min-height: 100vh; min-height: -webkit-fill-available; }
body { min-height: 100vh; min-height: -webkit-fill-available; }
img { max-width: 100%; height: auto; }

/* Prevent layout from shrinking below viewport on mobile */
@supports (-webkit-touch-callout: none) {
    html, body { min-height: -webkit-fill-available; }
}

/* ── Minimal Tailwind Utilities ── */
.bg-black { background-color: #000; }
.text-white { color: #fff; }
.relative { position: relative; }
.z-10 { z-index: 10; }
.container { width: 100%; max-width: 1200px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.p-10 { padding: 2.5rem; }
.p-8 { padding: 2rem; }
.p-6 { padding: 1.5rem; }
.p-4 { padding: 1rem; }
.pt-4 { padding-top: 1rem; }
.min-h-screen { min-height: 100vh; }
.max-w-6xl { max-width: 72rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xs { max-width: 20rem; }
.w-full { width: 100%; }
.w-96 { width: 24rem; }
.w-24 { width: 6rem; }
.w-12 { width: 3rem; }
.w-6 { width: 1.5rem; }
.h-24 { height: 6rem; }
.h-12 { height: 3rem; }
.h-8 { width: 2rem; height: 2rem; }
.h-6 { height: 1.5rem; }
.flex { display: flex; }
.inline-block { display: inline-block; }
.block { display: block; }
.hidden { display: none; }
.grid { display: grid; }
.flex-col { flex-direction: column; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.text-center { text-align: center; }
.text-8xl { font-size: 6rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-light { font-weight: 300; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-green-400 { color: #4ade80; }
.text-red-400 { color: #f87171; }
.bg-opacity-20 { --tw-bg-opacity: 0.2; }
.bg-opacity-50 { --tw-bg-opacity: 0.5; }
.bg-opacity-80 { --tw-bg-opacity: 0.8; }
.bg-green-900 { background-color: #14532d; }
.bg-green-500 { background-color: #10b981; }
.bg-red-500 { background-color: #ef4444; }
.bg-gray-800 { background-color: #1f2937; }
.bg-gray-700 { background-color: #374151; }
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b-2 { border-bottom-width: 2px; }
.border-red-500 { border-color: #ef4444; }
.border-red-900 { border-color: #7f1d1d; }
.border-green-500 { border-color: #10b981; }
.border-gray-600 { border-color: #4b5563; }
.border-gold { border-color: #ffd700; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.bottom-10 { bottom: 2.5rem; }
.left-1\/2 { left: 50%; }
.transform { transform: var(--tw-transform); }
.-translate-x-1\/2 { --tw-translate-x: -50%; }
.mt-96 { margin-top: 24rem; }
.mt-16 { margin-top: 4rem; }
.mt-12 { margin-top: 3rem; }
.mt-8 { margin-top: 2rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.gap-8 { gap: 2rem; }
.gap-6 { gap: 1.5rem; }
.gap-3 { gap: 0.75rem; }
.leading-relaxed { line-height: 1.625; }
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

/* Pseudo-class utilities */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:border-pink-500:focus { border-color: #ec4899; }
.hover\:text-white:hover { color: #fff; }
.hover\:text-yellow-300:hover { color: #fde047; }

/* ── Animations ── */
.animate-bounce { animation: bounce 1s infinite; }
.animate-spin { animation: spin 1s linear infinite; }

@keyframes bounce {
    0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
    50% { transform: none; animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.9; }
}
@keyframes glow {
    0%, 100% { filter: brightness(1) contrast(1); }
    50% { filter: brightness(1.2) contrast(1.1); }
}
@keyframes slideInFromLeft {
    0% { transform: translateX(-100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}
@keyframes slideInFromRight {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}
@keyframes fadeInUp {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
@keyframes checkmark {
    0% { stroke-dashoffset: 100; }
    100% { stroke-dashoffset: 0; }
}

/* ── Responsive utilities ── */
@media (min-width: 768px) {
    .md\:text-9xl { font-size: 8rem; line-height: 1; }
    .md\:text-8xl { font-size: 6rem; line-height: 1; }
    .md\:text-7xl { font-size: 4.5rem; line-height: 1; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:w-auto { width: auto; }
    .md\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
    .md\:p-10 { padding: 2.5rem; }
    .md\:p-8 { padding: 2rem; }
    .md\:px-12 { padding-left: 3rem; padding-right: 3rem; }
    .md\:py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
    .md\:mb-16 { margin-bottom: 4rem; }
    .md\:mb-12 { margin-bottom: 3rem; }
    .md\:mb-8 { margin-bottom: 2rem; }
    .md\:gap-8 { gap: 2rem; }
    .md\:gap-6 { gap: 1.5rem; }
    .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .md\:py-4 { padding-top: 1rem; padding-bottom: 1rem; }
    .md\:py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
    .md\:mt-16 { margin-top: 4rem; }
    .md\:p-6 { padding: 1.5rem; }
}

/* ── Custom Fonts ── */
@font-face {
    font-family: 'ProhibitionTest';
    src: url('/fonts/ProhibitionTest-Rough.woff') format('truetype');
    font-weight: 800;
    font-style: normal;
}
@font-face {
    font-family: 'Titillium Web';
    src: url('/fonts/titillium/TitilliumWeb-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Titillium Web';
    src: url('/fonts/titillium/TitilliumWeb-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Titillium Web';
    src: url('/fonts/titillium/TitilliumWeb-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

/* ── Base Styles ── */
body {
    font-family: 'Titillium Web', sans-serif;
    background-color: #000;
    overflow-x: hidden;
}

.font-prohibition-rough {
    font-family: 'ProhibitionTest', sans-serif;
}

.text-wars-red {
    background: linear-gradient(135deg, #FF0000 0%, #8d0202 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gold {
    color: #d0c999;
}

/* ── Landing Page ── */
.bg-wars-gradient {
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 50%, rgba(0,0,0,1) 100%);
}

.hero-section {
    position: relative;
    min-height: 100vh;
    background-image: url('/mtntwars/BACK_TEMPLO.png');
    background-size: cover;
    background-position: center top;
    background-attachment: scroll;
    background-repeat: no-repeat;
}
@media (min-width: 768px) {
    .hero-section {
        background-size: contain;
        background-position: center;
        background-attachment: fixed;
    }
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.5) 50%,
        rgba(0,0,0,0.9) 100%);
}

.wars-logo {
    letter-spacing: 0.1em;
    animation: pulse 3s ease-in-out infinite;
}

.statue-glow {
    animation: glow 4s ease-in-out infinite;
}

.btn-epic {
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.btn-epic:hover:before {
    left: 100%;
}

.btn-epic:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.5);
}

.category-card {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(0, 0, 0, 0.5) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: #FFD700;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.schedule-item {
    background: rgba(0, 0, 0, 0.8);
    border-left: 4px solid #DC2626;
}

.parallax-section {
    background-attachment: scroll;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.section-overlay {
    background: rgba(0,0,0,0.50);
}
@media (min-width: 768px) {
    .section-overlay {
        background: rgba(0,0,0,0.65);
    }
}

/* Registration form */
.form-container {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid rgba(220, 38, 38, 0.3);
    backdrop-filter: blur(10px);
}

.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #FFD700;
    outline: none;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

/* Selection cards (level/gender) */
.level-option, .gender-option {
    transition: all 0.2s ease;
}
input[type="radio"]:checked + .level-option,
input[type="radio"]:checked + .gender-option {
    background: rgba(220,38,38,0.15);
    border-color: #DC2626 !important;
    border-opacity: 1 !important;
    box-shadow: 0 0 16px rgba(220,38,38,0.3);
}
.level-card:hover .level-option,
.gender-card:hover .gender-option {
    border-opacity: 1 !important;
    background: rgba(255,255,255,0.04);
}

/* Text animations */
.slide-in-left { animation: slideInFromLeft 1s ease-out; }
.slide-in-right { animation: slideInFromRight 1s ease-out; }
.fade-in-up { animation: fadeInUp 1s ease-out; }

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #DC2626; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #FFD700; }

/* ── Payment Page ── */
.card {
    background: #111;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 480px;
    width: 100%;
    margin: 2rem;
}
.card-title { font-size: 1.5rem; font-weight: 700; color: #fff; text-align: center; margin-bottom: 0.25rem; }
.card-subtitle { font-size: 0.875rem; color: #9ca3af; text-align: center; margin-bottom: 2rem; }

.summary { background: #0a0a0a; border: 1px solid #1f2937; border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.summary-row { display: flex; justify-content: space-between; padding: 0.35rem 0; font-size: 0.875rem; }
.summary-label { color: #9ca3af; }
.summary-value { color: #fff; font-weight: 500; }

.price-box { text-align: center; margin-bottom: 2rem; padding: 1rem; }
.price-label { font-size: 0.75rem; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.25rem; }
.price-amount { font-size: 2.5rem; font-weight: 700; color: #DC2626; }
.price-currency { font-size: 1rem; color: #9ca3af; margin-left: 0.25rem; }

#card-element {
    background: #0a0a0a;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 0.875rem 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}
#card-element.StripeElement--focus { border-color: #DC2626; }
#card-element.StripeElement--invalid { border-color: #ef4444; }

#card-errors {
    color: #ef4444;
    font-size: 0.8125rem;
    min-height: 1.25rem;
    margin-bottom: 1rem;
}

.pay-btn {
    width: 100%;
    padding: 0.875rem;
    background: #DC2626;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}
.pay-btn:hover { background: #b91c1c; }
.pay-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.spinner {
    display: inline-block;
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.back-link { display: block; text-align: center; margin-top: 1.25rem; color: #9ca3af; font-size: 0.8125rem; text-decoration: none; }
.back-link:hover { color: #fff; }

.secure-note { text-align: center; margin-top: 1rem; font-size: 0.75rem; color: #6b7280; }

/* ── Dynamic Category Cards (landing form) ── */
.category-option {
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
input[type="radio"].category-radio:checked + .category-option {
    background: rgba(220,38,38,0.15);
    box-shadow: 0 0 16px rgba(220,38,38,0.3);
}

/* ── Success Page ── */
.checkmark-circle {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: checkmark 1s ease-in-out forwards;
}

.btn-gift {
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
}
.btn-gift:hover {
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4);
}
