/* ============================================
   FortunaGo.Me Affiliate Program Stylesheet
   Mystical Luxury Design
   ============================================ */

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #F8F6F3;
    overflow-x: hidden;
    background: #4A1A6B;
    line-height: 1.6;
}

/* ============================================
   ANIMATED STARS BACKGROUND
   ============================================ */
.stars,
.stars2,
.stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.stars {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="2" height="2"><circle cx="1" cy="1" r="1" fill="%23D4AF37" opacity="0.8"/></svg>') repeat;
    animation: animateStars 50s linear infinite;
}

.stars2 {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="3" height="3"><circle cx="1.5" cy="1.5" r="1" fill="%23F4D03F" opacity="0.6"/></svg>') repeat;
    animation: animateStars 100s linear infinite;
}

.stars3 {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><circle cx="2" cy="2" r="1.5" fill="%23FFF8E7" opacity="0.4"/></svg>') repeat;
    animation: animateStars 150s linear infinite;
}

@keyframes animateStars {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-2000px);
    }
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    background: radial-gradient(ellipse at center, rgba(91, 42, 125, 0.6) 0%, rgba(74, 26, 107, 0.8) 50%, rgba(58, 10, 91, 0.9) 100%);
    padding: 40px 20px;
}

/* ============================================
   LANGUAGE SELECTOR
   ============================================ */
.language-selector {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 100;
}

.lang-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 25px;
    color: #E8E3DC;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-link:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #D4AF37;
    transform: translateY(-2px);
}

.lang-link.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(244, 208, 63, 0.15) 100%);
    border-color: #D4AF37;
    color: #F4D03F;
}

.lang-flag {
    font-size: 18px;
}

.lang-divider {
    color: #D4AF37;
    font-size: 12px;
}

/* ============================================
   LOGIN BUTTON
   ============================================ */
   
.logout-btn {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid #D4AF37;
    border-radius: 25px;
    padding: 10px 20px;
    color: #F4D03F;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}


/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 1s ease-out;
}

.logo-container {
    margin-bottom: 30px;
}

.logo {
    width: 180px;
    height: 180px;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4));
    animation: floatLogo 3s ease-in-out infinite;
}

@keyframes floatLogo {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 48px;
    font-weight: 700;
    color: #F4D03F;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 15px;
    text-shadow: 0 0 30px rgba(244, 208, 63, 0.6);
    animation: fadeIn 1.2s ease-out 0.3s both;
}

.hero-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 400;
    color: #FFF8E7;
    margin-bottom: 40px;
    animation: fadeIn 1.2s ease-out 0.6s both;
}

.prize-highlight {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(244, 208, 63, 0.15) 100%);
    border: 2px solid #D4AF37;
    border-radius: 20px;
    padding: 25px 40px;
    animation: fadeIn 1.2s ease-out 0.9s both, pulse 2s ease-in-out infinite;
}

.prize-icon {
    font-size: 48px;
}

.prize-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.prize-amount {
    font-family: 'Cinzel', serif;
    font-size: 36px;
    font-weight: 700;
    color: #F4D03F;
    line-height: 1;
    text-shadow: 0 0 20px rgba(244, 208, 63, 0.6);
}

.prize-description {
    font-size: 14px;
    color: #E8E3DC;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    }
}

/* ============================================
   SECTION TITLE
   ============================================ */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: #F4D03F;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 20px rgba(244, 208, 63, 0.4);
}

/* ============================================
   BENEFITS SECTION
   ============================================ */
.benefits-section {
    max-width: 1200px;
    margin: 0 auto 80px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 35px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: #D4AF37;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
}

.benefit-card.highlight {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(244, 208, 63, 0.1) 100%);
    border: 2px solid #D4AF37;
}

.benefit-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.benefit-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: #F4D03F;
    margin-bottom: 15px;
}

.benefit-description {
    font-size: 15px;
    color: #E8E3DC;
    line-height: 1.7;
}

.prize-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    text-align: left;
}

.prize-list li {
    padding: 8px 0;
    font-size: 15px;
    color: #FFF8E7;
}

.prize-list strong {
    color: #F4D03F;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works-section {
    max-width: 1200px;
    margin: 0 auto 80px;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 220px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 28px;
    font-weight: 700;
    color: #2C2C2C;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.step-content {
    flex: 1;
}

.step-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: #F4D03F;
    margin-bottom: 10px;
}

.step-description {
    font-size: 14px;
    color: #E8E3DC;
    line-height: 1.6;
}

.step-arrow {
    font-size: 32px;
    color: #D4AF37;
    margin: 0 10px;
}

/* ============================================
   FORM SECTION
   ============================================ */
.form-section {
    max-width: 600px;
    margin: 0 auto 80px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.form-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 45px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.form-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: #F4D03F;
    text-align: center;
    margin-bottom: 10px;
}

.form-description {
    font-size: 16px;
    color: #E8E3DC;
    text-align: center;
    margin-bottom: 35px;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.affiliate-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #D4AF37;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input {
    background: rgba(248, 246, 243, 0.95);
    border: 2px solid #C5A572;
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    color: #2C2C2C;
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: #8C8C8C;
}

.form-input:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 1);
}

.form-input:invalid:not(:placeholder-shown) {
    border-color: #e74c3c;
}

.help-text {
    font-size: 13px;
    color: #C5A572;
    font-style: italic;
}

/* Password Field */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eye-icon {
    width: 22px;
    height: 22px;
    color: #8C8C8C;
    transition: color 0.3s ease;
}

.password-toggle:hover .eye-icon {
    color: #D4AF37;
}

.password-requirements {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 8px;
}

.requirement {
    font-size: 13px;
    color: #8C8C8C;
    display: flex;
    align-items: center;
    gap: 5px;
}

.requirement.met {
    color: #2ecc71;
}

.requirement.not-met {
    color: #e74c3c;
}

/* Checkbox */
.checkbox-group {
    margin-top: 5px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.form-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-custom {
    position: relative;
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: rgba(248, 246, 243, 0.95);
    border: 2px solid #C5A572;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.form-checkbox:checked + .checkbox-custom {
    background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%);
    border-color: #D4AF37;
}

.form-checkbox:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid #2C2C2C;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    font-size: 14px;
    color: #E8E3DC;
    line-height: 1.5;
}

.policy-link {
    color: #F4D03F;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.policy-link:hover {
    color: #D4AF37;
    text-decoration: underline;
}

/* Error Messages */
.error-message {
    font-size: 13px;
    color: #ff6b6b;
    min-height: 18px;
    display: none;
}

.error-message.show {
    display: block;
}

/* ============================================
   SUBMIT BUTTON
   ============================================ */
.submit-btn {
    background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%);
    border: none;
    border-radius: 50px;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: #2C2C2C;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.6);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    width: 20px;
    height: 20px;
    color: #2C2C2C;
}

/* ============================================
   SUCCESS MESSAGE
   ============================================ */
.success-message {
    text-align: center;
    padding: 40px 20px;
    animation: fadeInScale 0.5s ease-out;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: sparkle 1s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.8;
    }
}

.success-message h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #F4D03F;
    margin-bottom: 15px;
}

.success-message p {
    font-size: 16px;
    color: #E8E3DC;
    margin-bottom: 10px;
}

.success-note {
    font-size: 14px;
    color: #C5A572;
    font-style: italic;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    max-width: 900px;
    margin: 0 auto 80px;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #D4AF37;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #F4D03F;
}

.faq-toggle {
    font-size: 28px;
    color: #D4AF37;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 25px 20px 25px;
    font-size: 15px;
    color: #E8E3DC;
    line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    animation: fadeIn 1.5s ease-out 1.2s both;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer p {
    font-size: 14px;
    color: #C5A572;
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-link {
    font-size: 14px;
    color: #D4AF37;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #F4D03F;
    text-decoration: underline;
}

.footer-divider {
    color: #C5A572;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
    .language-selector {
        top: 20px;
        right: 20px;
    }
    
    .hero-title {
        font-size: 38px;
        letter-spacing: 3px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .logo {
        width: 150px;
        height: 150px;
    }
    
    .prize-highlight {
        flex-direction: column;
        padding: 20px 30px;
        text-align: center;
    }
    
    .prize-text {
        align-items: center;
        text-align: center;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .form-card {
        padding: 35px 30px;
    }
    
    .form-title {
        font-size: 28px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: 30px 15px;
    }
    
    .language-selector {
        top: 15px;
        right: 15px;
        gap: 10px;
    }
    
    .lang-link {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .hero-title {
        font-size: 32px;
        letter-spacing: 2px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .logo {
        width: 120px;
        height: 120px;
    }
    
    .prize-amount {
        font-size: 28px;
    }
    
    .prize-description {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .benefit-card {
        padding: 25px 20px;
    }
    
    .benefit-title {
        font-size: 20px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .form-card {
        padding: 30px 20px;
    }
    
    .form-title {
        font-size: 24px;
    }
    
    .form-description {
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 16px 30px;
        font-size: 16px;
    }
    
    .faq-question h3 {
        font-size: 16px;
    }
}

/* Very small devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 28px;
    }
    
    .logo {
        width: 100px;
        height: 100px;
    }
    
    .prize-highlight {
        padding: 15px 20px;
    }
    
    .form-card {
        padding: 25px 15px;
    }
}
