/* Style Ambassador Page stylesheet */

:root {
    --bg-primary: #0a0418;
    --bg-secondary: #130a2a;
    --accent-purple: #9c27b0;
    --accent-purple-glow: #e040fb;
    --accent-blue: #2196f3;
    --text-main: #ffffff;
    --text-muted: #b0a8c5;
    --card-bg: rgba(30, 20, 55, 0.45);
    --card-border: rgba(156, 39, 176, 0.2);
    --input-bg: rgba(15, 10, 30, 0.6);
    --input-focus: rgba(224, 64, 251, 0.4);
    --success-green: #00e676;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Raleway', sans-serif;
    background: radial-gradient(circle at 50% 0%, #1a0c36 0%, #070311 80%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Header & Navigation */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(10, 4, 24, 0.6);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-main);
    gap: 12px;
}

.game-logo {
    width: 48px;
    height: auto;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease;
}

.logo-link:hover .game-logo {
    transform: rotate(5deg) scale(1.05);
}

.logo-text {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

.back-home-btn {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.back-home-btn:hover {
    background: var(--text-main);
    color: var(--bg-primary);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Container */
.container {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
    padding: 60px 0;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(156, 39, 176, 0.15);
    border: 1px solid var(--accent-purple);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-purple-glow);
    font-weight: 700;
    margin-bottom: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(156, 39, 176, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(156, 39, 176, 0); }
    100% { box-shadow: 0 0 0 0 rgba(156, 39, 176, 0); }
}

.hero-section h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 30%, #b388ff 70%, #ea80fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 36px auto;
}

.cta-button {
    display: inline-block;
    text-decoration: none;
    color: var(--text-main);
    background: linear-gradient(135deg, var(--accent-purple) 0%, #7b1fa2 100%);
    padding: 15px 36px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 25px rgba(156, 39, 176, 0.4);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(224, 64, 251, 0.6);
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

@media (max-width: 900px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
}

.details-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.details-card:hover {
    border-color: rgba(224, 64, 251, 0.4);
    transform: translateY(-2px);
}

.section-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-purple);
    border-radius: 2px;
}

.section-description {
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* List Items */
.list-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.list-items li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.icon-wrap {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.list-items strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--text-main);
}

.list-detail {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Form Section */
.apply-section {
    max-width: 800px;
    margin: 0 auto;
    scroll-margin-top: 100px;
}

.apply-card {
    background: linear-gradient(135deg, rgba(20, 10, 45, 0.8) 0%, rgba(35, 15, 75, 0.8) 100%);
    border: 1px solid rgba(224, 64, 251, 0.3);
    border-radius: 24px;
    padding: 50px;
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

@media (max-width: 600px) {
    .apply-card {
        padding: 30px 20px;
    }
}

.text-center {
    text-align: center;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.apply-notice {
    font-size: 0.95rem;
    color: var(--accent-purple-glow);
    margin: 15px 0 40px 0;
    font-weight: 500;
}

/* Form Styling */
.form-group {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
}

.required {
    color: var(--accent-purple-glow);
}

input[type="text"],
input[type="email"],
textarea {
    background: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 14px 18px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-purple-glow);
    box-shadow: 0 0 10px var(--input-focus);
    background: rgba(20, 10, 45, 0.9);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Validation Errors */
.input-tooltip {
    color: var(--accent-purple-glow);
    font-size: 0.8rem;
    margin-top: 6px;
    opacity: 0.85;
}

.error-msg {
    color: #ff5252;
    font-size: 0.8rem;
    margin-top: 6px;
    display: none;
}

.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #ff5252;
    box-shadow: 0 0 8px rgba(255, 82, 82, 0.25);
}

.form-group.has-error .error-msg {
    display: block;
}

/* Submit Button styling with loader state */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-purple) 0%, #7b1fa2 100%);
    color: var(--text-main);
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(156, 39, 176, 0.3);
    position: relative;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(224, 64, 251, 0.5);
}

.submit-btn.loading {
    color: transparent;
    cursor: not-allowed;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Screen overlay */
.success-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f0724;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
    z-index: 10;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleUp {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.success-screen h2 {
    font-family: 'Sora', sans-serif;
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--success-green);
}

.success-screen p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 500px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.back-home-btn-success {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 28px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-home-btn-success:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-main);
}

/* Footer styling */
footer {
    background: #06020e;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0;
    margin-top: auto;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials img {
    width: 32px;
    height: 32px;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-socials a:hover img {
    opacity: 1;
    transform: scale(1.1);
}

.footer-links {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-main);
}

.copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 10px;
}
