/* Welcome Modal - Pirate Theme */

.welcome-modal {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.welcome-content {
    max-width: 700px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border: 3px solid #BF953F;
    border-radius: 15px;
    box-shadow: 
        0 0 30px rgba(191, 149, 63, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    margin: 20px;
}

/* Decorative border pattern */
.welcome-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: repeating-linear-gradient(
        90deg,
        #BF953F 0px,
        #BF953F 10px,
        #8B6914 10px,
        #8B6914 20px
    );
}

.welcome-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: repeating-linear-gradient(
        90deg,
        #BF953F 0px,
        #BF953F 10px,
        #8B6914 10px,
        #8B6914 20px
    );
}

/* Header styling */
.welcome-header {
    text-align: center;
    padding: 25px 25px 15px;
    background: linear-gradient(135deg, rgba(191, 149, 63, 0.1) 0%, rgba(139, 105, 20, 0.1) 100%);
    border-bottom: 2px solid rgba(191, 149, 63, 0.3);
}

.welcome-title {
    color: #BF953F;
    font-family: 'Pirata One', cursive;
    font-size: 2.2em;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); }
    to { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 20px rgba(191, 149, 63, 0.4); }
}

.pirate-decoration {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 1.5em;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

/* Body content */
.welcome-body {
    padding: 25px;
    color: #ecf0f1;
}

/* Captain speech bubble */
.captain-speech {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 25px;
    animation: slideInFromLeft 0.8s ease-out;
}

.speech-bubble {
    background: rgba(52, 73, 94, 0.8);
    border: 2px solid #BF953F;
    border-radius: 20px 20px 20px 5px;
    padding: 15px 20px;
    position: relative;
    flex: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 15px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-top-color: #BF953F;
}

.captain-greeting {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.4;
}

.captain-avatar {
    font-size: 3em;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* Section title */
.section-title {
    text-align: center;
    color: #BF953F;
    font-family: 'Pirata One', cursive;
    font-size: 1.5em;
    margin: 0 0 20px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Trial info boxes */
.freemium-explanation {
    animation: slideInFromRight 0.8s ease-out;
}

.trial-info {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: stretch;
}

.trial-box {
    flex: 1;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.free-trial {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1) 0%, rgba(39, 174, 96, 0.1) 100%);
    border-color: #2ecc71;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.2);
}

.premium-upgrade {
    background: linear-gradient(135deg, rgba(191, 149, 63, 0.1) 0%, rgba(139, 105, 20, 0.1) 100%);
    border-color: #BF953F;
    box-shadow: 0 0 20px rgba(191, 149, 63, 0.2);
}

.trial-box h4 {
    margin: 0 0 15px 0;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
}

.free-trial h4 {
    color: #2ecc71;
}

.premium-upgrade h4 {
    color: #BF953F;
}

.trial-box ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.trial-box li {
    padding: 5px 0;
    font-size: 0.95em;
    line-height: 1.3;
}

.trial-badge, .premium-price {
    text-align: center;
    padding: 8px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
}

.trial-badge {
    background: #2ecc71;
    color: white;
}

.premium-price {
    background: #BF953F;
    color: #2c3e50;
    font-size: 1.2em;
}

/* VS divider */
.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    position: relative;
}

.vs-text {
    background: #e74c3c;
    color: white;
    padding: 5px 8px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.8em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Value proposition */
.value-proposition {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.value-highlight {
    display: flex;
    align-items: center;
    gap: 10px;
}

.value-icon {
    font-size: 1.5em;
}

.value-highlight p {
    margin: 0;
    font-size: 1.05em;
    color: #3498db;
}

/* Footer */
.welcome-footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px;
    text-align: center;
    border-top: 1px solid rgba(191, 149, 63, 0.3);
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.treasure-button {
    background: linear-gradient(45deg, #BF953F, #8B6914);
    border: none;
    color: #2c3e50;
    font-weight: bold;
    font-size: 1.1em;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(191, 149, 63, 0.3);
    text-shadow: none;
}

.treasure-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(191, 149, 63, 0.4);
    background: linear-gradient(45deg, #8B6914, #BF953F);
}

.treasure-button:active {
    transform: translateY(0);
}

.footer-note {
    color: #bdc3c7;
    font-size: 0.85em;
}

/* Animations */
@keyframes welcomeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .welcome-content {
        margin: 10px;
        max-width: none;
    }
    
    .welcome-title {
        font-size: 1.8em;
    }
    
    .trial-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .vs-divider {
        width: 100%;
        height: 20px;
    }
    
    .vs-text {
        transform: rotate(90deg);
    }
    
    .captain-speech {
        flex-direction: column;
        text-align: center;
    }
    
    .speech-bubble {
        border-radius: 20px;
    }
    
    .speech-bubble::before {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .treasure-button, .secondary-button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .welcome-body, .welcome-footer {
        padding: 15px;
    }
    
    .welcome-header {
        padding: 20px 15px 15px;
    }
    
    .welcome-title {
        font-size: 1.5em;
    }
    
    .trial-box {
        padding: 15px;
    }
    
    .pirate-decoration {
        font-size: 1.2em;
        gap: 15px;
    }
}
