/* FREE Version Specific Styles */

/* Free Badge */
.chanma-free-badge {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* PRO Badge */
.chanma-pro-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 107, 107, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0); }
}

/* Locked Tab Styles */
.chanma-nav-tab-locked {
    position: relative;
    opacity: 0.7;
    cursor: pointer !important;
    transition: all 0.3s ease;
}

.chanma-nav-tab-locked:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.chanma-nav-tab-locked::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 107, 107, 0.1) 10px,
        rgba(255, 107, 107, 0.1) 20px
    );
    border-radius: 6px;
}

/* Upgrade Modal Styles */
.chanma-modal {
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.chanma-modal-content {
    position: relative;
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chanma-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #666;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    transition: color 0.3s ease;
}

.chanma-modal-close:hover {
    color: #333;
}

.chanma-upgrade-content {
    padding: 40px 35px;
    text-align: center;
}

.chanma-upgrade-content h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 28px;
}

.chanma-feature-icon {
    font-size: 64px;
    margin: 20px 0;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.chanma-upgrade-content h3 {
    margin: 20px 0 10px 0;
    color: #333;
    font-size: 22px;
}

.chanma-upgrade-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.chanma-pro-features {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    text-align: left;
}

.chanma-pro-features h4 {
    margin: 0 0 15px 0;
    color: #333;
    text-align: center;
}

.chanma-pro-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chanma-pro-features li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    line-height: 1.5;
}

.chanma-pro-features li:last-child {
    border-bottom: none;
}

.chanma-pro-features strong {
    color: #333;
}

.chanma-developer-note {
    background: linear-gradient(135deg, #ffeaa7, #fab1a0);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.chanma-developer-note p {
    margin: 0;
    color: #2d3436;
    font-size: 14px;
    line-height: 1.6;
}

.chanma-upgrade-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.chanma-btn-large {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    min-width: 200px;
}

.chanma-btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.chanma-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.chanma-btn-secondary {
    background: transparent;
    color: #666;
    border: 2px solid #ddd;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    padding: 13px 28px;
}

.chanma-btn-secondary:hover {
    border-color: #667eea;
    color: #667eea;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .chanma-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .chanma-upgrade-content {
        padding: 30px 20px;
    }
    
    .chanma-upgrade-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .chanma-btn-large {
        min-width: auto;
        width: 100%;
    }
}
