/* ============================================
   BATTLE OF BUILDERS 
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-orange: #ff6b35;
    --primary-yellow: #f7b801;
    --primary-blue: #004e89;
    --dark-gray: #2d2d2d;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-light: rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Background Container */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Content Wrapper */
.content-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1;
}

/* Floating Card */
.floating-card {
    background: var(--white);
    border-radius: 30px;
    box-shadow: 0 20px 60px var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.1);
    max-width: 600px;
    width: 100%;
    padding: 40px 30px;
    margin: auto;
    position: relative;
    animation: floatIn 0.6s ease-out;
    backdrop-filter: blur(10px);
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo */
.logo-container {
    text-align: center;
    margin-bottom: 15px;
}

.logo {
    max-width: 200px;
    height: auto;
    width: 100%;
    display: block;
    margin: 0 auto;
}

/* Main Content */
.main-content {
    text-align: center;
}

.game-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-orange);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px var(--shadow-light);
    line-height: 1.1;
}

.tagline {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.coming-soon {
    margin-bottom: 40px;
}

.coming-soon h2 {
    font-size: 2rem;
    color: var(--primary-orange);
    margin-bottom: 20px;
}

.description {
    font-size: 1rem;
    color: var(--dark-gray);
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Email Signup */
.email-signup {
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, var(--light-gray) 0%, #e8e8e8 100%);
    border-radius: 20px;
    border: 2px solid var(--primary-yellow);
}

.email-signup h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.signup-text {
    font-size: 0.95rem;
    color: var(--dark-gray);
    margin-bottom: 25px;
    opacity: 0.9;
}

.email-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.email-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    border: 2px solid var(--primary-orange);
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
    background: var(--white);
}

.email-input:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.recaptcha-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.submit-btn {
    width: 100%;
    padding: 16px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-orange) 0%, #ff8533 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.submit-btn:active {
    transform: translateY(0);
}

.sneak-peek-container {
    margin-top: 20px;
    width: 100%;
}

.email-signup .sneak-peek-container .sneak-peek-btn,
.sneak-peek-btn {
    width: 100% !important;
    padding: 16px 30px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--white) !important;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #005a9e 100%) !important;
    border: none !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: 0 4px 15px rgba(0, 78, 137, 0.4) !important;
    text-decoration: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.email-signup .sneak-peek-container .sneak-peek-btn:hover,
.sneak-peek-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 78, 137, 0.6) !important;
    background: linear-gradient(135deg, #005a9e 0%, var(--primary-blue) 100%) !important;
    color: var(--white) !important;
    text-decoration: none !important;
}

.email-signup .sneak-peek-container .sneak-peek-btn:active,
.sneak-peek-btn:active {
    transform: translateY(0) !important;
}

.email-signup .sneak-peek-container .sneak-peek-btn:visited,
.sneak-peek-btn:visited {
    color: var(--white) !important;
    text-decoration: none !important;
}

.form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    display: none;
}

.form-message.success {
    display: none !important;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Success Message */
#form-container {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.success-message {
    text-align: center;
    padding: 40px 20px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@keyframes successFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.success-icon {
    font-size: 4rem;
    color: var(--primary-yellow);
    margin-bottom: 20px;
    animation: successIconPop 0.6s ease-out 0.2s both;
}

@keyframes successIconPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-message h3 {
    font-size: 2rem;
    color: var(--primary-orange);
    margin-bottom: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: successTextSlide 0.5s ease-out 0.3s both;
}

@keyframes successTextSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.success-text {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 10px;
    line-height: 1.8;
    animation: successTextSlide 0.5s ease-out 0.4s both;
}

.success-subtext {
    font-size: 1rem;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 20px;
    animation: successTextSlide 0.5s ease-out 0.5s both;
}

.success-emoji {
    font-size: 2.5rem;
    margin-top: 20px;
    animation: emojiBounce 1s ease-out 0.6s both;
}

@keyframes emojiBounce {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-10px);
    }
    50% {
        transform: translateY(0);
    }
    75% {
        transform: translateY(-5px);
    }
}

/* Responsive adjustments for success message */
@media (min-width: 768px) {
    .success-message {
        padding: 50px 30px;
    }
    
    .success-icon {
        font-size: 5rem;
    }
    
    .success-message h3 {
        font-size: 2.5rem;
    }
}

/* App Stores */
.app-stores {
    margin-bottom: 40px;
}

.app-stores h3 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.store-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.store-link {
    display: block;
    transition: all 0.3s ease;
    filter: grayscale(100%) opacity(0.5);
    pointer-events: none;
    cursor: not-allowed;
}

.store-link.disabled:hover {
    transform: none;
}

.store-badge {
    height: 60px;
    width: auto;
    max-width: 200px;
}

.store-badge-placeholder {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--dark-gray);
    border-radius: 8px;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: left;
    line-height: 1.3;
    min-width: 180px;
    transition: all 0.3s ease;
}

.store-badge-placeholder i {
    font-size: 2rem;
    flex-shrink: 0;
}

.store-badge-placeholder span {
    display: block;
}

.store-badge-placeholder.google-play {
    background: #000;
}

.store-badge-placeholder.app-store {
    background: #000;
}

/* Social Links */
.social-links {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--light-gray);
}

.social-links h4 {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-yellow) 100%);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    box-shadow: 0 3px 10px var(--shadow-light);
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px var(--shadow);
}

/* Tablet and Desktop Styles */
@media (min-width: 768px) {
    .floating-card {
        padding: 50px 40px;
        border-radius: 40px;
    }

    .game-title {
        font-size: 3.5rem;
        line-height: 1.1;
    }

    .tagline {
        font-size: 1.4rem;
    }

    .coming-soon h2 {
        font-size: 2.5rem;
    }

    .description {
        font-size: 1.1rem;
    }

    .store-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }

    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

@media (min-width: 1024px) {
    .content-wrapper {
        padding: 40px;
    }

    .floating-card {
        max-width: 700px;
        padding: 60px 50px;
    }

    .game-title {
        font-size: 4rem;
        line-height: 1.1;
    }

    .email-signup {
        padding: 40px;
    }
}

/* Loading State */
.submit-btn.loading {
    opacity: 0.7;
    cursor: wait;
}

.submit-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

