/* ===================================
   DRAGON BIT GOZOKU WEBSITE STYLES
   Traditional Japanese Decree Aesthetic
   =================================== */

:root {
    /* Traditional Japanese Color Palette */
    --imperial-gold: #D4AF37;
    --deep-crimson: #8B0000;
    --midnight-black: #0A0A0A;
    --parchment: #F4E8D0;
    --ink-black: #1A1A1A;
    --cloud-white: #FAFAFA;
    --bronze: #B87333;
    --jade-green: #006847;
    --seal-red: #CC0000;
    
    /* Typography */
    --font-japanese: 'Noto Serif JP', serif;
    --font-decree: 'Cinzel', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-decree);
    background: linear-gradient(135deg, var(--midnight-black) 0%, #1a1a2e 100%);
    color: var(--cloud-white);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===================================
   LOADING SCREEN WITH MAGATAMA
   =================================== */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--midnight-black);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.magatama-container {
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
}

.magatama-spinner {
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    filter: drop-shadow(0 0 20px var(--imperial-gold));
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===================================
   MAIN CONTENT
   =================================== */

.main-content {
    opacity: 0;
    transition: opacity 1s ease;
}

.main-content.visible {
    opacity: 1;
}

/* ===================================
   TYPOGRAPHY & HEADERS
   =================================== */

.japanese-calligraphy {
    font-family: var(--font-japanese);
    font-size: 6rem;
    font-weight: 900;
    color: var(--imperial-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.1em;
}

.main-title {
    margin-bottom: 1rem;
}

.subtitle {
    font-family: var(--font-decree);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--parchment);
    text-transform: uppercase;
}

.decorative-line {
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--imperial-gold) 20%, 
        var(--imperial-gold) 80%, 
        transparent 100%);
}

.decree-text {
    font-size: 1.3rem;
    color: var(--parchment);
    font-weight: 600;
}

.subtext {
    font-size: 1rem;
    color: rgba(244, 232, 208, 0.7);
    font-style: italic;
    letter-spacing: 0.1em;
}

/* ===================================
   GOZOKU CARDS
   =================================== */

.gozoku-card {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid var(--bronze);
    border-radius: 0;
    padding: 0;
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.gozoku-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.05) 0%, 
        transparent 50%);
    pointer-events: none;
}

.gozoku-card.active:hover {
    transform: translateY(-10px);
    border-color: var(--imperial-gold);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.3);
}

.gozoku-card.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
}

.gozoku-card.coming-soon:hover {
    transform: none;
}

/* Card Banner */
.card-banner {
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mashiyu-banner {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    border-bottom: 2px solid var(--bronze);
}

.dgbt-banner {
    background: linear-gradient(135deg, var(--deep-crimson) 0%, #5c0a0a 100%);
    border-bottom: 2px solid var(--imperial-gold);
}

.banner-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--imperial-gold);
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Card Body */
.card-body-custom {
    padding: 3rem 2rem;
}

.icon-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--imperial-gold);
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.gozoku-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.gozoku-description {
    text-align: center;
}

.gozoku-title {
    font-size: 1.5rem;
    color: var(--imperial-gold);
    margin-bottom: 1rem;
    font-weight: 700;
}

.gozoku-text {
    font-size: 1rem;
    color: var(--parchment);
    line-height: 1.7;
    font-weight: 400;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    margin-top: 1.5rem;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.coming-soon-badge {
    background: rgba(100, 100, 100, 0.3);
    border: 1px solid #666;
    color: #999;
}

.active-badge {
    background: linear-gradient(90deg, var(--deep-crimson) 0%, #990000 100%);
    border: 1px solid var(--imperial-gold);
    color: var(--imperial-gold);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(212, 175, 55, 0.3); }
    50% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.6); }
}

/* Card Seal */
.card-seal {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--bronze);
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-seal.active-seal {
    background: radial-gradient(circle, var(--seal-red) 0%, #660000 100%);
    border-color: var(--imperial-gold);
}

.seal-text {
    font-family: var(--font-japanese);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--imperial-gold);
}

/* ===================================
   FOOTER
   =================================== */

.footer-decree {
    font-size: 0.9rem;
    color: rgba(244, 232, 208, 0.6);
    line-height: 1.8;
}

.year-mark {
    display: block;
    margin-top: 0.5rem;
    font-style: italic;
    font-size: 0.85rem;
}

/* ===================================
   DRAGON BIT GOZOKU PAGE
   =================================== */

.dgbt-page {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a0a 100%);
}

.back-link {
    color: var(--imperial-gold);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.back-link:hover {
    color: var(--parchment);
    transform: translateX(-5px);
}

/* Welcome Section */
.welcome-section {
    display: none;
}

.welcome-section.active {
    display: block;
}

.decree-container {
    max-width: 900px;
    margin: 0 auto;
}

.decree-scroll {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 3px solid var(--bronze);
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    position: relative;
}

.decree-scroll::before,
.decree-scroll::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--imperial-gold);
}

.decree-scroll::before {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.decree-scroll::after {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

.decree-opening {
    font-size: 1.5rem;
    color: var(--imperial-gold);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.decree-body {
    max-width: 800px;
    margin: 0 auto;
}

.decree-paragraph {
    font-size: 1.1rem;
    color: var(--parchment);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Requirements Box */
.requirements-box {
    background: rgba(212, 175, 55, 0.1);
    border-left: 4px solid var(--imperial-gold);
    padding: 2rem;
}

.requirements-title {
    font-size: 1.3rem;
    color: var(--imperial-gold);
    margin-bottom: 1rem;
    font-weight: 700;
}

.requirements-list {
    list-style: none;
    padding-left: 0;
}

.requirements-list li {
    font-size: 1rem;
    color: var(--parchment);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.requirements-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--imperial-gold);
    font-weight: 700;
}

/* Spots Counter */
.spots-counter {
    background: rgba(139, 0, 0, 0.2);
    border: 2px solid var(--deep-crimson);
    padding: 1.5rem;
    text-align: center;
}

.counter-display {
    font-size: 3rem;
    font-weight: 700;
    color: var(--imperial-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.counter-number {
    color: var(--imperial-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.counter-separator {
    color: var(--parchment);
    opacity: 0.5;
    margin: 0 0.5rem;
}

.counter-total {
    color: var(--parchment);
}

.counter-label {
    font-size: 0.9rem;
    color: var(--parchment);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
    font-weight: 600;
}

/* Bushido Creed */
.bushido-creed {
    background: rgba(139, 0, 0, 0.2);
    border: 2px solid var(--deep-crimson);
    padding: 2rem;
}

.creed-title {
    font-size: 1.5rem;
    color: var(--imperial-gold);
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.creed-text p {
    font-size: 1.1rem;
    color: var(--parchment);
    padding: 0.7rem 0;
    margin: 0;
    line-height: 1.6;
}

.creed-text strong {
    font-family: var(--font-japanese);
    font-size: 1.4rem;
    color: var(--imperial-gold);
    margin-right: 1rem;
}

/* Proceed Button */
.proceed-btn {
    background: linear-gradient(90deg, var(--deep-crimson) 0%, #990000 100%);
    color: var(--imperial-gold);
    border: 2px solid var(--imperial-gold);
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.proceed-btn:hover {
    background: linear-gradient(90deg, #990000 0%, var(--deep-crimson) 100%);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    transform: scale(1.05);
}

/* ===================================
   APPLICATION FORM
   =================================== */

.application-section {
    display: none;
}

.application-section.active {
    display: block;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 3px solid var(--bronze);
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.form-title {
    font-size: 2rem;
    color: var(--imperial-gold);
    font-weight: 700;
}

.form-subtitle {
    font-size: 1.1rem;
    color: var(--parchment);
}

.gozoku-form .form-label {
    font-size: 1rem;
    color: var(--imperial-gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input,
.form-select {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--bronze);
    color: var(--parchment);
    padding: 0.8rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus {
    background: rgba(0, 0, 0, 0.6);
    border-color: var(--imperial-gold);
    color: var(--parchment);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    outline: none;
}

.form-text {
    color: rgba(244, 232, 208, 0.6);
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

/* Wallet Instructions */
.wallet-instructions {
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid var(--imperial-gold);
    padding: 2rem;
}

.instructions-title {
    font-size: 1.3rem;
    color: var(--imperial-gold);
    margin-bottom: 1rem;
    font-weight: 700;
}

.instructions-text {
    font-size: 1rem;
    color: var(--parchment);
    margin-bottom: 0.5rem;
}

.wallet-address-box {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--bronze);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
}

.wallet-address {
    color: var(--imperial-gold);
    font-size: 0.95rem;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    flex: 1;
}

.copy-btn {
    background: var(--deep-crimson);
    color: var(--imperial-gold);
    border: 1px solid var(--imperial-gold);
    padding: 0.4rem 1rem;
    margin-left: 1rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #990000;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* Checkbox */
.form-check-input {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--bronze);
    width: 1.3rem;
    height: 1.3rem;
    margin-right: 0.7rem;
}

.form-check-input:checked {
    background-color: var(--deep-crimson);
    border-color: var(--imperial-gold);
}

.form-check-label {
    color: var(--parchment);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(90deg, var(--deep-crimson) 0%, #990000 100%);
    color: var(--imperial-gold);
    border: 2px solid var(--imperial-gold);
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    width: 100%;
}

.submit-btn:hover {
    background: linear-gradient(90deg, #990000 0%, var(--deep-crimson) 100%);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    transform: scale(1.02);
}

/* Success Message */
.success-message {
    display: none;
    background: rgba(0, 104, 71, 0.2);
    border: 2px solid var(--jade-green);
    padding: 3rem;
    margin-top: 2rem;
}

.success-message.active {
    display: block;
}

.success-title {
    font-size: 1.8rem;
    color: var(--imperial-gold);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.success-text {
    font-size: 1.1rem;
    color: var(--parchment);
    line-height: 1.7;
}

.success-subtext {
    font-size: 1rem;
    color: rgba(244, 232, 208, 0.7);
    font-style: italic;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .japanese-calligraphy {
        font-size: 4rem;
    }
    
    .subtitle {
        font-size: 1.8rem;
        letter-spacing: 0.2em;
    }
    
    .decree-scroll,
    .form-container {
        padding: 2rem 1.5rem;
    }
    
    .decree-paragraph {
        font-size: 1rem;
        text-align: left;
    }
    
    .wallet-address {
        font-size: 0.75rem;
    }
    
    .wallet-address-box {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .copy-btn {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .japanese-calligraphy {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.4rem;
    }
    
    .icon-circle {
        width: 120px;
        height: 120px;
    }
    
    .gozoku-icon {
        width: 80px;
        height: 80px;
    }
}