/* AtivaBoom Widget Styles */

.ativaboom-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ativaboom-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.ativaboom-logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8e53 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-weight: bold;
    color: white;
    font-size: 18px;
    overflow: hidden;
}

.ativaboom-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.ativaboom-info h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #1f2937;
}

.ativaboom-info p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.ativaboom-url {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    gap: 8px;
}

.ativaboom-url input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #f9fafb;
    color: #374151;
    font-family: 'SFMono-Regular', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
}

.copy-btn {
    background: #f97316;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
}

.copy-btn:hover {
    background: #ea580c;
    transform: translateY(-1px);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-btn.success {
    background: #10b981;
}

.copy-btn.error {
    background: #ef4444;
}

.platform-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.platform-btn {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.platform-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.platform-btn.active {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1e40af;
}

.platform-btn.switching {
    transform: scale(0.95);
}

.platform-btn .icon {
    font-size: 16px;
}

.warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #92400e;
}

.warning .icon {
    font-size: 16px;
}

.download-btn {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.download-btn:active {
    transform: translateY(0);
}

.download-btn.downloading {
    background: #10b981;
    animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.download-btn .icon {
    font-size: 18px;
}

.stats {
    display: flex;
    gap: 16px;
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 18px;
    overflow: hidden;
}

.stat-icon.orange {
    background: #fed7aa;
    color: #ea580c;
}

.stat-icon.green {
    background: #bbf7d0;
    color: #059669;
}

.stat-icon img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

/* Responsive Design */
@media (max-width: 480px) {
    .ativaboom-card {
        padding: 20px;
        margin: 10px;
    }
    
    .platform-buttons {
        flex-direction: column;
    }
    
    .stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .stat-item {
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
    }
    
    .stat-icon {
        margin: 0;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .ativaboom-card {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }
    
    .ativaboom-info h2 {
        color: #f9fafb;
    }
    
    .ativaboom-info p {
        color: #9ca3af;
    }
    
    .ativaboom-url input {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    .platform-btn {
        background: #374151;
        border-color: #4b5563;
        color: #9ca3af;
    }
    
    .platform-btn:hover {
        background: #4b5563;
        border-color: #6b7280;
    }
    
    .platform-btn.active {
        background: #1e3a8a;
        border-color: #3b82f6;
        color: #dbeafe;
    }
    
    .stat-value {
        color: #f9fafb;
    }
}