/**
 * POKEMON BLAZE ONLINE - CYBERPUNK DESIGN SYSTEM
 * Dark industrial theme with orange accents
 * Version: 2.4
 */

/* ========================================
   FONTS
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

/* ========================================
   COLOR VARIABLES
   ======================================== */
:root {
    --primary-orange: #ff6b35;
    --success-green: #4ade80;
    --dark-bg: #000;
    --card-bg: #0a0a0a;
    --border-gray: #333;
    --text-gray: #888;
    --text-white: #fff;
    --version-text: #444;

    --border-radius: 8px;
    --border-radius-sm: 4px;
}

/* ========================================
   BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--dark-bg);
    font-family: 'Space Mono', monospace;
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   HEADER / LOGO
   ======================================== */
.blaze-header {
    padding: 20px;
    text-align: center;
    background: var(--dark-bg);
}

.header-logo-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.3));
    transition: filter 0.3s ease;
}

.header-logo-image:hover {
    filter: drop-shadow(0 0 30px rgba(255, 107, 53, 0.5));
}

.blaze-logo {
    font-family: 'Space Mono', monospace;
    font-size: 2em;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.2;
}

.blaze-logo .pokemon-text {
    color: var(--text-gray);
}

.blaze-logo .blaze-text {
    color: var(--primary-orange);
}

.blaze-logo .online-text {
    color: var(--text-gray);
}

.blaze-subtitle {
    color: var(--success-green);
    font-size: 0.9em;
    margin-top: 10px;
    font-weight: 400;
}

/* ========================================
   MAIN CONTENT CONTAINER
   ======================================== */
.blaze-container {
    max-width: 550px;
    width: 100%;
    margin: 40px auto;
    padding: 0 20px;
}

.blaze-container-wide {
    max-width: 700px;
}

.blaze-container-full {
    max-width: 900px;
}

/* ========================================
   CONTENT BOX
   ======================================== */
.blaze-box {
    background: var(--card-bg);
    border: 3px solid var(--primary-orange);
    border-radius: var(--border-radius);
    padding: 35px 30px;
    position: relative;
    box-shadow:
        0 0 40px rgba(255, 107, 53, 0.3),
        inset 0 0 40px rgba(255, 107, 53, 0.05);
}

/* Green pulsing status dot */
.blaze-box::before {
    content: '●';
    position: absolute;
    top: 12px;
    left: 15px;
    color: var(--success-green);
    font-size: 1.2em;
    animation: pulse-dot 2s infinite;
}

/* Version number */
.blaze-box::after {
    content: 'v2.4';
    position: absolute;
    top: 10px;
    right: 15px;
    color: #666;
    font-size: 0.65em;
    font-weight: 400;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 5px var(--success-green);
    }
    50% {
        opacity: 0.5;
        text-shadow: 0 0 10px var(--success-green);
    }
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
.blaze-title {
    font-size: 1.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blaze-subtitle-text {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.85em;
    margin-bottom: 30px;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    color: var(--primary-orange);
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 700;
}

input.blaze-input,
select.blaze-input,
textarea.blaze-input {
    width: 100%;
    padding: 12px 15px;
    background: var(--dark-bg);
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius-sm);
    color: var(--success-green);
    font-family: 'Space Mono', monospace;
    font-size: 1em;
    transition: all 0.3s ease;
}

input.blaze-input:focus,
select.blaze-input:focus,
textarea.blaze-input:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

input.blaze-input::placeholder {
    color: var(--text-gray);
    opacity: 0.6;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-blaze {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-family: 'Space Mono', monospace;
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin-bottom: 12px;
}

.btn-blaze:last-child {
    margin-bottom: 0;
}

/* Primary button - Orange */
.btn-blaze-primary {
    background: var(--primary-orange);
    color: var(--dark-bg);
}

.btn-blaze-primary:hover {
    background: #ff8c5c;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 107, 53, 0.6);
}

/* Secondary button - Outline */
.btn-blaze-secondary {
    background: transparent;
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
}

.btn-blaze-secondary:hover {
    background: rgba(255, 107, 53, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
}

/* Success button - Green */
.btn-blaze-success {
    background: var(--success-green);
    color: var(--dark-bg);
}

.btn-blaze-success:hover {
    background: #5ee890;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(74, 222, 128, 0.6);
}

.btn-blaze:active {
    transform: translateY(0);
}

/* ========================================
   ALERTS / MESSAGES
   ======================================== */
.blaze-alert {
    padding: 15px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.blaze-alert-success {
    background: rgba(74, 222, 128, 0.2);
    border: 2px solid var(--success-green);
    color: var(--success-green);
}

.blaze-alert-error {
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid #ef4444;
    color: #ef4444;
}

.blaze-alert-warning {
    background: rgba(251, 191, 36, 0.2);
    border: 2px solid #fbbf24;
    color: #fbbf24;
}

/* ========================================
   DONATION TIER CARDS
   ======================================== */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.tier-card {
    background: var(--card-bg);
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.tier-card:hover {
    border-color: var(--primary-orange);
    background: rgba(255, 107, 53, 0.05);
}

.tier-card.selected {
    border-color: var(--primary-orange);
    background: rgba(255, 107, 53, 0.1);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.2);
}

.tier-name {
    color: var(--text-gray);
    font-size: 0.75em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.tier-price {
    color: var(--primary-orange);
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 10px;
}

.tier-gems {
    color: var(--success-green);
    font-size: 1.1em;
    font-weight: 700;
}

/* ========================================
   GEM DISPLAY
   ======================================== */
.gem-display {
    background: rgba(74, 222, 128, 0.1);
    border: 2px solid var(--success-green);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.gem-display::before {
    content: '';
    background: url('../images/donator-gem.png') no-repeat center;
    background-size: contain;
    width: 32px;
    height: 32px;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.6));
}

.gem-display::after {
    content: '';
    background: url('../images/donator-gem.png') no-repeat center;
    background-size: contain;
    width: 32px;
    height: 32px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.6));
}

.gem-amount {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--success-green);
}

.currencySymbol {
    color: var(--primary-orange);
}

/* ========================================
   BONUS BANNER
   ======================================== */
.bonus-banner {
    background: rgba(255, 107, 53, 0.1);
    border: 2px solid var(--primary-orange);
    border-radius: var(--border-radius-sm);
    padding: 15px;
    margin: 20px 0;
    text-align: center;
}

.bonus-text {
    color: var(--primary-orange);
    font-size: 0.9em;
    margin: 0;
}

/* ========================================
   PAYMENT SECTION
   ======================================== */
.payment-section {
    margin-top: 30px;
}

.payment-title {
    color: var(--text-gray);
    text-transform: uppercase;
    font-size: 0.85em;
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.payment-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ========================================
   FOOTER
   ======================================== */
.blaze-footer {
    background: var(--dark-bg);
    border-top: 1px solid rgba(255, 107, 53, 0.3);
    padding: 40px 20px 30px;
    margin-top: 60px;
    text-align: center;
}

.footer-logo-text {
    font-size: 1.2em;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-family: 'Space Mono', monospace;
}

.footer-logo-text .gray {
    color: var(--text-gray);
}

.footer-logo-text .orange {
    color: var(--primary-orange);
}

.footer-description {
    color: var(--text-gray);
    font-size: 0.9em;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 30px;
}

.footer-links {
    margin-bottom: 30px;
    font-size: 0.85em;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0 5px;
}

.footer-links a:hover {
    color: var(--primary-orange);
}

.footer-links .separator {
    color: #444;
    margin: 0 8px;
}

.footer-legal {
    border-top: 1px solid rgba(255, 107, 53, 0.2);
    padding-top: 25px;
}

.footer-legal p {
    color: #666;
    font-size: 0.8em;
    margin: 5px 0;
}

/* ========================================
   CONTENT PAGES (Rules, Policy)
   ======================================== */
.content-page {
    background: var(--card-bg);
    border: 3px solid var(--primary-orange);
    border-radius: var(--border-radius);
    padding: 40px;
    max-width: 900px;
    margin: 40px auto;
    box-shadow: 0 0 40px rgba(255, 107, 53, 0.3);
}

.content-page h1 {
    color: var(--primary-orange);
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.content-page h2 {
    color: var(--primary-orange);
    font-size: 1.3em;
    margin-top: 30px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.content-page p {
    color: var(--text-gray);
    font-size: 0.95em;
    line-height: 1.8;
    margin-bottom: 15px;
}

.content-page ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

.content-page li {
    color: var(--text-gray);
    font-size: 0.95em;
    line-height: 1.8;
    margin-bottom: 8px;
}

.content-page strong {
    color: var(--primary-orange);
}

/* ========================================
   MODAL
   ======================================== */
.blaze-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.blaze-modal-content {
    background: var(--card-bg);
    border: 3px solid var(--primary-orange);
    border-radius: var(--border-radius);
    padding: 30px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.blaze-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-orange);
}

.blaze-modal-title {
    font-size: 1.2em;
    color: var(--primary-orange);
    text-transform: uppercase;
}

.blaze-modal-close {
    background: var(--primary-orange);
    color: var(--dark-bg);
    border: none;
    font-size: 24px;
    font-weight: bold;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
}

.blaze-modal-close:hover {
    background: #ff8c5c;
    transform: rotate(90deg);
}

.blaze-modal-body {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius-sm);
    min-height: 400px;
    max-height: calc(90vh - 150px);
    overflow-y: auto;
}

.blaze-modal-body iframe {
    width: 100%;
    border: none;
    min-height: 600px;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.hidden-input {
    display: none;
}

.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
    margin-left: 8px;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

.d-none {
    display: none !important;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .header-logo-image {
        max-width: 300px;
    }

    .footer-logo-text {
        font-size: 1.2em;
    }

    .footer-description {
        font-size: 0.85em;
    }

    .footer-links {
        font-size: 0.85em;
    }

    .footer-links .separator {
        display: none;
    }

    .footer-links a {
        display: block;
        margin: 10px 0;
    }

    .blaze-logo {
        font-size: 1.5em;
    }

    .blaze-container {
        margin: 20px auto;
    }

    .blaze-box {
        padding: 25px 20px;
    }

    .blaze-title {
        font-size: 1.2em;
    }

    .tier-grid {
        grid-template-columns: 1fr;
    }

    .content-page {
        padding: 25px 20px;
    }

    .content-page h1 {
        font-size: 1.3em;
    }

    .content-page h2 {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .header-logo-image {
        max-width: 250px;
    }

    .footer-logo-image {
        max-width: 200px;
    }

    .blaze-logo {
        font-size: 1.2em;
    }

    .btn-blaze {
        font-size: 0.9em;
        padding: 12px;
    }

    .gem-amount {
        font-size: 1.2em;
    }

    .gem-display::before,
    .gem-display::after {
        width: 24px;
        height: 24px;
    }

    .gem-display::before {
        left: 10px;
    }

    .gem-display::after {
        right: 10px;
    }

    .tier-price {
        font-size: 1.5em;
    }
}
